Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / webkit / common / gpu / webgraphicscontext3d_impl.h
index 5cb055d..9097b8f 100644 (file)
@@ -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();