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/platform/graphics/paint/PaintRecordBuilder.cpp

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager 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/paint/PaintRecordBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
index 0e71266e2f7be0777916939fcc4c0fb8ef29b146..db79e6d10722df228abd5400b9e1726e3b24d6ad 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
@@ -62,4 +62,10 @@ sk_sp<PaintRecord> PaintRecordBuilder::endRecording() {
return m_context->endRecording();
}
+sk_sp<SkDrawable> PaintRecordBuilder::endRecordingAsDrawable() {
+ m_context->beginRecording(m_bounds);
+ m_paintController->commitNewDisplayItems();
+ m_paintController->paintArtifact().replay(*m_context);
+ return m_context->endRecordingAsDrawable();
+}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698