Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: services/ui/display/platform_screen_stub.cc

Issue 2356913002: Pass device scale factor from display to ws. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/ui/display/platform_screen_stub.cc
diff --git a/services/ui/display/platform_screen_stub.cc b/services/ui/display/platform_screen_stub.cc
index 6a23e25b8547de2c6a109d5de46f68552c12d7db..7ac7bae456ed08eb463e893b9466d605e3d3f122 100644
--- a/services/ui/display/platform_screen_stub.cc
+++ b/services/ui/display/platform_screen_stub.cc
@@ -17,6 +17,7 @@ namespace display {
namespace {
const int64_t kDisplayId = 1;
+constexpr gfx::Size kDisplaySize(1024, 768);
} // namespace
@@ -30,7 +31,8 @@ PlatformScreenStub::PlatformScreenStub() : weak_ptr_factory_(this) {}
PlatformScreenStub::~PlatformScreenStub() {}
void PlatformScreenStub::FixedSizeScreenConfiguration() {
- delegate_->OnDisplayAdded(kDisplayId, gfx::Rect(1024, 768));
+ delegate_->OnDisplayAdded(kDisplayId, gfx::Rect(kDisplaySize), kDisplaySize,
+ 1.0f);
}
void PlatformScreenStub::AddInterfaces(shell::InterfaceRegistry* registry) {}

Powered by Google App Engine
This is Rietveld 408576698