OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void OnRetireSyncPoint(uint32 sync_point); | 198 void OnRetireSyncPoint(uint32 sync_point); |
199 bool OnWaitSyncPoint(uint32 sync_point); | 199 bool OnWaitSyncPoint(uint32 sync_point); |
200 void OnSyncPointRetired(); | 200 void OnSyncPointRetired(); |
201 void OnSignalSyncPoint(uint32 sync_point, uint32 id); | 201 void OnSignalSyncPoint(uint32 sync_point, uint32 id); |
202 void OnSignalSyncPointAck(uint32 id); | 202 void OnSignalSyncPointAck(uint32 id); |
203 void OnSignalQuery(uint32 query, uint32 id); | 203 void OnSignalQuery(uint32 query, uint32 id); |
204 | 204 |
205 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); | 205 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); |
206 | 206 |
207 void OnCreateImage(int32 id, | 207 void OnCreateImage(int32 id, |
208 gfx::GpuMemoryBufferHandle handle, | 208 std::vector<gfx::GpuMemoryBufferHandle> handles, |
209 gfx::Size size, | 209 gfx::Size size, |
210 gfx::GpuMemoryBuffer::Format format, | 210 std::vector<gfx::GpuMemoryBuffer::Format> formats, |
211 uint32 internalformat); | 211 uint32 internalformat); |
212 void OnDestroyImage(int32 id); | 212 void OnDestroyImage(int32 id); |
213 | 213 |
214 void OnCommandProcessed(); | 214 void OnCommandProcessed(); |
215 void OnParseError(); | 215 void OnParseError(); |
216 void OnCreateStreamTexture( | 216 void OnCreateStreamTexture( |
217 uint32 texture_id, int32 stream_id, bool* succeeded); | 217 uint32 texture_id, int32 stream_id, bool* succeeded); |
218 | 218 |
219 void ReportState(); | 219 void ReportState(); |
220 | 220 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 size_t total_gpu_memory_; | 284 size_t total_gpu_memory_; |
285 scoped_ptr<WaitForCommandState> wait_for_token_; | 285 scoped_ptr<WaitForCommandState> wait_for_token_; |
286 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 286 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
287 | 287 |
288 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 288 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
289 }; | 289 }; |
290 | 290 |
291 } // namespace content | 291 } // namespace content |
292 | 292 |
293 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 293 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |