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

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

Issue 661973003: MailboxSync: Imply fence with sync point (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac Created 6 years, 2 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void ScheduleIdleWorkOnGpuThread(); 174 void ScheduleIdleWorkOnGpuThread();
175 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id); 175 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id);
176 bool MakeCurrent(); 176 bool MakeCurrent();
177 base::Closure WrapCallback(const base::Closure& callback); 177 base::Closure WrapCallback(const base::Closure& callback);
178 State GetStateFast(); 178 State GetStateFast();
179 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } 179 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); }
180 void CheckSequencedThread(); 180 void CheckSequencedThread();
181 void RetireSyncPointOnGpuThread(uint32 sync_point); 181 void RetireSyncPointOnGpuThread(uint32 sync_point);
182 void SignalSyncPointOnGpuThread(uint32 sync_point, 182 void SignalSyncPointOnGpuThread(uint32 sync_point,
183 const base::Closure& callback); 183 const base::Closure& callback);
184 bool WaitSyncPointOnGpuThread(uint32 sync_point);
184 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); 185 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback);
185 void DestroyTransferBufferOnGpuThread(int32 id); 186 void DestroyTransferBufferOnGpuThread(int32 id);
186 187
187 // Callbacks: 188 // Callbacks:
188 void OnContextLost(); 189 void OnContextLost();
189 void OnResizeView(gfx::Size size, float scale_factor); 190 void OnResizeView(gfx::Size size, float scale_factor);
190 bool GetBufferChanged(int32 transfer_buffer_id); 191 bool GetBufferChanged(int32 transfer_buffer_id);
191 void PumpCommands(); 192 void PumpCommands();
192 void PerformIdleWork(); 193 void PerformIdleWork();
193 194
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 230 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
230 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 231 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
231 232
232 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 233 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
233 }; 234 };
234 235
235 } // namespace gpu 236 } // namespace gpu
236 237
237 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 238 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.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