| 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 6fef3c0133ff7fe4e6e0de290554e46b8fe690c5..c5d3059f06c48f5a9fe6e19c407c75cb8e93434f 100644
|
| --- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
|
| +++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
|
| @@ -24,7 +24,7 @@ public:
|
|
|
| CanvasRenderingContext* create(ScriptState* scriptState, OffscreenCanvas* canvas, const CanvasContextCreationAttributes& attrs) override
|
| {
|
| - return new OffscreenCanvasRenderingContext2D(canvas, attrs);
|
| + return new OffscreenCanvasRenderingContext2D(scriptState, canvas, attrs);
|
| }
|
|
|
| CanvasRenderingContext::ContextType getContextType() const override
|
| @@ -75,13 +75,14 @@ public:
|
| ImageBitmap* transferToImageBitmap(ExceptionState&) final;
|
|
|
| protected:
|
| - OffscreenCanvasRenderingContext2D(OffscreenCanvas*, const CanvasContextCreationAttributes& attrs);
|
| + OffscreenCanvasRenderingContext2D(ScriptState*, OffscreenCanvas*, const CanvasContextCreationAttributes& attrs);
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| bool m_hasAlpha;
|
| bool m_needsMatrixClipRestore = false;
|
| std::unique_ptr<ImageBuffer> m_imageBuffer;
|
| + bool m_disableReadingFromCanvas;
|
| };
|
|
|
| } // namespace blink
|
|
|