| 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 "mojo/services/native_viewport/gpu_impl.h" | 5 #include "mojo/services/gles2/gpu_impl.h" |
| 6 | 6 |
| 7 #include "gpu/command_buffer/service/mailbox_manager.h" | 7 #include "gpu/command_buffer/service/mailbox_manager.h" |
| 8 #include "mojo/converters/geometry/geometry_type_converters.h" | 8 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 9 #include "mojo/services/gles2/command_buffer_impl.h" | 9 #include "mojo/services/gles2/command_buffer_impl.h" |
| 10 #include "ui/gl/gl_share_group.h" | 10 #include "ui/gl/gl_share_group.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 | 13 |
| 14 GpuImpl::GpuImpl( | 14 GpuImpl::GpuImpl( |
| 15 const scoped_refptr<gfx::GLShareGroup>& share_group, | 15 const scoped_refptr<gfx::GLShareGroup>& share_group, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 void GpuImpl::CreateOffscreenGLES2Context( | 36 void GpuImpl::CreateOffscreenGLES2Context( |
| 37 InterfaceRequest<CommandBuffer> command_buffer_request) { | 37 InterfaceRequest<CommandBuffer> command_buffer_request) { |
| 38 BindToRequest( | 38 BindToRequest( |
| 39 new CommandBufferImpl(share_group_.get(), mailbox_manager_.get()), | 39 new CommandBufferImpl(share_group_.get(), mailbox_manager_.get()), |
| 40 &command_buffer_request); | 40 &command_buffer_request); |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace mojo | 43 } // namespace mojo |
| OLD | NEW |