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

Unified Diff: Source/platform/graphics/paint/SkPictureBuilder.h

Issue 1164683007: Copy SkMetaData before painting printed plugin contents. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/SkPictureBuilder.h
diff --git a/Source/platform/graphics/paint/SkPictureBuilder.h b/Source/platform/graphics/paint/SkPictureBuilder.h
index 2a8c3029649f5b9b19c90f95956aeb1b4208678a..d07824566013d96558d75e25b06c498da79402ee 100644
--- a/Source/platform/graphics/paint/SkPictureBuilder.h
+++ b/Source/platform/graphics/paint/SkPictureBuilder.h
@@ -18,14 +18,14 @@ class SkPictureBuilder {
WTF_MAKE_NONCOPYABLE(SkPictureBuilder);
STACK_ALLOCATED();
public:
- SkPictureBuilder(const FloatRect& bounds, GraphicsContext::DisabledMode disabledMode = GraphicsContext::NothingDisabled)
+ SkPictureBuilder(const FloatRect& bounds, GraphicsContext::DisabledMode disabledMode = GraphicsContext::NothingDisabled, SkMetaData* metaData = 0)
: m_bounds(bounds)
{
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
m_displayItemList = DisplayItemList::create();
- m_context = adoptPtr(new GraphicsContext(m_displayItemList.get(), disabledMode));
+ m_context = adoptPtr(new GraphicsContext(m_displayItemList.get(), disabledMode, metaData));
} else {
- m_context = GraphicsContext::deprecatedCreateWithCanvas(nullptr, disabledMode);
+ m_context = GraphicsContext::deprecatedCreateWithCanvas(nullptr, disabledMode, metaData);
m_context->beginRecording(m_bounds);
}
}
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698