OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef SERVICES_UI_PUBLIC_CPP_GPU_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_GPU_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_GPU_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_GPU_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "base/trace_event/memory_dump_provider.h" | 17 #include "base/trace_event/memory_dump_provider.h" |
18 #include "cc/output/context_provider.h" | 18 #include "cc/output/context_provider.h" |
19 #include "gpu/command_buffer/client/shared_memory_limits.h" | 19 #include "gpu/command_buffer/client/shared_memory_limits.h" |
20 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 20 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
21 #include "gpu/ipc/common/gpu_stream_constants.h" | 21 #include "gpu/command_buffer/common/gpu_stream_constants.h" |
22 #include "gpu/ipc/common/surface_handle.h" | 22 #include "gpu/ipc/common/surface_handle.h" |
23 #include "services/ui/public/cpp/gpu/command_buffer_metrics.h" | 23 #include "services/ui/public/cpp/gpu/command_buffer_metrics.h" |
24 #include "ui/gl/gpu_preference.h" | 24 #include "ui/gl/gpu_preference.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 namespace gpu { | 27 namespace gpu { |
28 class CommandBufferProxyImpl; | 28 class CommandBufferProxyImpl; |
29 class GpuChannelHost; | 29 class GpuChannelHost; |
30 class TransferBuffer; | 30 class TransferBuffer; |
31 namespace gles2 { | 31 namespace gles2 { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; | 133 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; |
134 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 134 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
135 std::unique_ptr<cc::ContextCacheController> cache_controller_; | 135 std::unique_ptr<cc::ContextCacheController> cache_controller_; |
136 | 136 |
137 LostContextCallback lost_context_callback_; | 137 LostContextCallback lost_context_callback_; |
138 }; | 138 }; |
139 | 139 |
140 } // namespace ui | 140 } // namespace ui |
141 | 141 |
142 #endif // SERVICES_UI_PUBLIC_CPP_GPU_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 142 #endif // SERVICES_UI_PUBLIC_CPP_GPU_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
OLD | NEW |