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 CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 23 matching lines...) Expand all Loading... |
34 class GLES2Implementation; | 34 class GLES2Implementation; |
35 class GLES2TraceImplementation; | 35 class GLES2TraceImplementation; |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 namespace skia_bindings { | 39 namespace skia_bindings { |
40 class GrContextForGLES2Interface; | 40 class GrContextForGLES2Interface; |
41 } | 41 } |
42 | 42 |
43 namespace content { | 43 namespace content { |
44 class WebGraphicsContext3DCommandBufferImpl; | |
45 | 44 |
46 // Implementation of cc::ContextProvider that provides a GL implementation over | 45 // Implementation of cc::ContextProvider that provides a GL implementation over |
47 // command buffer to the GPU process. | 46 // command buffer to the GPU process. |
48 class CONTENT_EXPORT ContextProviderCommandBuffer | 47 class CONTENT_EXPORT ContextProviderCommandBuffer |
49 : NON_EXPORTED_BASE(public cc::ContextProvider), | 48 : NON_EXPORTED_BASE(public cc::ContextProvider), |
50 public base::trace_event::MemoryDumpProvider { | 49 public base::trace_event::MemoryDumpProvider { |
51 public: | 50 public: |
52 ContextProviderCommandBuffer( | 51 ContextProviderCommandBuffer( |
53 scoped_refptr<gpu::GpuChannelHost> channel, | 52 scoped_refptr<gpu::GpuChannelHost> channel, |
54 int32_t stream_id, | 53 int32_t stream_id, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; | 134 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; |
136 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 135 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
137 std::unique_ptr<cc::ContextCacheController> cache_controller_; | 136 std::unique_ptr<cc::ContextCacheController> cache_controller_; |
138 | 137 |
139 LostContextCallback lost_context_callback_; | 138 LostContextCallback lost_context_callback_; |
140 }; | 139 }; |
141 | 140 |
142 } // namespace content | 141 } // namespace content |
143 | 142 |
144 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 143 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
OLD | NEW |