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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 void OnEnsureBackbuffer(); | 191 void OnEnsureBackbuffer(); |
192 | 192 |
193 void OnRetireSyncPoint(uint32 sync_point); | 193 void OnRetireSyncPoint(uint32 sync_point); |
194 bool OnWaitSyncPoint(uint32 sync_point); | 194 bool OnWaitSyncPoint(uint32 sync_point); |
195 void OnSyncPointRetired(); | 195 void OnSyncPointRetired(); |
196 void OnSignalSyncPoint(uint32 sync_point, uint32 id); | 196 void OnSignalSyncPoint(uint32 sync_point, uint32 id); |
197 void OnSignalSyncPointAck(uint32 id); | 197 void OnSignalSyncPointAck(uint32 id); |
198 void OnSignalQuery(uint32 query, uint32 id); | 198 void OnSignalQuery(uint32 query, uint32 id); |
199 | 199 |
200 void OnReceivedClientManagedMemoryStats(const gpu::ManagedMemoryStats& stats); | |
201 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); | 200 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); |
202 | 201 |
203 void OnRegisterGpuMemoryBuffer(int32 id, | 202 void OnRegisterGpuMemoryBuffer(int32 id, |
204 gfx::GpuMemoryBufferHandle gpu_memory_buffer, | 203 gfx::GpuMemoryBufferHandle gpu_memory_buffer, |
205 uint32 width, | 204 uint32 width, |
206 uint32 height, | 205 uint32 height, |
207 uint32 internalformat); | 206 uint32 internalformat); |
208 void OnDestroyGpuMemoryBuffer(int32 id); | 207 void OnDestroyGpuMemoryBuffer(int32 id); |
209 | 208 |
210 void OnCommandProcessed(); | 209 void OnCommandProcessed(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 size_t total_gpu_memory_; | 281 size_t total_gpu_memory_; |
283 scoped_ptr<WaitForCommandState> wait_for_token_; | 282 scoped_ptr<WaitForCommandState> wait_for_token_; |
284 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 283 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
285 | 284 |
286 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 285 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
287 }; | 286 }; |
288 | 287 |
289 } // namespace content | 288 } // namespace content |
290 | 289 |
291 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 290 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |