Chromium Code Reviews| 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..8ce7d81b587b206d0fcac105f55b53306f78de37 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,18 @@ 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); |
| + |
| + static GLInProcessContext* CreateWithSurface( |
|
joth
2013/08/04 00:45:16
comment?
|
| + 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; |