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

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

Issue 11475017: Revert 171569 as it broke some browser_tests on win_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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
===================================================================
--- content/browser/gpu/gpu_process_host.cc (revision 171661)
+++ content/browser/gpu/gpu_process_host.cc (working copy)
@@ -100,7 +100,7 @@
void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id,
int route_id,
bool alive,
- uint64 surface_handle) {
+ bool did_swap) {
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO,
@@ -109,7 +109,7 @@
host_id,
route_id,
alive,
- surface_handle));
+ did_swap));
return;
}
@@ -117,7 +117,7 @@
if (host) {
if (alive)
host->Send(new AcceleratedSurfaceMsg_BufferPresented(
- route_id, surface_handle, 0));
+ route_id, did_swap, 0));
else
host->ForceShutdown();
}
@@ -159,12 +159,11 @@
void AcceleratedSurfaceBuffersSwappedCompleted(int host_id,
int route_id,
int surface_id,
- uint64 surface_handle,
bool alive,
base::TimeTicks timebase,
base::TimeDelta interval) {
AcceleratedSurfaceBuffersSwappedCompletedForGPU(host_id, route_id,
- alive, surface_handle);
+ alive, true /* presented */);
AcceleratedSurfaceBuffersSwappedCompletedForRenderer(surface_id, timebase,
interval);
}
@@ -705,7 +704,7 @@
base::ScopedClosureRunner scoped_completion_runner(
base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU,
host_id_, params.route_id,
- true /* alive */, params.surface_handle));
+ true /* alive */, false /* presented */));
int render_process_id = 0;
int render_widget_id = 0;
@@ -740,8 +739,8 @@
base::ScopedClosureRunner scoped_completion_runner(
base::Bind(&AcceleratedSurfaceBuffersSwappedCompleted,
- host_id_, params.route_id, params.surface_id, params.surface_handle,
- true, base::TimeTicks(), base::TimeDelta()));
+ host_id_, params.route_id, params.surface_id,
+ true, base::TimeTicks(), base::TimeDelta()));
gfx::PluginWindowHandle handle =
GpuSurfaceTracker::Get()->GetSurfaceWindowHandle(params.surface_id);
@@ -773,8 +772,7 @@
base::Bind(&AcceleratedSurfaceBuffersSwappedCompleted,
host_id_,
params.route_id,
- params.surface_id,
- params.surface_handle));
+ params.surface_id));
}
void GpuProcessHost::OnAcceleratedSurfacePostSubBuffer(
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698