Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1263)

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address piman@ comments. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698