| Index: Source/core/html/canvas/WebGLRenderingContextBase.h
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.h b/Source/core/html/canvas/WebGLRenderingContextBase.h
|
| index f259bbcbc6c46c782fad1ad2da5fb86db432c8c4..40a8759b5e678d0aace9aa17b475ee7b77ad5978 100644
|
| --- a/Source/core/html/canvas/WebGLRenderingContextBase.h
|
| +++ b/Source/core/html/canvas/WebGLRenderingContextBase.h
|
| @@ -115,6 +115,9 @@ public:
|
|
|
| static unsigned getWebGLVersion(const CanvasRenderingContext*);
|
|
|
| + static PassOwnPtr<blink::WebGraphicsContext3D> createWebGraphicsContext3D(HTMLCanvasElement*, WebGLContextAttributes, unsigned webGLVersion);
|
| + static void forceNextWebGLContextCreationToFail();
|
| +
|
| int drawingBufferWidth() const;
|
| int drawingBufferHeight() const;
|
|
|
| @@ -421,6 +424,8 @@ protected:
|
| bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override;
|
| virtual blink::WebLayer* platformLayer() const override;
|
|
|
| + bool isWebGL2OrHigher() { return version() >= 2; }
|
| +
|
| void addSharedObject(WebGLSharedObject*);
|
| void addContextObject(WebGLContextObject*);
|
| void detachAndRemoveAllObjects();
|
|
|