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

Unified Diff: ash/wm/boot_splash_screen_chromeos.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (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 | « ash/shell_unittest.cc ('k') | ash/wm/screen_dimmer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/boot_splash_screen_chromeos.cc
diff --git a/ash/wm/boot_splash_screen_chromeos.cc b/ash/wm/boot_splash_screen_chromeos.cc
index 7582ae09dfa9395e7a459f8c8841cdfb8a9043c8..caf66568f8b15945657556cb2557efd0df4f8791 100644
--- a/ash/wm/boot_splash_screen_chromeos.cc
+++ b/ash/wm/boot_splash_screen_chromeos.cc
@@ -42,9 +42,10 @@ class BootSplashScreen::CopyHostContentLayerDelegate
// to create a zero-copy texture (when possible):
// https://codereview.chromium.org/10543125
#if defined(USE_X11)
- ui::PaintRecorder recorder(context, host_->GetBounds().size());
- ui::CopyAreaToCanvas(host_->GetAcceleratedWidget(), host_->GetBounds(),
- gfx::Point(), recorder.canvas());
+ ui::PaintRecorder recorder(context, host_->GetBoundsInPixels().size());
+ ui::CopyAreaToCanvas(host_->GetAcceleratedWidget(),
+ host_->GetBoundsInPixels(), gfx::Point(),
+ recorder.canvas());
#else
// TODO(spang): Figure out what to do here.
NOTIMPLEMENTED();
« no previous file with comments | « ash/shell_unittest.cc ('k') | ash/wm/screen_dimmer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698