Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.h

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: piman's review 2 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698