| Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h
|
| diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h
|
| index 3b285c6d5c391d61862fcdcd8d0661fe386bc7d5..9c185e8d9ad878d8e1799cfb0c9c6bf61b0c2e60 100644
|
| --- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h
|
| +++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h
|
| @@ -20,6 +20,8 @@ class ImageBitmap;
|
| class OffscreenCanvasRenderingContext;
|
| class OffscreenCanvasRenderingContext2D;
|
| class OffscreenCanvasRenderingContextFactory;
|
| +class OffscreenCanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContext;
|
| +typedef OffscreenCanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContext OffscreenRenderingContext;
|
|
|
| class MODULES_EXPORT OffscreenCanvas final : public GarbageCollectedFinalized<OffscreenCanvas>, public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| @@ -34,11 +36,11 @@ public:
|
| void setHeight(unsigned);
|
|
|
| // API Methods
|
| - OffscreenCanvasRenderingContext2D* getContext(const String&, const CanvasContextCreationAttributes&);
|
| + void getContext(ScriptState*, const String&, const CanvasContextCreationAttributes&, OffscreenRenderingContext&);
|
| ImageBitmap* transferToImageBitmap(ExceptionState&);
|
|
|
| IntSize size() const { return m_size; }
|
| - OffscreenCanvasRenderingContext2D* renderingContext() const;
|
| + OffscreenCanvasRenderingContext* renderingContext() const;
|
| void setAssociatedCanvas(HTMLCanvasElement* canvas) { m_canvas = canvas; }
|
| HTMLCanvasElement* getAssociatedCanvas() const { return m_canvas; }
|
|
|
|
|