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

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

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reveman@ comments. Created 5 years, 9 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void WaitForTokenInRange(int32 start, int32 end) override; 96 void WaitForTokenInRange(int32 start, int32 end) override;
97 void WaitForGetOffsetInRange(int32 start, int32 end) override; 97 void WaitForGetOffsetInRange(int32 start, int32 end) override;
98 void SetGetBuffer(int32 shm_id) override; 98 void SetGetBuffer(int32 shm_id) override;
99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
100 int32* id) override; 100 int32* id) override;
101 void DestroyTransferBuffer(int32 id) override; 101 void DestroyTransferBuffer(int32 id) override;
102 gpu::error::Error GetLastError() override; 102 gpu::error::Error GetLastError() override;
103 103
104 // GpuControl implementation: 104 // GpuControl implementation:
105 gpu::Capabilities GetCapabilities() override; 105 gpu::Capabilities GetCapabilities() override;
106 int32 CreateImage(ClientBuffer buffer, 106 int32 CreateImage(ClientBuffer* const buffers,
107 size_t width, 107 size_t width,
108 size_t height, 108 size_t height,
109 unsigned internalformat) override; 109 unsigned internalformat) override;
110 void DestroyImage(int32 id) override; 110 void DestroyImage(int32 id) override;
111 int32 CreateGpuMemoryBufferImage(size_t width, 111 int32 CreateGpuMemoryBufferImage(size_t width,
112 size_t height, 112 size_t height,
113 unsigned internalformat, 113 unsigned internalformat,
114 unsigned usage) override; 114 unsigned usage) override;
115 uint32 InsertSyncPoint() override; 115 uint32 InsertSyncPoint() override;
116 uint32 InsertFutureSyncPoint() override; 116 uint32 InsertFutureSyncPoint() override;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 base::Closure WrapCallback(const base::Closure& callback); 196 base::Closure WrapCallback(const base::Closure& callback);
197 State GetStateFast(); 197 State GetStateFast();
198 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } 198 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); }
199 void CheckSequencedThread(); 199 void CheckSequencedThread();
200 void RetireSyncPointOnGpuThread(uint32 sync_point); 200 void RetireSyncPointOnGpuThread(uint32 sync_point);
201 void SignalSyncPointOnGpuThread(uint32 sync_point, 201 void SignalSyncPointOnGpuThread(uint32 sync_point,
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(
207 const gfx::GpuMemoryBufferHandle& handle, 207 int32 id,
208 const gfx::Size& size, 208 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
209 gfx::GpuMemoryBuffer::Format format, 209 const gfx::Size& size,
210 uint32 internalformat); 210 const std::vector<gfx::GpuMemoryBuffer::Format>& formats,
211 uint32 internalformat);
211 void DestroyImageOnGpuThread(int32 id); 212 void DestroyImageOnGpuThread(int32 id);
212 213
213 // Callbacks: 214 // Callbacks:
214 void OnContextLost(); 215 void OnContextLost();
215 void OnResizeView(gfx::Size size, float scale_factor); 216 void OnResizeView(gfx::Size size, float scale_factor);
216 bool GetBufferChanged(int32 transfer_buffer_id); 217 bool GetBufferChanged(int32 transfer_buffer_id);
217 void PumpCommands(); 218 void PumpCommands();
218 void PerformIdleWork(); 219 void PerformIdleWork();
219 220
220 // Members accessed on the gpu thread (possibly with the exception of 221 // Members accessed on the gpu thread (possibly with the exception of
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 256
256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 257 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 258 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
258 259
259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 260 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
260 }; 261 };
261 262
262 } // namespace gpu 263 } // namespace gpu
263 264
264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 265 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698