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

Side by Side Diff: gpu/ipc/common/gpu_messages.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/client/gpu_channel_host.cc ('k') | gpu/ipc/in_process_command_buffer.h » ('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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Wait until the get offset is in a specific range, inclusive. 168 // Wait until the get offset is in a specific range, inclusive.
169 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, 169 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange,
170 int32_t /* start */, 170 int32_t /* start */,
171 int32_t /* end */, 171 int32_t /* end */,
172 gpu::CommandBuffer::State /* state */) 172 gpu::CommandBuffer::State /* state */)
173 173
174 // Asynchronously synchronize the put and get offsets of both processes. 174 // Asynchronously synchronize the put and get offsets of both processes.
175 // Caller passes its current put offset. Current state (including get offset) 175 // Caller passes its current put offset. Current state (including get offset)
176 // is returned in shared memory. The input latency info for the current 176 // is returned in shared memory. The input latency info for the current
177 // frame is also sent to the GPU process. 177 // frame is also sent to the GPU process.
178 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_AsyncFlush, 178 IPC_MESSAGE_ROUTED4(GpuCommandBufferMsg_AsyncFlush,
179 int32_t /* put_offset */, 179 int32_t /* put_offset */,
180 uint32_t /* flush_count */, 180 uint32_t /* flush_count */,
181 std::vector<ui::LatencyInfo> /* latency_info */) 181 std::vector<ui::LatencyInfo> /* latency_info */,
182 std::vector<gpu::SyncToken> /* sync_token_fences */)
182 183
183 // Sent by the GPU process to display messages in the console. 184 // Sent by the GPU process to display messages in the console.
184 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, 185 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg,
185 GPUCommandBufferConsoleMessage /* msg */) 186 GPUCommandBufferConsoleMessage /* msg */)
186 187
187 // Register an existing shared memory transfer buffer. The id that can be 188 // Register an existing shared memory transfer buffer. The id that can be
188 // used to identify the transfer buffer from a command buffer. 189 // used to identify the transfer buffer from a command buffer.
189 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_RegisterTransferBuffer, 190 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_RegisterTransferBuffer,
190 int32_t /* id */, 191 int32_t /* id */,
191 base::SharedMemoryHandle /* transfer_buffer */, 192 base::SharedMemoryHandle /* transfer_buffer */,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 240 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
240 241
241 // Attaches an external image stream to the client texture. 242 // Attaches an external image stream to the client texture.
242 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 243 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
243 uint32_t, /* client_texture_id */ 244 uint32_t, /* client_texture_id */
244 int32_t, /* stream_id */ 245 int32_t, /* stream_id */
245 bool /* succeeded */) 246 bool /* succeeded */)
246 247
247 // Start or stop VSync sygnal production on GPU side (Windows only). 248 // Start or stop VSync sygnal production on GPU side (Windows only).
248 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetNeedsVSync, bool /* needs_vsync */) 249 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetNeedsVSync, bool /* needs_vsync */)
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698