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

Unified Diff: cc/layers/layer.cc

Issue 1414503005: Always call LayerImpl::SetDebugInfo in debug builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash in gpu test 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
« cc/blink/web_layer_impl.cc ('K') | « cc/blink/web_layer_impl.cc ('k') | 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 9db52869c0e49e008fe81b5df49df0b10a6f3c53..d1a95bc963dd83a0fb875a57f19a63ac4bc74a6b 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1184,8 +1184,12 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
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());
« cc/blink/web_layer_impl.cc ('K') | « cc/blink/web_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698