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

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: 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void ScheduleIdleWorkOnGpuThread(); 175 void ScheduleIdleWorkOnGpuThread();
176 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id); 176 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id);
177 bool MakeCurrent(); 177 bool MakeCurrent();
178 base::Closure WrapCallback(const base::Closure& callback); 178 base::Closure WrapCallback(const base::Closure& callback);
179 State GetStateFast(); 179 State GetStateFast();
180 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } 180 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); }
181 void CheckSequencedThread(); 181 void CheckSequencedThread();
182 void RetireSyncPointOnGpuThread(uint32 sync_point); 182 void RetireSyncPointOnGpuThread(uint32 sync_point);
183 void SignalSyncPointOnGpuThread(uint32 sync_point, 183 void SignalSyncPointOnGpuThread(uint32 sync_point,
184 const base::Closure& callback); 184 const base::Closure& callback);
185 bool WaitSyncPointOnGpuThread(uint32 sync_point);
185 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); 186 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback);
186 void DestroyTransferBufferOnGpuThread(int32 id); 187 void DestroyTransferBufferOnGpuThread(int32 id);
187 188
188 // Callbacks: 189 // Callbacks:
189 void OnContextLost(); 190 void OnContextLost();
190 void OnResizeView(gfx::Size size, float scale_factor); 191 void OnResizeView(gfx::Size size, float scale_factor);
191 bool GetBufferChanged(int32 transfer_buffer_id); 192 bool GetBufferChanged(int32 transfer_buffer_id);
192 void PumpCommands(); 193 void PumpCommands();
193 void PerformIdleWork(); 194 void PerformIdleWork();
194 195
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 231 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
231 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 232 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
232 233
233 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 234 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
234 }; 235 };
235 236
236 } // namespace gpu 237 } // namespace gpu
237 238
238 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 239 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698