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

Unified Diff: Source/platform/graphics/CrossfadeGeneratedImage.h

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 7 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: Source/platform/graphics/CrossfadeGeneratedImage.h
diff --git a/Source/platform/graphics/CrossfadeGeneratedImage.h b/Source/platform/graphics/CrossfadeGeneratedImage.h
index 938aae19907057c4ff7c237dabdbd7fc1433564d..34e97485dd13490353a8666548dcbf66e5f99c0d 100644
--- a/Source/platform/graphics/CrossfadeGeneratedImage.h
+++ b/Source/platform/graphics/CrossfadeGeneratedImage.h
@@ -49,14 +49,13 @@ public:
virtual IntSize size() const override { return m_crossfadeSize; }
protected:
- void draw(GraphicsContext*, const FloatRect&, const FloatRect&,
- SkXfermode::Mode, RespectImageOrientationEnum) override;
+ void draw(SkCanvas*, const SkPaint&, const FloatRect&, const FloatRect&, RespectImageOrientationEnum, ImageClampingMode) override;
virtual void drawTile(GraphicsContext*, const FloatRect&) final;
CrossfadeGeneratedImage(Image* fromImage, Image* toImage, float percentage, IntSize crossfadeSize, const IntSize&);
private:
- void drawCrossfade(GraphicsContext*, SkXfermode::Mode);
+ void drawCrossfade(SkCanvas*, const SkPaint&, ImageClampingMode);
Image* m_fromImage;
Image* m_toImage;

Powered by Google App Engine
This is Rietveld 408576698