| 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..25b0d25d65f89c9c96b1e5258b5390ed9efc9a55 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,22 @@ 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. Can only be called if the command buffer
|
| + // service runs on the same thread as this client because GLSurface is not
|
| + // thread safe.
|
| + 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;
|
|
|