| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/native_viewport/onscreen_context_provider.h" | 5 #include "components/view_manager/native_viewport/onscreen_context_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "components/gles2/command_buffer_driver.h" | 8 #include "components/gles2/command_buffer_driver.h" |
| 9 #include "components/gles2/command_buffer_impl.h" | 9 #include "components/gles2/command_buffer_impl.h" |
| 10 #include "components/gles2/gpu_state.h" | 10 #include "components/gles2/gpu_state.h" |
| 11 | 11 |
| 12 namespace native_viewport { | 12 namespace native_viewport { |
| 13 | 13 |
| 14 OnscreenContextProvider::OnscreenContextProvider( | 14 OnscreenContextProvider::OnscreenContextProvider( |
| 15 const scoped_refptr<gles2::GpuState>& state) | 15 const scoped_refptr<gles2::GpuState>& state) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 pending_create_callback_.Run(cb.Pass()); | 65 pending_create_callback_.Run(cb.Pass()); |
| 66 pending_create_callback_.reset(); | 66 pending_create_callback_.reset(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void OnscreenContextProvider::CommandBufferDestroyed( | 69 void OnscreenContextProvider::CommandBufferDestroyed( |
| 70 gles2::CommandBufferDriver* command_buffer) { | 70 gles2::CommandBufferDriver* command_buffer) { |
| 71 command_buffers_.erase(command_buffer); | 71 command_buffers_.erase(command_buffer); |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace mojo | 74 } // namespace mojo |
| OLD | NEW |