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

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: snapshot 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 a18a50836aa85a443c4bf748b8f99c4e35751583..542efe66568659435edd292a8409a61dba02af94 100644
--- a/mojo/services/gles2/command_buffer_impl.cc
+++ b/mojo/services/gles2/command_buffer_impl.cc
@@ -48,17 +48,23 @@ 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(); }
+CommandBufferImpl::~CommandBufferImpl() {
+ // XXX do we have a client_ here?
+ client_->DidDestroy();
+}
+
+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