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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 10663003: Merge the IPCs used for GPU process synchronization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 63f53149bdba4f5e77e7602f13bac1847e8908a1..450dd91e5b9a34aa01ecf6e7363fafbe7a4345b7 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -552,7 +552,7 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceBuffersSwapped(
if (!compositor) {
// We have no compositor, so we have no way to display the surface.
// Must still send the ACK.
- RenderWidgetHostImpl::AcknowledgeSwapBuffers(params_in_pixel.route_id,
+ RenderWidgetHostImpl::AcknowledgeBufferPresent(params_in_pixel.route_id,
gpu_host_id);
} else {
gfx::Size surface_size_in_pixel =
@@ -566,12 +566,12 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceBuffersSwapped(
// However only do so if we're not between the Draw() and the
// OnCompositingEnded(), because out-of-order execution in the GPU process
// might corrupt the "front buffer" for the currently issued frame.
- RenderWidgetHostImpl::AcknowledgeSwapBuffers(
+ RenderWidgetHostImpl::AcknowledgeBufferPresent(
params_in_pixel.route_id, gpu_host_id);
} else {
// Add sending an ACK to the list of things to do OnCompositingEnded
on_compositing_ended_callbacks_.push_back(
- base::Bind(&RenderWidgetHostImpl::AcknowledgeSwapBuffers,
+ base::Bind(&RenderWidgetHostImpl::AcknowledgeBufferPresent,
params_in_pixel.route_id, gpu_host_id));
if (!compositor->HasObserver(this))
compositor->AddObserver(this);
@@ -589,7 +589,7 @@ void RenderWidgetHostViewAura::AcceleratedSurfacePostSubBuffer(
if (!compositor) {
// We have no compositor, so we have no way to display the surface
// Must still send the ACK
- RenderWidgetHostImpl::AcknowledgePostSubBuffer(
+ RenderWidgetHostImpl::AcknowledgeBufferPresent(
params_in_pixel.route_id, gpu_host_id);
} else {
gfx::Size surface_size_in_pixel =
@@ -610,12 +610,12 @@ void RenderWidgetHostViewAura::AcceleratedSurfacePostSubBuffer(
// However only do so if we're not between the Draw() and the
// OnCompositingEnded(), because out-of-order execution in the GPU process
// might corrupt the "front buffer" for the currently issued frame.
- RenderWidgetHostImpl::AcknowledgePostSubBuffer(
+ RenderWidgetHostImpl::AcknowledgeBufferPresent(
params_in_pixel.route_id, gpu_host_id);
} else {
// Add sending an ACK to the list of things to do OnCompositingEnded
on_compositing_ended_callbacks_.push_back(
- base::Bind(&RenderWidgetHostImpl::AcknowledgePostSubBuffer,
+ base::Bind(&RenderWidgetHostImpl::AcknowledgeBufferPresent,
params_in_pixel.route_id, gpu_host_id));
if (!compositor->HasObserver(this))
compositor->AddObserver(this);
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698