Index: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h |
diff --git a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h |
index e82e2b045ebc2a6b9ad6cb21e1ac64e780d2a217..0ef408098d70e91181c811992e189115422e3c1e 100644 |
--- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h |
+++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h |
@@ -7,23 +7,22 @@ |
#include "platform/geometry/IntSize.h" |
#include "platform/graphics/GeneratedImage.h" |
+#include "platform/graphics/paint/PaintRecord.h" |
#include "third_party/skia/include/core/SkRefCnt.h" |
-class SkPicture; |
- |
namespace blink { |
class PLATFORM_EXPORT PaintGeneratedImage : public GeneratedImage { |
public: |
- static PassRefPtr<PaintGeneratedImage> create(sk_sp<SkPicture> picture, |
+ static PassRefPtr<PaintGeneratedImage> create(sk_sp<PaintRecord> picture, |
const IntSize& size) { |
return adoptRef(new PaintGeneratedImage(std::move(picture), size)); |
} |
~PaintGeneratedImage() override {} |
protected: |
- void draw(SkCanvas*, |
- const SkPaint&, |
+ void draw(PaintCanvas*, |
+ const PaintFlags&, |
const FloatRect&, |
const FloatRect&, |
RespectImageOrientationEnum, |
@@ -31,10 +30,10 @@ class PLATFORM_EXPORT PaintGeneratedImage : public GeneratedImage { |
const ColorBehavior&) override; |
void drawTile(GraphicsContext&, const FloatRect&) final; |
- PaintGeneratedImage(sk_sp<SkPicture> picture, const IntSize& size) |
+ PaintGeneratedImage(sk_sp<PaintRecord> picture, const IntSize& size) |
: GeneratedImage(size), m_picture(std::move(picture)) {} |
- sk_sp<SkPicture> m_picture; |
+ sk_sp<PaintRecord> m_picture; |
}; |
} // namespace blink |