| Index: content/common/gpu/gpu_messages.h
|
| diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
|
| index 6fcaf53b8634588578560097b26321bce06c939b..e194ee42916b2d85da6107329bb062230d2e65d2 100644
|
| --- a/content/common/gpu/gpu_messages.h
|
| +++ b/content/common/gpu/gpu_messages.h
|
| @@ -27,6 +27,7 @@
|
| #include "ui/gfx/size.h"
|
| #include "ui/gl/gpu_preference.h"
|
| #include "ui/surface/transport_dib.h"
|
| +#include "webkit/compositor_bindings/web_latency_info_impl.h"
|
|
|
| #if defined(OS_ANDROID)
|
| #include "content/common/android/surface_texture_peer.h"
|
| @@ -59,6 +60,7 @@ IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
|
| #if defined(OS_MACOSX)
|
| IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
|
| #endif
|
| + IPC_STRUCT_MEMBER(WebKit::WebLatencyInfoImpl, latency_info)
|
| IPC_STRUCT_END()
|
| #undef IPC_MESSAGE_EXPORT
|
| #define IPC_MESSAGE_EXPORT
|
| @@ -75,6 +77,7 @@ IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
|
| #if defined(OS_MACOSX)
|
| IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
|
| #endif
|
| + IPC_STRUCT_MEMBER(WebKit::WebLatencyInfoImpl, latency_info)
|
| IPC_STRUCT_END()
|
|
|
| IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
|
| @@ -280,6 +283,12 @@ IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_BufferPresented,
|
| uint64 /* surface_handle */,
|
| uint32 /* sync_point */)
|
|
|
| +// Tells the GPU process that the browser process has handled the swap
|
| +// buffers or post sub-buffer request. A non-zero sync point means
|
| +// that we should wait for the sync point.
|
| +IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_FrameDisplayed,
|
| + WebKit::WebLatencyInfoImpl /* latency_info */)
|
| +
|
| // Tells the GPU process to remove all contexts.
|
| IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
|
|
|
| @@ -508,6 +517,11 @@ IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush,
|
| int32 /* put_offset */,
|
| uint32 /* flush_count */)
|
|
|
| +// Sends information about the latency of the current frame to or from the GPU
|
| +// process.
|
| +IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetLatencyInfo,
|
| + WebKit::WebLatencyInfoImpl /* 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
|
|
|