Index: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
index defa199a0f350de69e54fc45a713128974d98f7f..0eb2cf985e147a5255cbd4036a8ffe488ed80abb 100644 |
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
@@ -67,12 +67,16 @@ public: |
bool hasAlpha() const override { return m_hasAlpha; } |
bool isContextLost() const override; |
+ PassRefPtrWillBeRawPtr<ImageBitmap> transferToImageBitmap(ExceptionState&) final; |
+ |
protected: |
OffscreenCanvasRenderingContext2D(OffscreenCanvas*, const CanvasContextCreationAttributes& attrs); |
DECLARE_VIRTUAL_TRACE(); |
private: |
bool m_hasAlpha; |
+ bool m_originClean = true; |
+ OwnPtr<ImageBuffer> m_imageBuffer; |
}; |
} // namespace blink |