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 GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define GPU_IPC_SERVICE_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 struct SyncToken; | 42 struct SyncToken; |
43 class SyncPointClient; | 43 class SyncPointClient; |
44 class SyncPointManager; | 44 class SyncPointManager; |
45 namespace gles2 { | 45 namespace gles2 { |
46 class MailboxManager; | 46 class MailboxManager; |
47 } | 47 } |
48 } | 48 } |
49 | 49 |
50 struct GPUCreateCommandBufferConfig; | 50 struct GPUCreateCommandBufferConfig; |
51 struct GpuCommandBufferMsg_CreateImage_Params; | 51 struct GpuCommandBufferMsg_CreateImage_Params; |
| 52 struct GpuCommandBufferMsg_CreateFence_Params; |
52 struct GpuCommandBufferMsg_SwapBuffersCompleted_Params; | 53 struct GpuCommandBufferMsg_SwapBuffersCompleted_Params; |
53 | 54 |
54 namespace gpu { | 55 namespace gpu { |
55 | 56 |
56 class GpuChannel; | 57 class GpuChannel; |
57 class GpuWatchdogThread; | 58 class GpuWatchdogThread; |
58 struct WaitForCommandState; | 59 struct WaitForCommandState; |
59 | 60 |
60 class GPU_EXPORT GpuCommandBufferStub | 61 class GPU_EXPORT GpuCommandBufferStub |
61 : public IPC::Listener, | 62 : public IPC::Listener, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 uint64_t release); | 188 uint64_t release); |
188 | 189 |
189 void OnDescheduleUntilFinished(); | 190 void OnDescheduleUntilFinished(); |
190 void OnRescheduleAfterFinished(); | 191 void OnRescheduleAfterFinished(); |
191 | 192 |
192 void OnCreateImage(const GpuCommandBufferMsg_CreateImage_Params& params); | 193 void OnCreateImage(const GpuCommandBufferMsg_CreateImage_Params& params); |
193 void OnDestroyImage(int32_t id); | 194 void OnDestroyImage(int32_t id); |
194 void OnCreateStreamTexture(uint32_t texture_id, | 195 void OnCreateStreamTexture(uint32_t texture_id, |
195 int32_t stream_id, | 196 int32_t stream_id, |
196 bool* succeeded); | 197 bool* succeeded); |
| 198 void OnCreateFence(const GpuCommandBufferMsg_CreateFence_Params& params); |
| 199 void OnDestroyFence(int32_t id); |
197 void OnCommandProcessed(); | 200 void OnCommandProcessed(); |
198 void OnParseError(); | 201 void OnParseError(); |
199 | 202 |
200 void ReportState(); | 203 void ReportState(); |
201 | 204 |
202 // Wrapper for CommandExecutor::PutChanged that sets the crash report URL. | 205 // Wrapper for CommandExecutor::PutChanged that sets the crash report URL. |
203 void PutChanged(); | 206 void PutChanged(); |
204 | 207 |
205 // Poll the command buffer to execute work. | 208 // Poll the command buffer to execute work. |
206 void PollWork(); | 209 void PollWork(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 258 |
256 std::unique_ptr<WaitForCommandState> wait_for_token_; | 259 std::unique_ptr<WaitForCommandState> wait_for_token_; |
257 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; | 260 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; |
258 | 261 |
259 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 262 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
260 }; | 263 }; |
261 | 264 |
262 } // namespace gpu | 265 } // namespace gpu |
263 | 266 |
264 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 267 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |