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 "services/ui/surfaces/surfaces_context_provider.h" | 5 #include "services/ui/surfaces/surfaces_context_provider.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/single_thread_task_runner.h" |
12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "cc/output/context_cache_controller.h" | 16 #include "cc/output/context_cache_controller.h" |
16 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 17 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
17 #include "gpu/command_buffer/client/gles2_implementation.h" | 18 #include "gpu/command_buffer/client/gles2_implementation.h" |
18 #include "gpu/command_buffer/client/shared_memory_limits.h" | 19 #include "gpu/command_buffer/client/shared_memory_limits.h" |
19 #include "gpu/command_buffer/client/transfer_buffer.h" | 20 #include "gpu/command_buffer/client/transfer_buffer.h" |
20 #include "gpu/ipc/client/command_buffer_proxy_impl.h" | 21 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
21 #include "gpu/ipc/client/gpu_channel_host.h" | 22 #include "gpu/ipc/client/gpu_channel_host.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 if (delegate_) | 160 if (delegate_) |
160 delegate_->OnVSyncParametersUpdated(timebase, interval); | 161 delegate_->OnVSyncParametersUpdated(timebase, interval); |
161 } | 162 } |
162 | 163 |
163 void SurfacesContextProvider::SetSwapBuffersCompletionCallback( | 164 void SurfacesContextProvider::SetSwapBuffersCompletionCallback( |
164 gl::GLSurface::SwapCompletionCallback callback) { | 165 gl::GLSurface::SwapCompletionCallback callback) { |
165 swap_buffers_completion_callback_ = callback; | 166 swap_buffers_completion_callback_ = callback; |
166 } | 167 } |
167 | 168 |
168 } // namespace ui | 169 } // namespace ui |
OLD | NEW |