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

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

Issue 2751433002: [SPv2] Flatten property trees in PaintRecordBuilder into a single display list. (Closed)
Patch Set: none 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/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 e8d657480b168e2f29a20dfed11015e7cee31394..f722b60ef29cc548cb2d7e951605e5f184522b65 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -1179,11 +1179,11 @@ sk_sp<PaintRecord> GraphicsLayer::captureRecord() {
if (!drawsContent())
return nullptr;
- IntSize intSize = expandedIntSize(size());
+ FloatRect bounds(IntRect(IntPoint(0, 0), expandedIntSize(size())));
GraphicsContext graphicsContext(getPaintController(),
GraphicsContext::NothingDisabled, nullptr);
- graphicsContext.beginRecording(IntRect(IntPoint(0, 0), intSize));
- getPaintController().paintArtifact().replay(graphicsContext);
+ graphicsContext.beginRecording(bounds);
+ getPaintController().paintArtifact().replay(bounds, graphicsContext);
return graphicsContext.endRecording();
}

Powered by Google App Engine
This is Rietveld 408576698