| Index: content/common/gpu/gpu_messages.h
|
| diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
|
| index 9aecf1a86d7fd239c7744b2f58095cf5aa5141dd..9344157c0f9759f4423dccb41715390b180fd1bb 100644
|
| --- a/content/common/gpu/gpu_messages.h
|
| +++ b/content/common/gpu/gpu_messages.h
|
| @@ -9,6 +9,7 @@
|
| #include <vector>
|
|
|
| #include "base/shared_memory.h"
|
| +#include "cc/debug/latency_info.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/gpu/gpu_memory_allocation.h"
|
| #include "content/common/gpu/gpu_memory_uma_stats.h"
|
| @@ -50,6 +51,7 @@ IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
|
| IPC_STRUCT_MEMBER(int32, route_id)
|
| IPC_STRUCT_MEMBER(std::string, mailbox_name)
|
| IPC_STRUCT_MEMBER(gfx::Size, size)
|
| + IPC_STRUCT_MEMBER(cc::LatencyInfo, latency_info)
|
| IPC_STRUCT_END()
|
| #undef IPC_MESSAGE_EXPORT
|
| #define IPC_MESSAGE_EXPORT
|
| @@ -64,6 +66,7 @@ IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
|
| IPC_STRUCT_MEMBER(int, height)
|
| IPC_STRUCT_MEMBER(std::string, mailbox_name)
|
| IPC_STRUCT_MEMBER(gfx::Size, surface_size)
|
| + IPC_STRUCT_MEMBER(cc::LatencyInfo, latency_info)
|
| IPC_STRUCT_END()
|
|
|
| IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
|
| @@ -361,6 +364,11 @@ IPC_MESSAGE_CONTROL3(GpuHostMsg_ResizeView,
|
| int32 /* route_id */,
|
| gfx::Size /* size */)
|
|
|
| +// Tells the browser that a frame with the specific latency info was drawn to
|
| +// the screen
|
| +IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn,
|
| + cc::LatencyInfo /* latency_info */)
|
| +
|
| // Same as above with a rect of the part of the surface that changed.
|
| IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
|
| GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
|
| @@ -502,6 +510,11 @@ IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush,
|
| int32 /* put_offset */,
|
| uint32 /* flush_count */)
|
|
|
| +// Sends information about the latency of the current frame to the GPU
|
| +// process.
|
| +IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetLatencyInfo,
|
| + cc::LatencyInfo /* latency_info */)
|
| +
|
| // Asynchronously process any commands known to the GPU process. This is only
|
| // used in the event that a channel is unscheduled and needs to be flushed
|
| // again to process any commands issued subsequent to unscheduling. The GPU
|
|
|