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 7329a4da7cecbcf8788bf5e1cdc4dd6523e718af..0504d9b40552290fed39636e11de7c0cf5c9b1a0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
@@ -10,7 +10,6 @@ |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkData.h" |
-#include "third_party/skia/include/core/SkPictureAnalyzer.h" |
namespace blink { |
@@ -30,14 +29,8 @@ bool DrawingDisplayItem::drawsContent() const { |
return m_record.get(); |
} |
-void DrawingDisplayItem::analyzeForGpuRasterization( |
- SkPictureGpuAnalyzer& analyzer) const { |
- // TODO(enne): Need an SkPictureGpuAnalyzer on PictureRecord. |
- // This is a bit overkill to ToSkPicture a record just to get |
- // numSlowPaths. |
- if (!m_record) |
- return; |
- analyzer.analyzePicture(ToSkPicture(m_record).get()); |
+int DrawingDisplayItem::numberOfSlowPaths() const { |
+ return m_record ? m_record->numSlowPaths() : 0; |
} |
#ifndef NDEBUG |