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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 1511583002: Client Side Speed Index Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 1064a9a8c14c8dbd36dd98205a05b269695a0bbd..9855a105f005137fd88c2fca8021f80add29430e 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -358,6 +358,13 @@ void GraphicsLayer::notifyFirstPaintToClient()
}
}
+void GraphicsLayer::notifyPaintInvalidationToClient(const IntRect* visualRect)
+{
+ if (visualRect) {
+ m_client->notifyPaintInvalidation(visualRect, paintCount());
+ }
+}
+
void GraphicsLayer::updateChildList()
{
WebLayer* childHost = m_layer->layer();
@@ -1050,6 +1057,7 @@ void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClientWrapper&
paintController()->invalidate(displayItemClient, paintInvalidationReason, visualRect);
if (isTrackingPaintInvalidations())
trackPaintInvalidationObject(displayItemClient.debugName());
+ notifyPaintInvalidationToClient(visualRect);
}
void GraphicsLayer::setContentsRect(const IntRect& rect)

Powered by Google App Engine
This is Rietveld 408576698