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

Unified Diff: Source/core/platform/graphics/GraphicsLayer.cpp

Issue 22419002: Set up clip and scroll parents on the blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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: 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()));
}

Powered by Google App Engine
This is Rietveld 408576698