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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 const base::Closure& callback); | 202 const base::Closure& callback); |
203 bool WaitSyncPointOnGpuThread(uint32 sync_point); | 203 bool WaitSyncPointOnGpuThread(uint32 sync_point); |
204 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); | 204 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); |
205 void DestroyTransferBufferOnGpuThread(int32 id); | 205 void DestroyTransferBufferOnGpuThread(int32 id); |
206 void CreateImageOnGpuThread(int32 id, | 206 void CreateImageOnGpuThread(int32 id, |
207 const gfx::GpuMemoryBufferHandle& handle, | 207 const gfx::GpuMemoryBufferHandle& handle, |
208 const gfx::Size& size, | 208 const gfx::Size& size, |
209 gfx::GpuMemoryBuffer::Format format, | 209 gfx::GpuMemoryBuffer::Format format, |
210 uint32 internalformat); | 210 uint32 internalformat); |
211 void DestroyImageOnGpuThread(int32 id); | 211 void DestroyImageOnGpuThread(int32 id); |
212 scoped_refptr<Service> GetInitialService( | |
213 const scoped_refptr<Service>& service); | |
piman
2015/06/12 19:19:37
nit: you can make this a free function in the .cc
hendrikw
2015/06/12 22:54:22
good point, done
| |
212 | 214 |
213 // Callbacks: | 215 // Callbacks: |
214 void OnContextLost(); | 216 void OnContextLost(); |
215 void OnResizeView(gfx::Size size, float scale_factor); | 217 void OnResizeView(gfx::Size size, float scale_factor); |
216 bool GetBufferChanged(int32 transfer_buffer_id); | 218 bool GetBufferChanged(int32 transfer_buffer_id); |
217 void PumpCommands(); | 219 void PumpCommands(); |
218 void PerformIdleWork(); | 220 void PerformIdleWork(); |
219 | 221 |
220 // Members accessed on the gpu thread (possibly with the exception of | 222 // Members accessed on the gpu thread (possibly with the exception of |
221 // creation): | 223 // creation): |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 | 257 |
256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 258 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 259 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
258 | 260 |
259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 261 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
260 }; | 262 }; |
261 | 263 |
262 } // namespace gpu | 264 } // namespace gpu |
263 | 265 |
264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 266 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |