Index: Source/core/platform/graphics/GraphicsLayer.cpp |
diff --git a/Source/core/platform/graphics/GraphicsLayer.cpp b/Source/core/platform/graphics/GraphicsLayer.cpp |
index 5673bb8f1e5812f67d244dcb439c8fb25a442f5c..1a8762a69abded7d04a5cb54a583f910db2e66d1 100644 |
--- a/Source/core/platform/graphics/GraphicsLayer.cpp |
+++ b/Source/core/platform/graphics/GraphicsLayer.cpp |
@@ -357,8 +357,12 @@ void GraphicsLayer::setOffsetFromRenderer(const IntSize& offset, ShouldSetNeedsD |
void GraphicsLayer::paintGraphicsLayerContents(GraphicsContext& context, const IntRect& clip) |
{ |
- if (m_client) |
+ if (m_client) { |
+ TRACE_EVENT_INSTANT2("core,painting", "GraphicsLayer::paintGraphicsLayerContents", |
+ "width", clip.width(), "height", clip.height()); |
+ |
m_client->paintContents(this, context, m_paintingPhase, clip); |
+ } |
} |
String GraphicsLayer::animationNameForTransition(AnimatedPropertyID property) |
@@ -1303,6 +1307,12 @@ void GraphicsLayer::notifyAnimationFinished(double) |
void GraphicsLayer::didScroll() |
{ |
+ TRACE_EVENT1( |
+ "impl-scroll", |
+ "GraphicsLayer::didScroll", |
+ "layerId", |
+ m_layer->layer()->id()); |
+ |
if (m_scrollableArea) |
m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minimumScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); |
} |