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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 dc84dc299712dca9e631e8d7a4bf81d176024fe6..5136153ad2ab59d99f631d307d5c023e6edb3bb0 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h
+++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h
@@ -7,33 +7,32 @@
#include "platform/geometry/IntSize.h"
#include "platform/graphics/GeneratedImage.h"
+#include "skia/ext/cdl_common.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<CdlPicture> picture,
const IntSize& size) {
return adoptRef(new PaintGeneratedImage(std::move(picture), size));
}
~PaintGeneratedImage() override {}
protected:
- void draw(SkCanvas*,
- const SkPaint&,
+ void draw(CdlCanvas*,
+ const CdlPaint&,
const FloatRect&,
const FloatRect&,
RespectImageOrientationEnum,
ImageClampingMode) override;
void drawTile(GraphicsContext&, const FloatRect&) final;
- PaintGeneratedImage(sk_sp<SkPicture> picture, const IntSize& size)
+ PaintGeneratedImage(sk_sp<CdlPicture> picture, const IntSize& size)
: GeneratedImage(size), m_picture(std::move(picture)) {}
- sk_sp<SkPicture> m_picture;
+ sk_sp<CdlPicture> m_picture;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698