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) |