Index: mojo/services/gles2/command_buffer_impl.cc |
diff --git a/mojo/services/gles2/command_buffer_impl.cc b/mojo/services/gles2/command_buffer_impl.cc |
index 0e398373fff70aad0338030ce71d77b9e4c25124..dd5464283f6538c8a52b8049fc0da21c2379cc5a 100644 |
--- a/mojo/services/gles2/command_buffer_impl.cc |
+++ b/mojo/services/gles2/command_buffer_impl.cc |
@@ -53,7 +53,7 @@ CommandBufferImpl::CommandBufferImpl(gfx::AcceleratedWidget widget, |
: widget_(widget), size_(size) {} |
CommandBufferImpl::~CommandBufferImpl() { |
- client_->DidDestroy(); |
+ client()->DidDestroy(); |
if (decoder_.get()) { |
bool have_context = decoder_->MakeCurrent(); |
decoder_->Destroy(have_context); |
@@ -64,10 +64,6 @@ void CommandBufferImpl::OnConnectionError() { |
// TODO(darin): How should we handle this error? |
} |
-void CommandBufferImpl::SetClient(CommandBufferClient* client) { |
- client_ = client; |
-} |
- |
void CommandBufferImpl::Initialize( |
CommandBufferSyncClientPtr sync_client, |
mojo::ScopedSharedBufferHandle shared_state) { |
@@ -194,10 +190,10 @@ void CommandBufferImpl::CancelAnimationFrames() { timer_.Stop(); } |
void CommandBufferImpl::OnParseError() { |
gpu::CommandBuffer::State state = command_buffer_->GetLastState(); |
- client_->LostContext(state.context_lost_reason); |
+ client()->LostContext(state.context_lost_reason); |
} |
-void CommandBufferImpl::DrawAnimationFrame() { client_->DrawAnimationFrame(); } |
+void CommandBufferImpl::DrawAnimationFrame() { client()->DrawAnimationFrame(); } |
} // namespace services |
} // namespace mojo |