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

Unified Diff: gpu/ipc/common/gpu_messages.h

Issue 1943513002: [Reland 1] Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from sunnyps and piman. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_messages.h
diff --git a/gpu/ipc/common/gpu_messages.h b/gpu/ipc/common/gpu_messages.h
index 85800540230c2c5ca35fc271aee41c612c96f2b8..d58264da15eb334cc9723e3e72d95ca0b9d7f527 100644
--- a/gpu/ipc/common/gpu_messages.h
+++ b/gpu/ipc/common/gpu_messages.h
@@ -138,11 +138,17 @@ IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize,
IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer,
int32_t /* shm_id */)
-// Produces the front buffer into a mailbox. This allows another context to draw
+// Takes the front buffer into a mailbox. This allows another context to draw
// the output of this context.
-IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ProduceFrontBuffer,
+IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_TakeFrontBuffer,
gpu::Mailbox /* mailbox */)
+// Returns a front buffer taken with GpuCommandBufferMsg_TakeFrontBuffer. This
+// allows it to be reused.
+IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_ReturnFrontBuffer,
+ gpu::Mailbox /* mailbox */,
+ bool /* is_lost */)
+
// Wait until the token is in a specific range, inclusive.
IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange,
int32_t /* start */,
@@ -194,6 +200,12 @@ IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters,
base::TimeTicks /* timebase */,
base::TimeDelta /* interval */)
+// The receiver will stop processing messages until the Synctoken is signaled.
+IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_WaitSyncToken,
+ gpu::SyncToken /* sync_token */)
+
+// The receiver will asynchronously wait until the SyncToken is signaled, and
+// then return a GpuCommandBufferMsg_SignalAck message.
IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncToken,
gpu::SyncToken /* sync_token */,
uint32_t /* signal_id */)
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698