Index: gpu/command_buffer/client/gl_in_process_context.h |
diff --git a/gpu/command_buffer/client/gl_in_process_context.h b/gpu/command_buffer/client/gl_in_process_context.h |
index 2d0754b227434091d085500a3f9a865f02287d42..7d26ffab8a72c3d08aa6226b3a64a3523291c6b8 100644 |
--- a/gpu/command_buffer/client/gl_in_process_context.h |
+++ b/gpu/command_buffer/client/gl_in_process_context.h |
@@ -9,6 +9,7 @@ |
#include "base/compiler_specific.h" |
#include "gles2_impl_export.h" |
#include "ui/gfx/native_widget_types.h" |
+#include "ui/gl/gl_surface.h" |
#include "ui/gl/gpu_preference.h" |
namespace gfx { |
@@ -54,8 +55,20 @@ class GLES2_IMPL_EXPORT GLInProcessContext { |
bool share_resources, |
const char* allowed_extensions, |
const int32* attrib_list, |
- gfx::GpuPreference gpu_preference, |
- const base::Closure& callback); |
+ gfx::GpuPreference gpu_preference); |
+ |
+ // Create context with the provided GLSurface. All other arguments match |
+ // CreateContext factory above. |
+ static GLInProcessContext* CreateWithSurface( |
+ scoped_refptr<gfx::GLSurface> surface, |
+ bool is_offscreen, |
+ const gfx::Size& size, |
+ bool share_resources, |
+ const char* allowed_extensions, |
+ const int32* attrib_list, |
+ gfx::GpuPreference gpu_preference); |
+ |
+ virtual void SetContextLostCallback(const base::Closure& callback) = 0; |
virtual void SignalSyncPoint(unsigned sync_point, |
const base::Closure& callback) = 0; |