Chromium Code Reviews| 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..867f7338a9c7e8360a7f9fe995c4eec55fc38529 100644 |
| --- a/webkit/common/gpu/webgraphicscontext3d_impl.h |
| +++ b/webkit/common/gpu/webgraphicscontext3d_impl.h |
| @@ -46,9 +46,18 @@ class WebGraphicsContext3DErrorMessageCallback; |
| class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { |
| public: |
| + virtual ~WebGraphicsContext3DImpl(); |
| + |
| + // Must be called after initialize() and before any of the following methods. |
| + // Permanently binds to the first calling thread. Returns false if the |
| + // graphics context fails to create. Do not call from more than one thread. |
| + virtual bool BindToCurrentThread() = 0; |
|
piman
2014/08/15 17:47:34
nit: There's no initialize() method any more. This
|
| + |
| //---------------------------------------------------------------------- |
| // WebGraphicsContext3D methods |
| + // TODO(dshwang): remove it. |
| + virtual bool makeContextCurrent(); |
| virtual uint32_t lastFlushID(); |
| virtual unsigned int insertSyncPoint(); |
| @@ -570,7 +579,6 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| friend class WebGraphicsContext3DErrorMessageCallback; |
| WebGraphicsContext3DImpl(); |
| - virtual ~WebGraphicsContext3DImpl(); |
| ::gpu::gles2::GLES2ImplementationErrorMessageCallback* |
| getErrorMessageCallback(); |