Index: components/mus/gles2/command_buffer_local.h |
diff --git a/components/mus/gles2/command_buffer_local.h b/components/mus/gles2/command_buffer_local.h |
index 6c5cef51b023191d6b240a73d2b9a0292f4634d2..48f286258c8b4bfc9328f6a3b08cc1443cabec0c 100644 |
--- a/components/mus/gles2/command_buffer_local.h |
+++ b/components/mus/gles2/command_buffer_local.h |
@@ -35,6 +35,7 @@ class GLSurface; |
} |
namespace gpu { |
+class GpuControlClient; |
class SyncPointClient; |
} |
@@ -74,6 +75,7 @@ class CommandBufferLocal : public gpu::CommandBuffer, |
void DestroyTransferBuffer(int32_t id) override; |
// gpu::GpuControl implementation: |
+ void SetGpuControlClient(gpu::GpuControlClient*) override; |
gpu::Capabilities GetCapabilities() override; |
int32_t CreateImage(ClientBuffer buffer, |
size_t width, |
@@ -144,6 +146,7 @@ class CommandBufferLocal : public gpu::CommandBuffer, |
scoped_refptr<base::SingleThreadTaskRunner> client_thread_task_runner_; |
// Members accessed on the client thread: |
+ gpu::GpuControlClient* gpu_control_client_; |
gpu::CommandBuffer::State last_state_; |
mojo::ScopedSharedBufferHandle shared_state_handle_; |
gpu::CommandBufferSharedState* shared_state_; |
@@ -153,6 +156,7 @@ class CommandBufferLocal : public gpu::CommandBuffer, |
int32_t next_image_id_; |
uint64_t next_fence_sync_release_; |
uint64_t flushed_fence_sync_release_; |
+ bool lost_context_; |
// This sync point client is only for out of order Wait on client thread. |
scoped_ptr<gpu::SyncPointClient> sync_point_client_waiter_; |