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

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..c1cac47b554ded087b8f62bb94125f07b6532be8 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();
+ explicit CompositorImpl(Compositor::Client* client);
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);
};
« no previous file with comments | « content/browser/android/draw_delegate_impl.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698