Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/view_manager/gles2/gpu_impl.h" | 5 #include "components/view_manager/gles2/gpu_impl.h" |
| 6 | 6 |
| 7 #include "components/view_manager/gles2/command_buffer_driver.h" | 7 #include "components/view_manager/gles2/command_buffer_driver.h" |
| 8 #include "components/view_manager/gles2/command_buffer_impl.h" | 8 #include "components/view_manager/gles2/command_buffer_impl.h" |
| 9 #include "gpu/command_buffer/service/mailbox_manager.h" | 9 #include "gpu/command_buffer/service/mailbox_manager.h" |
|
msw
2015/07/21 17:53:01
nit: remove this.
| |
| 10 #include "gpu/command_buffer/service/mailbox_manager_impl.h" | 10 #include "gpu/command_buffer/service/mailbox_manager_impl.h" |
|
msw
2015/07/21 17:53:01
nit: remove this.
| |
| 11 #include "gpu/command_buffer/service/sync_point_manager.h" | 11 #include "gpu/command_buffer/service/sync_point_manager.h" |
|
msw
2015/07/21 17:53:01
nit: remove this.
| |
| 12 #include "mojo/converters/geometry/geometry_type_converters.h" | 12 #include "mojo/converters/geometry/geometry_type_converters.h" |
|
msw
2015/07/21 17:53:01
nit: remove if not needed.
| |
| 13 #include "ui/gl/gl_share_group.h" | 13 #include "ui/gl/gl_share_group.h" |
|
msw
2015/07/21 17:53:01
nit: remove if not needed.
| |
| 14 #include "ui/gl/gl_surface.h" | 14 #include "ui/gl/gl_surface.h" |
|
msw
2015/07/21 17:53:01
nit: remove if not needed.
| |
| 15 | 15 |
| 16 namespace gles2 { | 16 namespace gles2 { |
| 17 | 17 |
| 18 GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request, | 18 GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request, |
| 19 const scoped_refptr<GpuState>& state) | 19 const scoped_refptr<GpuState>& state) |
| 20 : binding_(this, request.Pass()), state_(state) { | 20 : binding_(this, request.Pass()), state_(state) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 GpuImpl::~GpuImpl() { | 23 GpuImpl::~GpuImpl() { |
| 24 } | 24 } |
| 25 | 25 |
| 26 void GpuImpl::CreateOffscreenGLES2Context( | 26 void GpuImpl::CreateOffscreenGLES2Context( |
| 27 mojo::InterfaceRequest<mojo::CommandBuffer> request) { | 27 mojo::InterfaceRequest<mojo::CommandBuffer> request) { |
| 28 new CommandBufferImpl(request.Pass(), mojo::ViewportParameterListenerPtr(), | 28 new CommandBufferImpl(request.Pass(), mojo::ViewportParameterListenerPtr(), |
| 29 state_->control_task_runner(), | 29 state_, |
| 30 state_->sync_point_manager(), | 30 make_scoped_ptr(new CommandBufferDriver(state_))); |
| 31 make_scoped_ptr(new CommandBufferDriver( | |
| 32 state_->share_group(), state_->mailbox_manager(), | |
| 33 state_->sync_point_manager()))); | |
| 34 } | 31 } |
| 35 | 32 |
| 36 } // namespace gles2 | 33 } // namespace gles2 |
| OLD | NEW |