summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h')
-rw-r--r--third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
index a9341ac..dcf6d06 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
@@ -26,6 +26,7 @@ public:
disabledMode = GraphicsContext::FullyDisabled;
m_paintController = PaintController::create();
+ m_paintController->beginSkippingCache();
m_context = adoptPtr(new GraphicsContext(*m_paintController, disabledMode, metaData));
if (containingContext) {
@@ -39,6 +40,7 @@ public:
PassRefPtr<const SkPicture> endRecording()
{
m_context->beginRecording(m_bounds);
+ m_paintController->endSkippingCache();
m_paintController->commitNewDisplayItems();
m_paintController->paintArtifact().replay(*m_context);
return m_context->endRecording();