Index: mojo/gles2/command_buffer_client_impl.h |
diff --git a/mojo/gles2/command_buffer_client_impl.h b/mojo/gles2/command_buffer_client_impl.h |
index a546023621144e0e52055afa025a0057808bd25f..995ff1c9511950c73155eb23800a3f548585176e 100644 |
--- a/mojo/gles2/command_buffer_client_impl.h |
+++ b/mojo/gles2/command_buffer_client_impl.h |
@@ -27,12 +27,19 @@ |
namespace gles2 { |
class CommandBufferClientImpl; |
+class CommandBufferDelegate { |
+ public: |
+ virtual ~CommandBufferDelegate(); |
+ virtual void ContextLost(); |
+}; |
+ |
class CommandBufferClientImpl |
: public mus::mojom::CommandBufferClient, |
public gpu::CommandBuffer, |
public gpu::GpuControl { |
public: |
explicit CommandBufferClientImpl( |
+ CommandBufferDelegate* delegate, |
const std::vector<int32_t>& attribs, |
mojo::ScopedMessagePipeHandle command_buffer_handle); |
~CommandBufferClientImpl() override; |
@@ -51,7 +58,6 @@ |
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, |
@@ -90,8 +96,7 @@ |
gpu::CommandBufferSharedState* shared_state() const { return shared_state_; } |
- gpu::GpuControlClient* gpu_control_client_; |
- bool destroyed_; |
+ CommandBufferDelegate* delegate_; |
std::vector<int32_t> attribs_; |
mojo::Binding<mus::mojom::CommandBufferClient> client_binding_; |
mus::mojom::CommandBufferPtr command_buffer_; |