Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer_unittest.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698