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

Unified Diff: content/public/browser/android/synchronous_compositor.h

Issue 1769913003: sync compositor: Add output_surface_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit in test Created 4 years, 9 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/android/synchronous_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/android/synchronous_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698