| 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());
|
|
|