| 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 7c14717bf9c7e8a97f51c05b3ccd98957ad3dacd..2a17f3daee1e60ec3e749a3829c01a71d9916d23 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
|
| @@ -10,6 +10,7 @@
|
| #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 {
|
|
|
| @@ -29,8 +30,14 @@
|
| return record_.get();
|
| }
|
|
|
| -int DrawingDisplayItem::NumberOfSlowPaths() const {
|
| - return record_ ? record_->numSlowPaths() : 0;
|
| +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 (!record_)
|
| + return;
|
| + analyzer.analyzePicture(ToSkPicture(record_).get());
|
| }
|
|
|
| #ifndef NDEBUG
|
|
|