Index: webkit/common/gpu/webgraphicscontext3d_impl.h |
diff --git a/webkit/common/gpu/webgraphicscontext3d_impl.h b/webkit/common/gpu/webgraphicscontext3d_impl.h |
index 5cb055db5f841ebcf7c4978b28828697370b0330..9097b8f5adfb8d1691097895c9a6aa8db40a997b 100644 |
--- a/webkit/common/gpu/webgraphicscontext3d_impl.h |
+++ b/webkit/common/gpu/webgraphicscontext3d_impl.h |
@@ -46,6 +46,13 @@ class WebGraphicsContext3DErrorMessageCallback; |
class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
: public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { |
public: |
+ virtual ~WebGraphicsContext3DImpl(); |
+ |
+ // Must be called before any of the following methods. Permanently binds to |
+ // the first calling thread. Returns false if the graphics context fails to |
+ // initialize. Do not call from more than one thread. |
+ virtual bool InitializeOnCurrentThread() = 0; |
+ |
//---------------------------------------------------------------------- |
// WebGraphicsContext3D methods |
@@ -570,7 +577,6 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
friend class WebGraphicsContext3DErrorMessageCallback; |
WebGraphicsContext3DImpl(); |
- virtual ~WebGraphicsContext3DImpl(); |
::gpu::gles2::GLES2ImplementationErrorMessageCallback* |
getErrorMessageCallback(); |