Index: content/browser/gpu/gpu_process_host.cc |
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc |
index d03bb4a6ca3cfd573cc093c55cd227eeb46f6621..7d031ad7dbc08ed5eef45d8f5d876db7cf32872c 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -107,7 +107,8 @@ void SendGpuProcessMessage(GpuProcessHost::GpuProcessKind kind, |
void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id, |
int route_id, |
- bool alive) { |
+ bool alive, |
+ bool did_swap) { |
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
BrowserThread::PostTask( |
BrowserThread::IO, |
@@ -115,14 +116,16 @@ void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id, |
base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, |
host_id, |
route_id, |
- alive)); |
+ alive, |
+ did_swap)); |
return; |
} |
GpuProcessHost* host = GpuProcessHost::FromID(host_id); |
if (host) { |
if (alive) |
- host->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id, 0)); |
+ host->Send(new AcceleratedSurfaceMsg_BufferPresented( |
+ route_id, did_swap, 0)); |
else |
host->ForceShutdown(); |
} |
@@ -167,7 +170,8 @@ void AcceleratedSurfaceBuffersSwappedCompleted(int host_id, |
bool alive, |
base::TimeTicks timebase, |
base::TimeDelta interval) { |
- AcceleratedSurfaceBuffersSwappedCompletedForGPU(host_id, route_id, alive); |
+ AcceleratedSurfaceBuffersSwappedCompletedForGPU(host_id, route_id, |
+ alive, true /* presented */); |
AcceleratedSurfaceBuffersSwappedCompletedForRenderer(surface_id, timebase, |
interval); |
} |
@@ -679,7 +683,8 @@ void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped( |
base::ScopedClosureRunner scoped_completion_runner( |
base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, |
- host_id_, params.route_id, true)); |
+ host_id_, params.route_id, |
+ true /* alive */, false /* presented */)); |
int render_process_id = 0; |
int render_widget_id = 0; |