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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 void OnRetireSyncPoint(uint32 sync_point); | 190 void OnRetireSyncPoint(uint32 sync_point); |
191 bool OnWaitSyncPoint(uint32 sync_point); | 191 bool OnWaitSyncPoint(uint32 sync_point); |
192 void OnSyncPointRetired(); | 192 void OnSyncPointRetired(); |
193 void OnSignalSyncPoint(uint32 sync_point, uint32 id); | 193 void OnSignalSyncPoint(uint32 sync_point, uint32 id); |
194 void OnSignalSyncPointAck(uint32 id); | 194 void OnSignalSyncPointAck(uint32 id); |
195 void OnSignalQuery(uint32 query, uint32 id); | 195 void OnSignalQuery(uint32 query, uint32 id); |
196 | 196 |
197 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); | 197 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); |
198 | 198 |
199 void OnRegisterGpuMemoryBuffer(int32 id, | 199 void OnCreateImage(int32 id, |
200 gfx::GpuMemoryBufferHandle handle, | 200 gfx::GpuMemoryBufferHandle handle, |
201 uint32 width, | 201 gfx::Size size, |
202 uint32 height, | 202 gfx::GpuMemoryBuffer::Format format, |
203 uint32 internalformat); | 203 uint32 internalformat); |
204 void OnUnregisterGpuMemoryBuffer(int32 id); | 204 void OnDestroyImage(int32 id); |
205 | 205 |
206 void OnCommandProcessed(); | 206 void OnCommandProcessed(); |
207 void OnParseError(); | 207 void OnParseError(); |
208 void OnCreateStreamTexture( | 208 void OnCreateStreamTexture( |
209 uint32 texture_id, int32 stream_id, bool* succeeded); | 209 uint32 texture_id, int32 stream_id, bool* succeeded); |
210 | 210 |
211 void ReportState(); | 211 void ReportState(); |
212 | 212 |
213 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. | 213 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. |
214 void PutChanged(); | 214 void PutChanged(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 size_t total_gpu_memory_; | 276 size_t total_gpu_memory_; |
277 scoped_ptr<WaitForCommandState> wait_for_token_; | 277 scoped_ptr<WaitForCommandState> wait_for_token_; |
278 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 278 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
279 | 279 |
280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
281 }; | 281 }; |
282 | 282 |
283 } // namespace content | 283 } // namespace content |
284 | 284 |
285 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 285 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |