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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1577433003: Statistics of LayoutBox rare data reasons Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 3 years, 9 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
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index a67d5daa6b6ed92a786f29761a9469fa43a62f88..c725f1fed3ed2bad7be9e111b361b1d87839d33a 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -3456,15 +3456,15 @@ String CompositedLayerMapping::debugName(
const GraphicsLayer* graphicsLayer) const {
String name;
if (graphicsLayer == m_graphicsLayer.get()) {
- name = m_owningLayer.debugName();
+ name = "Main Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_squashingContainmentLayer.get()) {
- name = "Squashing Containment Layer";
+ name = "Squashing Containment Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_squashingLayer.get()) {
name = "Squashing Layer (first squashed layer: " +
(m_squashedLayers.size() > 0
? m_squashedLayers[0].paintLayer->debugName()
: "") +
- ")";
+ ") " + m_owningLayer.debugName();
} else if (graphicsLayer == m_ancestorClippingLayer.get()) {
name = "Ancestor Clipping Layer";
} else if (graphicsLayer == m_ancestorClippingMaskLayer.get()) {
@@ -3474,25 +3474,26 @@ String CompositedLayerMapping::debugName(
} else if (graphicsLayer == m_backgroundLayer.get()) {
name = m_owningLayer.debugName() + " (background) Layer";
} else if (graphicsLayer == m_childContainmentLayer.get()) {
- name = "Child Containment Layer";
+ name = "Child Containment Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_childTransformLayer.get()) {
- name = "Child Transform Layer";
+ name = "Child Transform Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_maskLayer.get()) {
- name = "Mask Layer";
+ name = "Mask Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_childClippingMaskLayer.get()) {
- name = "Child Clipping Mask Layer";
+ name = "Child Clipping Mask Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_layerForHorizontalScrollbar.get()) {
- name = "Horizontal Scrollbar Layer";
+ name = "Horizontal Scrollbar Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_layerForVerticalScrollbar.get()) {
- name = "Vertical Scrollbar Layer";
+ name = "Vertical Scrollbar Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_layerForScrollCorner.get()) {
- name = "Scroll Corner Layer";
+ name = "Scroll Corner Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_overflowControlsHostLayer.get()) {
- name = "Overflow Controls Host Layer";
+ name = "Overflow Controls Host Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_overflowControlsAncestorClippingLayer.get()) {
- name = "Overflow Controls Ancestor Clipping Layer";
+ name = "Overflow Controls Ancestor Clipping Layer " +
+ m_owningLayer.debugName();
} else if (graphicsLayer == m_scrollingLayer.get()) {
- name = "Scrolling Layer";
+ name = "Scrolling Layer " + m_owningLayer.debugName();
} else if (graphicsLayer == m_scrollingContentsLayer.get()) {
name = "Scrolling Contents Layer";
} else if (graphicsLayer == m_decorationOutlineLayer.get()) {

Powered by Google App Engine
This is Rietveld 408576698