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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1931133002: Let SkPictureBuilder be DisplayItemClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 41a30a18147914ab635a4a796ffcf3bc2c21d1f4..574c02247bf0bbb86358bbd95d0e0b6535b28585 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -117,7 +117,7 @@ public:
AffineTransform transform;
transform.scale(deviceScaleFactor, deviceScaleFactor);
transform.translate(-m_bounds.x(), -m_bounds.y());
- context().getPaintController().createAndAppend<BeginTransformDisplayItem>(*m_localFrame, transform);
+ context().getPaintController().createAndAppend<BeginTransformDisplayItem>(*m_pictureBuilder, transform);
}
GraphicsContext& context() { return m_pictureBuilder->context(); }
@@ -126,7 +126,7 @@ public:
{
if (m_draggedNode && m_draggedNode->layoutObject())
m_draggedNode->layoutObject()->updateDragState(false);
- context().getPaintController().endItem<EndTransformDisplayItem>(*m_localFrame);
+ context().getPaintController().endItem<EndTransformDisplayItem>(*m_pictureBuilder);
RefPtr<const SkPicture> recording = m_pictureBuilder->endRecording();
RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(),
SkISize::Make(m_bounds.width(), m_bounds.height()), nullptr, nullptr));

Powered by Google App Engine
This is Rietveld 408576698