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 6175cc556ad284f9522cacbd9ced80c7796798d1..142d4a2be35d023fcc5775d6b9ec84c3b6f905b9 100644 |
--- a/gpu/command_buffer/client/gl_in_process_context.h |
+++ b/gpu/command_buffer/client/gl_in_process_context.h |
@@ -30,6 +30,16 @@ namespace gles2 { |
class GLES2Implementation; |
} |
+struct GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContextSharedMemoryLimits { |
+ GLInProcessContextSharedMemoryLimits(); |
+ |
+ size_t command_buffer_size; |
+ size_t start_transfer_buffer_size; |
+ size_t min_transfer_buffer_size; |
+ size_t max_transfer_buffer_size; |
+ size_t mapped_memory_reclaim_limit; |
+}; |
+ |
class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext { |
public: |
virtual ~GLInProcessContext() {} |
@@ -53,7 +63,8 @@ class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext { |
GLInProcessContext* share_context, |
bool use_global_share_group, |
const gpu::gles2::ContextCreationAttribHelper& attribs, |
- gfx::GpuPreference gpu_preference); |
+ gfx::GpuPreference gpu_preference, |
+ const GLInProcessContextSharedMemoryLimits& memory_limits); |
virtual void SetContextLostCallback(const base::Closure& callback) = 0; |
@@ -61,6 +72,8 @@ class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext { |
// can be used without making it current. |
virtual gles2::GLES2Implementation* GetImplementation() = 0; |
+ virtual size_t GetMappedMemoryLimit() = 0; |
+ |
#if defined(OS_ANDROID) |
virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
uint32 stream_id) = 0; |