Index: components/view_manager/gles2/gpu_impl.cc |
diff --git a/components/view_manager/gles2/gpu_impl.cc b/components/view_manager/gles2/gpu_impl.cc |
index c8ecfb20ce5573178753d49a502269720646b89d..44d99541ddd0d88b66222b4a79644a0ea913fa76 100644 |
--- a/components/view_manager/gles2/gpu_impl.cc |
+++ b/components/view_manager/gles2/gpu_impl.cc |
@@ -6,12 +6,6 @@ |
#include "components/view_manager/gles2/command_buffer_driver.h" |
#include "components/view_manager/gles2/command_buffer_impl.h" |
-#include "gpu/command_buffer/service/mailbox_manager.h" |
-#include "gpu/command_buffer/service/mailbox_manager_impl.h" |
-#include "gpu/command_buffer/service/sync_point_manager.h" |
-#include "mojo/converters/geometry/geometry_type_converters.h" |
-#include "ui/gl/gl_share_group.h" |
-#include "ui/gl/gl_surface.h" |
namespace gles2 { |
@@ -26,11 +20,8 @@ GpuImpl::~GpuImpl() { |
void GpuImpl::CreateOffscreenGLES2Context( |
mojo::InterfaceRequest<mojo::CommandBuffer> request) { |
new CommandBufferImpl(request.Pass(), mojo::ViewportParameterListenerPtr(), |
- state_->control_task_runner(), |
- state_->sync_point_manager(), |
- make_scoped_ptr(new CommandBufferDriver( |
- state_->share_group(), state_->mailbox_manager(), |
- state_->sync_point_manager()))); |
+ state_, |
+ make_scoped_ptr(new CommandBufferDriver(state_))); |
} |
} // namespace gles2 |