Index: content/browser/gpu/gpu_process_host_ui_shim.cc |
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc |
index 1377dce99906c088dd989fcaeced99f69b0e244b..f50db216e35c78f15911fd99e2d8e8ebfe668056 100644 |
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc |
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc |
@@ -22,12 +22,10 @@ |
#include "content/browser/renderer_host/render_view_host_impl.h" |
#include "content/browser/renderer_host/render_widget_helper.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
-#include "content/common/gpu/gpu_host_messages.h" |
+#include "content/common/gpu/gpu_messages.h" |
#include "content/public/browser/browser_thread.h" |
-#include "ui/gfx/swap_result.h" |
#if defined(OS_MACOSX) |
-#include "content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h" |
#include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
#endif |
@@ -186,7 +184,8 @@ |
DCHECK(CalledOnValidThread()); |
IPC_BEGIN_MESSAGE_MAP(GpuProcessHostUIShim, message) |
- IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage, OnLogMessage) |
+ IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage, |
+ OnLogMessage) |
#if defined(OS_MACOSX) |
IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
OnAcceleratedSurfaceBuffersSwapped) |
@@ -223,19 +222,19 @@ |
#if defined(OS_MACOSX) |
void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped( |
- const AcceleratedSurfaceBuffersSwappedParams& params) { |
+ const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params) { |
TRACE_EVENT0("browser", |
"GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped"); |
if (!ui::LatencyInfo::Verify(params.latency_info, |
"GpuHostMsg_AcceleratedSurfaceBuffersSwapped")) { |
+ |
TRACE_EVENT0("browser", "ui::LatencyInfo::Verify failed"); |
return; |
} |
// On Mac with delegated rendering, accelerated surfaces are not necessarily |
// associated with a RenderWidgetHostViewBase. |
- BufferPresentedParams ack_params; |
- ack_params.surface_id = params.surface_id; |
+ AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
// If the frame was intended for an NSView that the gfx::AcceleratedWidget is |
// no longer attached to, do not pass the frame along to the widget. Just ack |
@@ -267,7 +266,7 @@ |
content::ImageTransportFactory::GetInstance()->OnGpuSwapBuffersCompleted( |
params.surface_id, params.latency_info, gfx::SwapResult::SWAP_ACK); |
- Send(new AcceleratedSurfaceMsg_BufferPresented(ack_params)); |
+ Send(new AcceleratedSurfaceMsg_BufferPresented(params.route_id, ack_params)); |
} |
#endif |