| Index: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| index 3820b8a536e2fe648467901518c5f9c07d30c511..b46bcad0239da2581e4db6080d33d121b2d435d8 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| @@ -25,6 +25,7 @@ namespace blink {
|
|
|
| GraphicsLayerDebugInfo::GraphicsLayerDebugInfo()
|
| : m_compositingReasons(CompositingReasonNone)
|
| + , m_squashingDisallowedReasons(SquashingDisallowedReasonsNone)
|
| , m_ownerNodeId(0)
|
| {
|
| }
|
| @@ -36,6 +37,7 @@ scoped_refptr<base::trace_event::TracedValue> GraphicsLayerDebugInfo::asTracedVa
|
| scoped_refptr<base::trace_event::TracedValue> tracedValue = new base::trace_event::TracedValue;
|
| appendAnnotatedInvalidateRects(tracedValue.get());
|
| appendCompositingReasons(tracedValue.get());
|
| + appendSquashingDisallowedReasons(tracedValue.get());
|
| appendOwnerNodeId(tracedValue.get());
|
| return tracedValue;
|
| }
|
| @@ -69,6 +71,17 @@ void GraphicsLayerDebugInfo::appendCompositingReasons(base::trace_event::TracedV
|
| tracedValue->EndArray();
|
| }
|
|
|
| +void GraphicsLayerDebugInfo::appendSquashingDisallowedReasons(base::trace_event::TracedValue* tracedValue) const
|
| +{
|
| + tracedValue->BeginArray("squashing_disallowed_reasons");
|
| + for (size_t i = 0; i < kNumberOfSquashingDisallowedReasons; ++i) {
|
| + if (!(m_compositingReasons & kSquashingDisallowedReasonStringMap[i].reason))
|
| + continue;
|
| + tracedValue->AppendString(kSquashingDisallowedReasonStringMap[i].description);
|
| + }
|
| + tracedValue->EndArray();
|
| +}
|
| +
|
| void GraphicsLayerDebugInfo::appendOwnerNodeId(base::trace_event::TracedValue* tracedValue) const
|
| {
|
| if (!m_ownerNodeId)
|
|
|