Index: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
index c291fdac42232afac2868780a275c8cf95bb2fd7..c314722da19460d6b72eab80a745315ea54b2de0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
@@ -6,6 +6,7 @@ |
#include "platform/graphics/GraphicsContext.h" |
#include "public/platform/WebDisplayItemList.h" |
+#include "third_party/skia/include/core/SkPictureAnalyzer.h" |
#if ENABLE(ASSERT) |
#include "third_party/skia/include/core/SkBitmap.h" |
@@ -33,6 +34,11 @@ bool DrawingDisplayItem::drawsContent() const |
return m_picture; |
} |
+void DrawingDisplayItem::analyzeForGpuRasterization(SkPictureGpuAnalyzer& analyzer) const |
+{ |
+ analyzer.analyzePicture(m_picture.get()); |
+} |
+ |
#ifndef NDEBUG |
void DrawingDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const |
{ |