| Index: content/public/browser/android/synchronous_compositor.h
|
| diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h
|
| index e0d09d8d5b99101d31b9a8729c5b0045dd3a1d44..37f90b85f3ffadfd7674b5ad9cc559ee5f0a1e21 100644
|
| --- a/content/public/browser/android/synchronous_compositor.h
|
| +++ b/content/public/browser/android/synchronous_compositor.h
|
| @@ -47,9 +47,14 @@ class CONTENT_EXPORT SynchronousCompositor {
|
| static void SetGpuService(
|
| scoped_refptr<gpu::InProcessCommandBuffer::Service> service);
|
|
|
| + struct Frame {
|
| + uint32_t output_surface_id;
|
| + scoped_ptr<cc::CompositorFrame> frame;
|
| + };
|
| +
|
| // "On demand" hardware draw. The content is first clipped to |damage_area|,
|
| // then transformed through |transform|, and finally clipped to |view_size|.
|
| - virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw(
|
| + virtual Frame DemandDrawHw(
|
| const gfx::Size& surface_size,
|
| const gfx::Transform& transform,
|
| const gfx::Rect& viewport,
|
| @@ -59,7 +64,8 @@ class CONTENT_EXPORT SynchronousCompositor {
|
|
|
| // For delegated rendering, return resources from parent compositor to this.
|
| // Note that all resources must be returned before ReleaseHwDraw.
|
| - virtual void ReturnResources(const cc::CompositorFrameAck& frame_ack) = 0;
|
| + virtual void ReturnResources(uint32_t output_surface_id,
|
| + const cc::CompositorFrameAck& frame_ack) = 0;
|
|
|
| // "On demand" SW draw, into the supplied canvas (observing the transform
|
| // and clip set there-in).
|
|
|