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

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

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix. Created 4 years, 6 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
Index: gpu/ipc/common/gpu_messages.h
diff --git a/gpu/ipc/common/gpu_messages.h b/gpu/ipc/common/gpu_messages.h
index 908643cca74ed14265c927e3f00bff9bd88afa96..11fd5896cd0e7f289336c55003744d0670127b61 100644
--- a/gpu/ipc/common/gpu_messages.h
+++ b/gpu/ipc/common/gpu_messages.h
@@ -47,6 +47,14 @@
#define IPC_MESSAGE_START GpuChannelMsgStart
+// Singly-included section for typedefs.
+#ifndef GPU_IPC_COMMON_GPU_MESSAGES_H_
+#define GPU_IPC_COMMON_GPU_MESSAGES_H_
+
+using SwapBuffersCompletedIOSurfaceInUseQuery = std::pair<uint32_t, bool>;
piman 2016/06/14 00:58:56 nit: may I suggest an actual struct: IPC_STRUCT_B
erikchen 2016/06/14 01:47:51 good point. done.
+
+#endif // GPU_IPC_COMMON_GPU_MESSAGES_H_
+
IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
IPC_STRUCT_MEMBER(int32_t, id)
IPC_STRUCT_MEMBER(std::string, message)
@@ -86,6 +94,8 @@ IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params)
IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface)
IPC_STRUCT_MEMBER(gfx::Size, pixel_size)
IPC_STRUCT_MEMBER(float, scale_factor)
+ IPC_STRUCT_MEMBER(std::vector<SwapBuffersCompletedIOSurfaceInUseQuery>,
+ in_use_queries)
#endif
IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
IPC_STRUCT_MEMBER(gfx::SwapResult, result)

Powered by Google App Engine
This is Rietveld 408576698