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

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

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase Created 4 years, 1 month 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
Index: gpu/ipc/common/gpu_messages.h
diff --git a/gpu/ipc/common/gpu_messages.h b/gpu/ipc/common/gpu_messages.h
index b1d6fdc42cbad14b8c8d5df5cd17eb24097b79d6..a1230e60763aed211992880e2700f9dd993e3f6d 100644
--- a/gpu/ipc/common/gpu_messages.h
+++ b/gpu/ipc/common/gpu_messages.h
@@ -72,6 +72,11 @@ IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params)
IPC_STRUCT_MEMBER(uint64_t, image_release_count)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateFence_Params)
+ IPC_STRUCT_MEMBER(int32_t, id)
+ IPC_STRUCT_MEMBER(gfx::GpuFenceHandle, gpu_fence)
+IPC_STRUCT_END()
+
IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params)
#if defined(OS_MACOSX)
// Mac-specific parameters used to present CALayers hosted in the GPU process.
@@ -252,3 +257,11 @@ IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
uint32_t, /* client_texture_id */
int32_t, /* stream_id */
bool /* succeeded */)
+
+// Create a fence from an existing gpu fence. The id that can be
+// used to identify the fence from a command buffer.
+IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateFence,
+ GpuCommandBufferMsg_CreateFence_Params /* params */)
+
+// Destroy a previously created fence.
+IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyFence, int32_t /* id */)

Powered by Google App Engine
This is Rietveld 408576698