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

Unified Diff: Source/platform/graphics/StaticBitmapImage.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: fix svg stuff 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/StaticBitmapImage.h
diff --git a/Source/platform/graphics/StaticBitmapImage.h b/Source/platform/graphics/StaticBitmapImage.h
index 7e92a52eadf4789c21a04569e8b13a8a6c347754..827d5ee1a1b11658b5045eeb23a7bbb57f6809e6 100644
--- a/Source/platform/graphics/StaticBitmapImage.h
+++ b/Source/platform/graphics/StaticBitmapImage.h
@@ -13,11 +13,13 @@ class PLATFORM_EXPORT StaticBitmapImage : public Image {
public:
virtual ~StaticBitmapImage();
+ bool isImmutableBitmap() override { return true; }
+
static PassRefPtr<Image> create(PassRefPtr<SkImage>);
virtual void destroyDecodedData(bool destroyAll) { }
virtual bool currentFrameKnownToBeOpaque();
virtual IntSize size() const;
- void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, SkXfermode::Mode, RespectImageOrientationEnum) override;
+ void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, const ImageFilterQualityHelper*) override;
PassRefPtr<SkImage> skImage() override { return m_image; }

Powered by Google App Engine
This is Rietveld 408576698