blob: 1e4454dc45f1d9cc4e5952f8994c0f819956af0f [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/display/types/display_mode.h"
#include "base/strings/stringprintf.h"
namespace ui {
DisplayMode::DisplayMode(const gfx::Size& size,
bool interlaced,
float refresh_rate)
: size_(size),
is_interlaced_(interlaced),
refresh_rate_(refresh_rate) {}
DisplayMode::~DisplayMode() {}
std::string DisplayMode::ToString() const {
return base::StringPrintf("[%dx%d %srate=%f]",
size_.width(),
size_.height(),
is_interlaced_ ? "interlaced " : "",
refresh_rate_);
}
} // namespace ui