Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1711)

Unified Diff: mojo/services/gles2/command_buffer_impl.cc

Issue 280003003: Add SetClient method implementation to InterfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.h ('k') | mojo/services/native_viewport/native_viewport_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.h ('k') | mojo/services/native_viewport/native_viewport_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698