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..431e1e1cd7d28566e63f74a36bdb8db06742f32c 100644 |
--- a/content/public/browser/android/synchronous_compositor.h |
+++ b/content/public/browser/android/synchronous_compositor.h |
@@ -47,9 +47,24 @@ class CONTENT_EXPORT SynchronousCompositor { |
static void SetGpuService( |
scoped_refptr<gpu::InProcessCommandBuffer::Service> service); |
+ struct Frame { |
+ Frame(); |
+ ~Frame(); |
+ |
+ // Movable type. |
+ Frame(Frame&& rhs); |
+ Frame& operator=(Frame&& rhs); |
+ |
+ uint32_t output_surface_id; |
+ scoped_ptr<cc::CompositorFrame> frame; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(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 +74,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). |