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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 struct SyncToken; | 40 struct SyncToken; |
41 class SyncPointClient; | 41 class SyncPointClient; |
42 class SyncPointManager; | 42 class SyncPointManager; |
43 class ValueStateMap; | 43 class ValueStateMap; |
44 namespace gles2 { | 44 namespace gles2 { |
45 class MailboxManager; | 45 class MailboxManager; |
46 class SubscriptionRefSet; | 46 class SubscriptionRefSet; |
47 } | 47 } |
48 } | 48 } |
49 | 49 |
50 struct GpuCommandBufferMsg_CreateImage_Params; | |
51 | |
52 namespace content { | 50 namespace content { |
53 | 51 |
54 class GpuChannel; | 52 class GpuChannel; |
55 class GpuVideoDecodeAccelerator; | |
56 class GpuVideoEncodeAccelerator; | 53 class GpuVideoEncodeAccelerator; |
57 class GpuWatchdog; | 54 class GpuWatchdog; |
| 55 struct CreateImageParams; |
58 struct WaitForCommandState; | 56 struct WaitForCommandState; |
59 | 57 |
60 class GpuCommandBufferStub | 58 class GpuCommandBufferStub |
61 : public IPC::Listener, | 59 : public IPC::Listener, |
62 public IPC::Sender, | 60 public IPC::Sender, |
63 public base::SupportsWeakPtr<GpuCommandBufferStub> { | 61 public base::SupportsWeakPtr<GpuCommandBufferStub> { |
64 public: | 62 public: |
65 class DestructionObserver { | 63 class DestructionObserver { |
66 public: | 64 public: |
67 // Called in Destroy(), before the context/surface are released. | 65 // Called in Destroy(), before the context/surface are released. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void OnSignalQuery(uint32_t query, uint32_t id); | 196 void OnSignalQuery(uint32_t query, uint32_t id); |
199 | 197 |
200 void OnFenceSyncRelease(uint64_t release); | 198 void OnFenceSyncRelease(uint64_t release); |
201 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 199 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
202 uint64_t command_buffer_id, | 200 uint64_t command_buffer_id, |
203 uint64_t release); | 201 uint64_t release); |
204 void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id, | 202 void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id, |
205 uint64_t command_buffer_id, | 203 uint64_t command_buffer_id, |
206 uint64_t release); | 204 uint64_t release); |
207 | 205 |
208 void OnCreateImage(const GpuCommandBufferMsg_CreateImage_Params& params); | 206 void OnCreateImage(const CreateImageParams& params); |
209 void OnDestroyImage(int32_t id); | 207 void OnDestroyImage(int32_t id); |
210 void OnCreateStreamTexture(uint32_t texture_id, | 208 void OnCreateStreamTexture(uint32_t texture_id, |
211 int32_t stream_id, | 209 int32_t stream_id, |
212 bool* succeeded); | 210 bool* succeeded); |
213 | 211 |
214 void OnCommandProcessed(); | 212 void OnCommandProcessed(); |
215 void OnParseError(); | 213 void OnParseError(); |
216 void OnSchedulingChanged(bool scheduled); | 214 void OnSchedulingChanged(bool scheduled); |
217 | 215 |
218 void ReportState(); | 216 void ReportState(); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 287 |
290 scoped_ptr<WaitForCommandState> wait_for_token_; | 288 scoped_ptr<WaitForCommandState> wait_for_token_; |
291 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 289 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
292 | 290 |
293 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 291 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
294 }; | 292 }; |
295 | 293 |
296 } // namespace content | 294 } // namespace content |
297 | 295 |
298 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 296 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |