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 28 matching lines...) Expand all Loading... |
39 #if defined(OS_ANDROID) | 39 #if defined(OS_ANDROID) |
40 namespace gfx { | 40 namespace gfx { |
41 class SurfaceTexture; | 41 class SurfaceTexture; |
42 } | 42 } |
43 namespace gpu { | 43 namespace gpu { |
44 class StreamTextureManagerInProcess; | 44 class StreamTextureManagerInProcess; |
45 } | 45 } |
46 #endif | 46 #endif |
47 | 47 |
48 namespace gpu { | 48 namespace gpu { |
| 49 class ValueStateMap; |
49 | 50 |
50 namespace gles2 { | 51 namespace gles2 { |
51 class GLES2Decoder; | 52 class GLES2Decoder; |
52 class MailboxManager; | 53 class MailboxManager; |
53 class ShaderTranslatorCache; | 54 class ShaderTranslatorCache; |
54 } | 55 } |
55 | 56 |
56 class CommandBufferServiceBase; | 57 class CommandBufferServiceBase; |
57 class GpuMemoryBufferManager; | 58 class GpuMemoryBufferManager; |
58 class GpuScheduler; | 59 class GpuScheduler; |
(...skipping 72 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<gpu::ValueStateMap> pending_valuebuffer_state(); |
141 | 143 |
142 private: | 144 private: |
143 scoped_refptr<gles2::MailboxManager> mailbox_manager_; | 145 scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
| 146 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 248 |
246 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 249 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
247 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 250 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
248 | 251 |
249 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 252 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
250 }; | 253 }; |
251 | 254 |
252 } // namespace gpu | 255 } // namespace gpu |
253 | 256 |
254 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 257 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |