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 26 matching lines...) Expand all Loading... |
37 struct SyncToken; | 37 struct SyncToken; |
38 class SyncPointClient; | 38 class SyncPointClient; |
39 class SyncPointManager; | 39 class SyncPointManager; |
40 class ValueStateMap; | 40 class ValueStateMap; |
41 namespace gles2 { | 41 namespace gles2 { |
42 class MailboxManager; | 42 class MailboxManager; |
43 class SubscriptionRefSet; | 43 class SubscriptionRefSet; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
| 47 struct GpuCommandBufferMsg_CreateImage_Params; |
| 48 |
47 namespace content { | 49 namespace content { |
48 | 50 |
49 class GpuChannel; | 51 class GpuChannel; |
50 class GpuVideoDecodeAccelerator; | 52 class GpuVideoDecodeAccelerator; |
51 class GpuVideoEncodeAccelerator; | 53 class GpuVideoEncodeAccelerator; |
52 class GpuWatchdog; | 54 class GpuWatchdog; |
53 struct WaitForCommandState; | 55 struct WaitForCommandState; |
54 | 56 |
55 class GpuCommandBufferStub | 57 class GpuCommandBufferStub |
56 : public GpuMemoryManagerClient, | 58 : public GpuMemoryManagerClient, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 void OnSignalQuery(uint32 query, uint32 id); | 209 void OnSignalQuery(uint32 query, uint32 id); |
208 | 210 |
209 void OnFenceSyncRelease(uint64_t release); | 211 void OnFenceSyncRelease(uint64_t release); |
210 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 212 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
211 uint64_t command_buffer_id, | 213 uint64_t command_buffer_id, |
212 uint64_t release); | 214 uint64_t release); |
213 void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id, | 215 void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id, |
214 uint64_t command_buffer_id, | 216 uint64_t command_buffer_id, |
215 uint64_t release); | 217 uint64_t release); |
216 | 218 |
217 void OnCreateImage(int32 id, | 219 void OnCreateImage(const GpuCommandBufferMsg_CreateImage_Params& params); |
218 gfx::GpuMemoryBufferHandle handle, | |
219 gfx::Size size, | |
220 gfx::BufferFormat format, | |
221 uint32 internalformat); | |
222 void OnDestroyImage(int32 id); | 220 void OnDestroyImage(int32 id); |
223 void OnCreateStreamTexture(uint32 texture_id, | 221 void OnCreateStreamTexture(uint32 texture_id, |
224 int32 stream_id, | 222 int32 stream_id, |
225 bool* succeeded); | 223 bool* succeeded); |
226 | 224 |
227 void OnCommandProcessed(); | 225 void OnCommandProcessed(); |
228 void OnParseError(); | 226 void OnParseError(); |
229 void OnSchedulingChanged(bool scheduled); | 227 void OnSchedulingChanged(bool scheduled); |
230 | 228 |
231 void ReportState(); | 229 void ReportState(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 size_t total_gpu_memory_; | 302 size_t total_gpu_memory_; |
305 scoped_ptr<WaitForCommandState> wait_for_token_; | 303 scoped_ptr<WaitForCommandState> wait_for_token_; |
306 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 304 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
307 | 305 |
308 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 306 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
309 }; | 307 }; |
310 | 308 |
311 } // namespace content | 309 } // namespace content |
312 | 310 |
313 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 311 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |