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

Unified Diff: cc/debug/layer_tree_debug_state.cc

Issue 92853002: Support for drawing a debug border around animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy switches for chromeos Created 7 years 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 | « cc/debug/layer_tree_debug_state.h ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/layer_tree_debug_state.cc
diff --git a/cc/debug/layer_tree_debug_state.cc b/cc/debug/layer_tree_debug_state.cc
index 72c3a9ff18cacaa99ceaa9790d5009d48f97326f..95245e0f0b2ddc4eff4bd90ac1e69a477a4d9ff1 100644
--- a/cc/debug/layer_tree_debug_state.cc
+++ b/cc/debug/layer_tree_debug_state.cc
@@ -23,6 +23,7 @@ LayerTreeDebugState::LayerTreeDebugState()
show_touch_event_handler_rects(false),
show_wheel_event_handler_rects(false),
show_non_fast_scrollable_rects(false),
+ show_layer_animation_bounds_rects(false),
slow_down_raster_scale_factor(0),
rasterize_only_visible_content(false),
show_picture_borders(false),
@@ -48,7 +49,8 @@ bool LayerTreeDebugState::ShowHudRects() const {
show_surface_damage_rects || show_screen_space_rects ||
show_replica_screen_space_rects || show_occluding_rects ||
show_non_occluding_rects || show_touch_event_handler_rects ||
- show_wheel_event_handler_rects || show_non_fast_scrollable_rects;
+ show_wheel_event_handler_rects || show_non_fast_scrollable_rects ||
+ show_layer_animation_bounds_rects;
}
bool LayerTreeDebugState::ShowMemoryStats() const {
@@ -74,6 +76,8 @@ bool LayerTreeDebugState::Equal(const LayerTreeDebugState& a,
b.show_wheel_event_handler_rects &&
a.show_non_fast_scrollable_rects ==
b.show_non_fast_scrollable_rects &&
+ a.show_layer_animation_bounds_rects ==
+ b.show_layer_animation_bounds_rects &&
a.slow_down_raster_scale_factor == b.slow_down_raster_scale_factor &&
a.rasterize_only_visible_content ==
b.rasterize_only_visible_content &&
@@ -99,6 +103,7 @@ LayerTreeDebugState LayerTreeDebugState::Unite(const LayerTreeDebugState& a,
r.show_touch_event_handler_rects |= b.show_touch_event_handler_rects;
r.show_wheel_event_handler_rects |= b.show_wheel_event_handler_rects;
r.show_non_fast_scrollable_rects |= b.show_non_fast_scrollable_rects;
+ r.show_layer_animation_bounds_rects |= b.show_layer_animation_bounds_rects;
if (b.slow_down_raster_scale_factor)
r.slow_down_raster_scale_factor = b.slow_down_raster_scale_factor;
« no previous file with comments | « cc/debug/layer_tree_debug_state.h ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698