| Index: content/browser/renderer_host/render_widget_host_view.h
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host_view.h (revision 108480)
|
| +++ content/browser/renderer_host/render_widget_host_view.h (working copy)
|
| @@ -26,6 +26,8 @@
|
| #include "ui/gfx/rect.h"
|
| #include "ui/gfx/surface/transport_dib.h"
|
|
|
| +struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
|
| +
|
| namespace gfx {
|
| class Rect;
|
| class Size;
|
| @@ -189,6 +191,15 @@
|
| // Allocate a backing store for this view
|
| virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
|
|
|
| + // |params.window| and |params.surface_id| indicate which accelerated
|
| + // surface's buffers swapped. |params.renderer_id| and |params.route_id|
|
| + // 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(
|
| + const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
|
| + int gpu_host_id) = 0;
|
| +
|
| #if defined(OS_MACOSX)
|
| // Tells the view whether or not to accept first responder status. If |flag|
|
| // is true, the view does not accept first responder status and instead
|
| @@ -244,17 +255,6 @@
|
| int32 width,
|
| int32 height,
|
| TransportDIB::Handle transport_dib) = 0;
|
| - // |window| and |surface_id| indicate which accelerated surface's
|
| - // buffers swapped. |renderer_id| and |route_id| 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,
|
| - int renderer_id,
|
| - int32 route_id,
|
| - int gpu_host_id) = 0;
|
| virtual void GpuRenderingStateDidChange() = 0;
|
| #endif
|
|
|
| @@ -264,10 +264,6 @@
|
| int32 height,
|
| uint64* surface_id,
|
| TransportDIB::Handle* surface_handle) = 0;
|
| - virtual void AcceleratedSurfaceBuffersSwapped(
|
| - uint64 surface_id,
|
| - int32 route_id,
|
| - int gpu_host_id) = 0;
|
| virtual void AcceleratedSurfaceRelease(uint64 surface_id) = 0;
|
| #endif
|
|
|
|
|