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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 11108004: Android Browser Compositor: Add ScheduleComposite() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index 4d6065d9a28fd90867c77c944a0b5fcddad8ffbc..58a1fb38f0002a506bbbd3d1e064202a62ffa30f 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -24,7 +24,7 @@ class GraphicsContext;
class CompositorImpl : public Compositor,
public WebKit::WebLayerTreeViewClient {
public:
- CompositorImpl();
+ CompositorImpl(Compositor::Client* client);
piman 2012/10/12 20:53:06 nit: explicit
no sievers 2012/10/12 22:33:51 Done.
virtual ~CompositorImpl();
static bool IsInitialized();
@@ -35,8 +35,7 @@ class CompositorImpl : public Compositor,
virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE;
virtual bool CompositeAndReadback(
void *pixels, const gfx::Rect& rect) OVERRIDE;
- virtual void OnSurfaceUpdated(
- const SurfacePresentedCallback& callback) OVERRIDE;
+ virtual void Composite() OVERRIDE;
// WebLayerTreeViewClient implementation.
virtual void updateAnimations(double frameBeginTime) OVERRIDE;
@@ -59,6 +58,8 @@ class CompositorImpl : public Compositor,
ANativeWindow* window_;
int surface_id_;
+ Compositor::Client* client_;
+
DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
};

Powered by Google App Engine
This is Rietveld 408576698