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

Unified Diff: cc/layers/layer_impl.cc

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: nits Created 3 years, 8 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 | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 705b9ffd6ca5a72a786da8579804e1d0f91667f1..bd7b9fee0a6cb7f3d08943423a4c62aa070b366a 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -187,8 +187,8 @@ void LayerImpl::DidDraw(ResourceProvider* resource_provider) {
current_draw_mode_ = DRAW_MODE_NONE;
}
-bool LayerImpl::ShowDebugBorders() const {
- return layer_tree_impl()->debug_state().show_debug_borders;
+bool LayerImpl::ShowDebugBorders(DebugBorderType type) const {
+ return layer_tree_impl()->debug_state().show_debug_borders.test(type);
}
void LayerImpl::GetDebugBorderProperties(SkColor* color, float* width) const {
@@ -229,7 +229,7 @@ void LayerImpl::AppendDebugBorderQuad(RenderPass* render_pass,
AppendQuadsData* append_quads_data,
SkColor color,
float width) const {
- if (!ShowDebugBorders())
+ if (!ShowDebugBorders(DebugBorderType::LAYER))
return;
gfx::Rect quad_rect(bounds);
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698