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

Unified Diff: services/ui/demo/mus_demo.cc

Issue 2447303002: Scale client area, hit test mask and bounds by device_scale_factor. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « services/ui/demo/mus_demo.h ('k') | services/ui/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo.cc
diff --git a/services/ui/demo/mus_demo.cc b/services/ui/demo/mus_demo.cc
index 5f75e9aea083656f58c85522eda0cd0e0a959975..30947b2ada2f58955a1e2345d74f50adafa3eadc 100644
--- a/services/ui/demo/mus_demo.cc
+++ b/services/ui/demo/mus_demo.cc
@@ -62,9 +62,13 @@ void DrawSquare(const gfx::Rect& bounds, double angle, SkCanvas* canvas) {
MusDemo::MusDemo() {}
-MusDemo::~MusDemo() {}
+MusDemo::~MusDemo() {
+ display::Screen::SetScreenInstance(nullptr);
+}
void MusDemo::OnStart() {
+ screen_ = base::MakeUnique<display::ScreenBase>();
+ display::Screen::SetScreenInstance(screen_.get());
gpu_service_ = GpuService::Create(context()->connector());
window_tree_client_ = base::MakeUnique<WindowTreeClient>(this, this);
window_tree_client_->ConnectAsWindowManager(context()->connector());
« no previous file with comments | « services/ui/demo/mus_demo.h ('k') | services/ui/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698