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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 5317007: Add flow control between renderer and GPU processes, and, on Mac OS X,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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: chrome/browser/renderer_host/render_widget_host_view.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view.h (revision 67289)
+++ chrome/browser/renderer_host/render_widget_host_view.h (working copy)
@@ -225,8 +225,18 @@
int32 width,
int32 height,
TransportDIB::Handle transport_dib) = 0;
+ // |window| and |surface_id| indicate which accelerated surface's
+ // buffers swapped. |renderer_id|, |route_id| and
+ // |swap_buffers_count| are used to formulate a reply to the GPU
+ // process to prevent it from getting too far ahead. They may all be
+ // zero, in which case no flow control is enforced; this case is
+ // currently used for accelerated plugins.
virtual void AcceleratedSurfaceBuffersSwapped(
- gfx::PluginWindowHandle window, uint64 surface_id) = 0;
+ gfx::PluginWindowHandle window,
+ uint64 surface_id,
+ int renderer_id,
+ int32 route_id,
+ uint64 swap_buffers_count) = 0;
virtual void GpuRenderingStateDidChange() = 0;
#endif

Powered by Google App Engine
This is Rietveld 408576698