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 128a1aeca87f61756025c398f099c18574765316..3ebc261bf3a50b82b3be809314935a6fc9eeb56b 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -100,7 +100,7 @@ void SendGpuProcessMessage(GpuProcessHost::GpuProcessKind kind, |
void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id, |
int route_id, |
bool alive, |
- bool did_swap) { |
+ uint64 surface_handle) { |
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
BrowserThread::PostTask( |
BrowserThread::IO, |
@@ -109,7 +109,7 @@ void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id, |
host_id, |
route_id, |
alive, |
- did_swap)); |
+ surface_handle)); |
return; |
} |
@@ -117,7 +117,7 @@ void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id, |
if (host) { |
if (alive) |
host->Send(new AcceleratedSurfaceMsg_BufferPresented( |
- route_id, did_swap, 0)); |
+ route_id, surface_handle, 0)); |
else |
host->ForceShutdown(); |
} |
@@ -679,7 +679,7 @@ void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped( |
base::ScopedClosureRunner scoped_completion_runner( |
base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, |
host_id_, params.route_id, |
- true /* alive */, false /* presented */)); |
+ true /* alive */, params.surface_handle)); |
int render_process_id = 0; |
int render_widget_id = 0; |
@@ -715,7 +715,7 @@ void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped( |
base::ScopedClosureRunner scoped_completion_runner( |
base::Bind(&AcceleratedSurfaceBuffersSwappedCompleted, |
host_id_, params.route_id, params.surface_id, |
- true, base::TimeTicks(), base::TimeDelta())); |
+ params.surface_handle, base::TimeTicks(), base::TimeDelta())); |
gfx::PluginWindowHandle handle = |
GpuSurfaceTracker::Get()->GetSurfaceWindowHandle(params.surface_id); |