This source file includes following definitions.
- refresh_rate_
- ToString
#include "ui/display/chromeos/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_);
}
}