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

Unified Diff: third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h

Issue 2294383002: Make OffscreenCanvas a member of CanvasImageSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/modules/imagebitmap/ImageBitmapRenderingContext.h
diff --git a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h
index cb766dcaa4a16f21930e328988b63b82a76cbd05..22038c096dc8fa52d6e97aee44765746d8573d03 100644
--- a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h
+++ b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h
@@ -37,7 +37,7 @@ public:
bool isContextLost() const override { return false; }
bool paint(GraphicsContext&, const IntRect&) override;
void setCanvasGetContextResult(RenderingContext&) final;
- PassRefPtr<Image> getImage() const final { return m_image.get(); }
+ PassRefPtr<Image> getImage(SnapshotReason) const final { return m_image.get(); }
// TODO(junov): Implement GPU accelerated rendering using a layer bridge
WebLayer* platformLayer() const override { return nullptr; }
@@ -46,6 +46,8 @@ public:
void stop() override;
+ bool isPaintable() const final { return m_image.get(); }
+
virtual ~ImageBitmapRenderingContext();
private:
@@ -53,8 +55,6 @@ private:
bool m_hasAlpha;
RefPtr<Image> m_image;
-
- bool isPaintable() const final { return m_image.get(); }
};
DEFINE_TYPE_CASTS(ImageBitmapRenderingContext, CanvasRenderingContext, context,

Powered by Google App Engine
This is Rietveld 408576698