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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); | 200 void OnReceivedClientManagedMemoryStats(const gpu::ManagedMemoryStats& stats); |
201 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); | 201 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); |
202 | 202 |
203 void OnRegisterGpuMemoryBuffer(int32 id, | 203 void OnRegisterGpuMemoryBuffer(int32 id, |
204 gfx::GpuMemoryBufferHandle gpu_memory_buffer, | 204 gfx::GpuMemoryBufferHandle handle, |
205 uint32 width, | 205 uint32 width, |
206 uint32 height, | 206 uint32 height, |
207 uint32 internalformat); | 207 uint32 internalformat); |
208 void OnDestroyGpuMemoryBuffer(int32 id); | 208 void OnDestroyGpuMemoryBuffer(int32 id); |
209 | 209 |
210 void OnCommandProcessed(); | 210 void OnCommandProcessed(); |
211 void OnParseError(); | 211 void OnParseError(); |
212 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 212 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
213 void OnCreateStreamTexture( | 213 void OnCreateStreamTexture( |
214 uint32 texture_id, int32 stream_id, bool* succeeded); | 214 uint32 texture_id, int32 stream_id, bool* succeeded); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 size_t total_gpu_memory_; | 282 size_t total_gpu_memory_; |
283 scoped_ptr<WaitForCommandState> wait_for_token_; | 283 scoped_ptr<WaitForCommandState> wait_for_token_; |
284 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 284 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
285 | 285 |
286 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 286 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
287 }; | 287 }; |
288 | 288 |
289 } // namespace content | 289 } // namespace content |
290 | 290 |
291 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 291 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |