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

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

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and 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
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 bbeb3931e2cda9b3ac554dcaaa70e0c0c474f10d..0e398373fff70aad0338030ce71d77b9e4c25124 100644
--- a/mojo/services/gles2/command_buffer_impl.cc
+++ b/mojo/services/gles2/command_buffer_impl.cc
@@ -48,10 +48,9 @@ class MemoryTrackerStub : public gpu::gles2::MemoryTracker {
} // anonymous namespace
-CommandBufferImpl::CommandBufferImpl(ScopedCommandBufferClientHandle client,
- gfx::AcceleratedWidget widget,
+CommandBufferImpl::CommandBufferImpl(gfx::AcceleratedWidget widget,
const gfx::Size& size)
- : client_(client.Pass(), this), widget_(widget), size_(size) {}
+ : widget_(widget), size_(size) {}
CommandBufferImpl::~CommandBufferImpl() {
client_->DidDestroy();
@@ -61,10 +60,18 @@ CommandBufferImpl::~CommandBufferImpl() {
}
}
+void CommandBufferImpl::OnConnectionError() {
+ // TODO(darin): How should we handle this error?
+}
+
+void CommandBufferImpl::SetClient(CommandBufferClient* client) {
+ client_ = client;
+}
+
void CommandBufferImpl::Initialize(
- ScopedCommandBufferSyncClientHandle sync_client,
+ CommandBufferSyncClientPtr sync_client,
mojo::ScopedSharedBufferHandle shared_state) {
- sync_client_.reset(sync_client.Pass(), NULL);
+ sync_client_ = sync_client.Pass();
sync_client_->DidInitialize(DoInitialize(shared_state.Pass()));
}

Powered by Google App Engine
This is Rietveld 408576698