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

Unified Diff: cc/layers/layer.cc

Issue 1413363002: Revert of Always call LayerImpl::SetDebugInfo in debug builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index d1a95bc963dd83a0fb875a57f19a63ac4bc74a6b..9db52869c0e49e008fe81b5df49df0b10a6f3c53 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1184,12 +1184,8 @@
layer->SetBounds(use_paint_properties ? paint_properties_.bounds
: bounds_);
-#if defined(NDEBUG)
if (frame_viewer_instrumentation::IsTracingLayerTreeSnapshots())
layer->SetDebugInfo(TakeDebugInfo());
-#else
- layer->SetDebugInfo(TakeDebugInfo());
-#endif
layer->SetTransformTreeIndex(transform_tree_index());
layer->SetEffectTreeIndex(effect_tree_index());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698