| Index: mojo/services/gles2/gpu_impl.cc
|
| diff --git a/mojo/services/gles2/gpu_impl.cc b/mojo/services/gles2/gpu_impl.cc
|
| index f6df3d0b79b9e9770aa5939a8575750812da6194..4c1b4645ef6f09b76cb967ad634249e8ffaa10ec 100644
|
| --- a/mojo/services/gles2/gpu_impl.cc
|
| +++ b/mojo/services/gles2/gpu_impl.cc
|
| @@ -12,9 +12,12 @@
|
| namespace mojo {
|
|
|
| GpuImpl::GpuImpl(
|
| + ScopedMessagePipeHandle handle,
|
| const scoped_refptr<gfx::GLShareGroup>& share_group,
|
| const scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager)
|
| - : share_group_(share_group), mailbox_manager_(mailbox_manager) {
|
| + : share_group_(share_group),
|
| + mailbox_manager_(mailbox_manager),
|
| + binding_(this, handle.Pass()) {
|
| }
|
|
|
| GpuImpl::~GpuImpl() {
|
| @@ -26,18 +29,15 @@ void GpuImpl::CreateOnscreenGLES2Context(
|
| InterfaceRequest<CommandBuffer> command_buffer_request) {
|
| gfx::AcceleratedWidget widget = bit_cast<gfx::AcceleratedWidget>(
|
| static_cast<uintptr_t>(native_viewport_id));
|
| - BindToRequest(new CommandBufferImpl(widget,
|
| - size.To<gfx::Size>(),
|
| - share_group_.get(),
|
| - mailbox_manager_.get()),
|
| - &command_buffer_request);
|
| + new CommandBufferImpl(command_buffer_request.PassMessagePipe(), widget,
|
| + size.To<gfx::Size>(), share_group_.get(),
|
| + mailbox_manager_.get());
|
| }
|
|
|
| void GpuImpl::CreateOffscreenGLES2Context(
|
| InterfaceRequest<CommandBuffer> command_buffer_request) {
|
| - BindToRequest(
|
| - new CommandBufferImpl(share_group_.get(), mailbox_manager_.get()),
|
| - &command_buffer_request);
|
| + new CommandBufferImpl(command_buffer_request.PassMessagePipe(),
|
| + share_group_.get(), mailbox_manager_.get());
|
| }
|
|
|
| } // namespace mojo
|
|
|