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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void OnReturnFrontBuffer(const Mailbox& mailbox, bool is_lost); | 154 void OnReturnFrontBuffer(const Mailbox& mailbox, bool is_lost); |
155 void OnGetState(IPC::Message* reply_message); | 155 void OnGetState(IPC::Message* reply_message); |
156 void OnWaitForTokenInRange(int32_t start, | 156 void OnWaitForTokenInRange(int32_t start, |
157 int32_t end, | 157 int32_t end, |
158 IPC::Message* reply_message); | 158 IPC::Message* reply_message); |
159 void OnWaitForGetOffsetInRange(int32_t start, | 159 void OnWaitForGetOffsetInRange(int32_t start, |
160 int32_t end, | 160 int32_t end, |
161 IPC::Message* reply_message); | 161 IPC::Message* reply_message); |
162 void OnAsyncFlush(int32_t put_offset, | 162 void OnAsyncFlush(int32_t put_offset, |
163 uint32_t flush_count, | 163 uint32_t flush_count, |
164 const std::vector<ui::LatencyInfo>& latency_info); | 164 const std::vector<ui::LatencyInfo>& latency_info, |
| 165 const std::vector<SyncToken>& sync_token_fences); |
165 void OnRegisterTransferBuffer(int32_t id, | 166 void OnRegisterTransferBuffer(int32_t id, |
166 base::SharedMemoryHandle transfer_buffer, | 167 base::SharedMemoryHandle transfer_buffer, |
167 uint32_t size); | 168 uint32_t size); |
168 void OnDestroyTransferBuffer(int32_t id); | 169 void OnDestroyTransferBuffer(int32_t id); |
169 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message); | 170 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message); |
170 bool OnWaitSyncToken(const SyncToken& sync_token); | 171 bool OnWaitSyncToken(const SyncToken& sync_token); |
171 | 172 |
172 void OnEnsureBackbuffer(); | 173 void OnEnsureBackbuffer(); |
173 | 174 |
174 void OnSignalSyncToken(const SyncToken& sync_token, uint32_t id); | 175 void OnSignalSyncToken(const SyncToken& sync_token, uint32_t id); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 246 |
246 std::unique_ptr<WaitForCommandState> wait_for_token_; | 247 std::unique_ptr<WaitForCommandState> wait_for_token_; |
247 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; | 248 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; |
248 | 249 |
249 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 250 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
250 }; | 251 }; |
251 | 252 |
252 } // namespace gpu | 253 } // namespace gpu |
253 | 254 |
254 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 255 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |