Chromium Code Reviews| 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 58f55fd42b5edd82e6eee03ba7c7caeefa3d31d4..69453b8bd0cfee378277ef9c730dedec29951bd8 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h |
| +++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h |
| @@ -7,6 +7,7 @@ |
| #include "platform/geometry/IntSize.h" |
| #include "platform/graphics/GeneratedImage.h" |
| +#include "third_party/skia/include/core/SkRefCnt.h" |
| class SkPicture; |
| @@ -14,7 +15,7 @@ namespace blink { |
| class PLATFORM_EXPORT PaintGeneratedImage : public GeneratedImage { |
| public: |
| - static PassRefPtr<PaintGeneratedImage> create(PassRefPtr<SkPicture> picture, const IntSize& size) |
| + static PassRefPtr<PaintGeneratedImage> create(sk_sp<SkPicture> picture, const IntSize& size) |
| { |
| return adoptRef(new PaintGeneratedImage(picture, size)); |
|
f(malita)
2016/09/01 03:55:38
std::move(picture)
Łukasz Anforowicz
2016/09/01 20:50:58
Done.
|
| } |
| @@ -24,13 +25,13 @@ protected: |
| void draw(SkCanvas*, const SkPaint&, const FloatRect&, const FloatRect&, RespectImageOrientationEnum, ImageClampingMode) override; |
| void drawTile(GraphicsContext&, const FloatRect&) final; |
| - PaintGeneratedImage(PassRefPtr<SkPicture> picture, const IntSize& size) |
| + PaintGeneratedImage(sk_sp<SkPicture> picture, const IntSize& size) |
| : GeneratedImage(size) |
| , m_picture(picture) |
|
f(malita)
2016/09/01 03:55:38
std::move(picture)
Łukasz Anforowicz
2016/09/01 20:50:58
Done.
|
| { |
| } |
| - RefPtr<SkPicture> m_picture; |
| + sk_sp<SkPicture> m_picture; |
| }; |
| } // namespace blink |