OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class StreamTextureManagerInProcess; | 44 class StreamTextureManagerInProcess; |
45 } | 45 } |
46 #endif | 46 #endif |
47 | 47 |
48 namespace gpu { | 48 namespace gpu { |
49 | 49 |
50 namespace gles2 { | 50 namespace gles2 { |
51 class GLES2Decoder; | 51 class GLES2Decoder; |
52 class MailboxManager; | 52 class MailboxManager; |
53 class ShaderTranslatorCache; | 53 class ShaderTranslatorCache; |
| 54 class ValuebufferManager; |
54 } | 55 } |
55 | 56 |
56 class CommandBufferServiceBase; | 57 class CommandBufferServiceBase; |
57 class GpuMemoryBufferManager; | 58 class GpuMemoryBufferManager; |
58 class GpuScheduler; | 59 class GpuScheduler; |
59 class ImageFactory; | 60 class ImageFactory; |
60 class TransferBufferManagerInterface; | 61 class TransferBufferManagerInterface; |
61 | 62 |
62 // This class provides a thread-safe interface to the global GPU service (for | 63 // This class provides a thread-safe interface to the global GPU service (for |
63 // example GPU thread) when being run in single process mode. | 64 // example GPU thread) when being run in single process mode. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual void ScheduleTask(const base::Closure& task) = 0; | 132 virtual void ScheduleTask(const base::Closure& task) = 0; |
132 | 133 |
133 // Schedules |callback| to run at an appropriate time for performing idle | 134 // Schedules |callback| to run at an appropriate time for performing idle |
134 // work. | 135 // work. |
135 virtual void ScheduleIdleWork(const base::Closure& task) = 0; | 136 virtual void ScheduleIdleWork(const base::Closure& task) = 0; |
136 | 137 |
137 virtual bool UseVirtualizedGLContexts() = 0; | 138 virtual bool UseVirtualizedGLContexts() = 0; |
138 virtual scoped_refptr<gles2::ShaderTranslatorCache> | 139 virtual scoped_refptr<gles2::ShaderTranslatorCache> |
139 shader_translator_cache() = 0; | 140 shader_translator_cache() = 0; |
140 scoped_refptr<gles2::MailboxManager> mailbox_manager(); | 141 scoped_refptr<gles2::MailboxManager> mailbox_manager(); |
| 142 scoped_refptr<gles2::ValuebufferManager> valuebuffer_manager(); |
141 | 143 |
142 private: | 144 private: |
143 scoped_refptr<gles2::MailboxManager> mailbox_manager_; | 145 scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
| 146 scoped_refptr<gles2::ValuebufferManager> valuebuffer_manager_; |
144 }; | 147 }; |
145 | 148 |
146 #if defined(OS_ANDROID) | 149 #if defined(OS_ANDROID) |
147 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( | 150 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
148 uint32 stream_id); | 151 uint32 stream_id); |
149 #endif | 152 #endif |
150 | 153 |
151 private: | 154 private: |
152 struct InitializeOnGpuThreadParams { | 155 struct InitializeOnGpuThreadParams { |
153 bool is_offscreen; | 156 bool is_offscreen; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 250 |
248 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 251 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
249 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 252 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
250 | 253 |
251 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 254 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
252 }; | 255 }; |
253 | 256 |
254 } // namespace gpu | 257 } // namespace gpu |
255 | 258 |
256 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 259 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |