summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/platform/graphics/paint
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Source/platform/graphics/paint')
-rw-r--r--third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp1
-rw-r--r--third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h1
-rw-r--r--third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
index fa72aa8..e1ce822 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
@@ -83,6 +83,7 @@ static WTF::String specialDrawingTypeAsDebugString(DisplayItem::Type type)
DEBUG_STRING_CASE(PopupListBoxBackground);
DEBUG_STRING_CASE(PopupListBoxRow);
DEBUG_STRING_CASE(PrintedContentBackground);
+ DEBUG_STRING_CASE(PrintedContentDestinationLocations);
DEBUG_STRING_CASE(PrintedContentLineBoundary);
DEBUG_STRING_CASE(PrintedContentPDFURLRect);
DEBUG_STRING_CASE(Resizer);
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
index 2670d44..3040c0f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -70,6 +70,7 @@ public:
PopupListBoxBackground,
PopupListBoxRow,
PrintedContentBackground,
+ PrintedContentDestinationLocations,
PrintedContentLineBoundary,
PrintedContentPDFURLRect,
Resizer,
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();