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

Unified Diff: ash/common/accelerators/debug_commands.cc

Issue 2640243005: Align layers for ARC notification surface to pixels (Closed)
Patch Set: . Created 3 years, 11 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
« no previous file with comments | « no previous file | ash/wm/window_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/debug_commands.cc
diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc
index f6747d977be986d0d467f708d140a8e833e63eff..50d69b2bd1e781881a83fdce99b2bff0527c60ec 100644
--- a/ash/common/accelerators/debug_commands.cc
+++ b/ash/common/accelerators/debug_commands.cc
@@ -14,12 +14,14 @@
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
+#include "ash/common/wm_window_property.h"
#include "ash/root_window_controller.h"
#include "base/command_line.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/compositor/debug_utils.h"
+#include "ui/compositor/layer.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/debug_utils.h"
@@ -60,7 +62,13 @@ void PrintWindowHierarchy(const WmWindow* active_window,
<< " type=" << window->GetType()
<< ((window == active_window) ? " [active] " : " ")
<< (window->IsVisible() ? " visible " : " ")
- << window->GetBounds().ToString() << '\n';
+ << window->GetBounds().ToString()
+ << (window->GetBoolProperty(
+ WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUNDARY)
+ ? " [snapped] "
+ : "")
+ << ", subpixel offset="
+ << window->GetLayer()->subpixel_position_offset().ToString() << '\n';
for (WmWindow* child : window->GetChildren())
PrintWindowHierarchy(active_window, child, indent + 3, out);
« no previous file with comments | « no previous file | ash/wm/window_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698