| 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()));
|
| }
|
|
|
|
|