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

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

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP in mac and android Created 6 years, 4 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 4792d9058c7efd3c3b3ccf7109e6b7a7975ffe36..37a2679ad523ea283562c0bcec24534ad33e158c 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -25,6 +25,7 @@ class SkBitmap;
struct ANativeWindow;
namespace cc {
+class BeginFrameManager;
class Layer;
class LayerTreeHost;
}
@@ -55,6 +56,10 @@ class CONTENT_EXPORT CompositorImpl
// Destroy all surface textures associated with |child_process_id|.
static void DestroyAllSurfaceTextures(int child_process_id);
+ cc::BeginFrameManager* begin_frame_manager() {
+ return begin_frame_manager_.get();
+ }
+
private:
// Compositor implementation.
virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE;
@@ -181,6 +186,8 @@ class CONTENT_EXPORT CompositorImpl
base::TimeDelta vsync_period_;
base::TimeTicks last_vsync_;
+ scoped_ptr<cc::BeginFrameManager> begin_frame_manager_;
+
base::WeakPtrFactory<CompositorImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CompositorImpl);

Powered by Google App Engine
This is Rietveld 408576698