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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Queues a task to run as soon as possible. | 132 // Queues a task to run as soon as possible. |
133 virtual void ScheduleTask(const base::Closure& task) = 0; | 133 virtual void ScheduleTask(const base::Closure& task) = 0; |
134 | 134 |
135 // Schedules |callback| to run at an appropriate time for performing idle | 135 // Schedules |callback| to run at an appropriate time for performing idle |
136 // work. | 136 // work. |
137 virtual void ScheduleIdleWork(const base::Closure& task) = 0; | 137 virtual void ScheduleIdleWork(const base::Closure& task) = 0; |
138 | 138 |
139 virtual bool UseVirtualizedGLContexts() = 0; | 139 virtual bool UseVirtualizedGLContexts() = 0; |
140 virtual scoped_refptr<gles2::ShaderTranslatorCache> | 140 virtual scoped_refptr<gles2::ShaderTranslatorCache> |
141 shader_translator_cache() = 0; | 141 shader_translator_cache() = 0; |
| 142 scoped_refptr<gfx::GLShareGroup> share_group(); |
142 scoped_refptr<gles2::MailboxManager> mailbox_manager(); | 143 scoped_refptr<gles2::MailboxManager> mailbox_manager(); |
143 scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set(); | 144 scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set(); |
144 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state(); | 145 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state(); |
145 | 146 |
146 private: | 147 private: |
| 148 scoped_refptr<gfx::GLShareGroup> share_group_; |
147 scoped_refptr<gles2::MailboxManager> mailbox_manager_; | 149 scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
148 scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set_; | 150 scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set_; |
149 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; | 151 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; |
150 }; | 152 }; |
151 | 153 |
152 #if defined(OS_ANDROID) | 154 #if defined(OS_ANDROID) |
153 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( | 155 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
154 uint32 stream_id); | 156 uint32 stream_id); |
155 #endif | 157 #endif |
156 | 158 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 253 |
252 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 254 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
253 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 255 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
254 | 256 |
255 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 257 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
256 }; | 258 }; |
257 | 259 |
258 } // namespace gpu | 260 } // namespace gpu |
259 | 261 |
260 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 262 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |