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 | 9 |
10 namespace gles2 { | 10 namespace gles2 { |
11 | 11 |
12 GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request, | 12 GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request, |
13 const scoped_refptr<GpuState>& state) | 13 const scoped_refptr<GpuState>& state) |
14 : binding_(this, request.Pass()), state_(state) { | 14 : binding_(this, request.Pass()), state_(state) { |
15 } | 15 } |
16 | 16 |
17 GpuImpl::~GpuImpl() { | 17 GpuImpl::~GpuImpl() { |
18 } | 18 } |
19 | 19 |
20 void GpuImpl::CreateOffscreenGLES2Context( | 20 void GpuImpl::CreateOffscreenGLES2Context( |
21 mojo::InterfaceRequest<mojo::CommandBuffer> request) { | 21 mojo::InterfaceRequest<mojo::CommandBuffer> request) { |
22 new CommandBufferImpl(request.Pass(), mojo::ViewportParameterListenerPtr(), | 22 new CommandBufferImpl(request.Pass(), state_, |
rjkroege
2015/08/06 22:09:02
what are you doing here? wasn't the VPL needed to
| |
23 state_, | |
24 make_scoped_ptr(new CommandBufferDriver(state_))); | 23 make_scoped_ptr(new CommandBufferDriver(state_))); |
25 } | 24 } |
26 | 25 |
27 } // namespace gles2 | 26 } // namespace gles2 |
OLD | NEW |