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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 1428643004: Repaint on interest rect change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
Patch Set: Created 5 years, 2 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/inspector/InspectorLayerTreeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
index bf9f72127c895d23b4a5860c7a1f7f65c1efe7b0..8da31e8a8465e9435dfddd50d3a2ab329d501e3f 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -326,7 +326,8 @@ void InspectorLayerTreeAgent::makeSnapshot(ErrorString* errorString, const Strin
IntSize size = expandedIntSize(layer->size());
SkPictureBuilder pictureBuilder(FloatRect(0, 0, size.width(), size.height()));
- layer->paint(pictureBuilder.context(), IntRect(IntPoint(0, 0), size));
+ IntRect interestRect(IntPoint(0, 0), size);
+ layer->paint(pictureBuilder.context(), &interestRect);
RefPtr<PictureSnapshot> snapshot = adoptRef(new PictureSnapshot(pictureBuilder.endRecording()));

Powered by Google App Engine
This is Rietveld 408576698