Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Unified Diff: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698