Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h |
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h |
index 22cd3b373aa46faedaef39876edc23a071f48685..0d5c177f7ad20fd517d04ff90b2d478aea7a10c9 100644 |
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h |
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h |
@@ -45,9 +45,15 @@ class GLInProcessContext; |
class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
: public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
public: |
+ static WebGraphicsContext3DInProcessCommandBufferImpl* |
+ CreateViewContext( |
+ const WebKit::WebGraphicsContext3D::Attributes& attributes, |
+ gfx::AcceleratedWidget window); |
+ |
+ static WebGraphicsContext3DInProcessCommandBufferImpl* |
+ CreateOffscreenContext( |
+ const WebKit::WebGraphicsContext3D::Attributes& attributes); |
- explicit WebGraphicsContext3DInProcessCommandBufferImpl( |
- const WebKit::WebGraphicsContext3D::Attributes& attributes); |
virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
//---------------------------------------------------------------------- |
@@ -526,6 +532,11 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
virtual GrGLInterface* onCreateGrGLInterface(); |
private: |
+ WebGraphicsContext3DInProcessCommandBufferImpl( |
+ const WebKit::WebGraphicsContext3D::Attributes& attributes, |
+ bool is_offscreen, |
+ gfx::AcceleratedWidget window); |
+ |
// SwapBuffers callback. |
void OnSwapBuffersComplete(); |
virtual void OnContextLost(); |
@@ -536,6 +547,11 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
// instead of going through WebGraphicsContext3D. |
void ClearContext(); |
+ |
+ bool is_offscreen_; |
+ // Only used when not offscreen. |
+ gfx::AcceleratedWidget window_; |
+ |
bool initialized_; |
bool initialize_failed_; |