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

Unified Diff: ui/compositor/compositor.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: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index b2d27797de7fc1af7938ba330d02eb39f891cbc5..5c390366519d16d5f9386e5aa4653fa0c7d28e58 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -30,6 +30,7 @@ class RunLoop;
}
namespace cc {
+class BeginFrameManager;
class ContextProvider;
class Layer;
class LayerTreeDebugState;
@@ -49,7 +50,6 @@ struct Mailbox;
namespace ui {
class Compositor;
-class CompositorVSyncManager;
class Layer;
class Reflector;
class Texture;
@@ -184,8 +184,12 @@ class COMPOSITOR_EXPORT Compositor
// Returns the widget for this compositor.
gfx::AcceleratedWidget widget() const { return widget_; }
- // Returns the vsync manager for this compositor.
- scoped_refptr<CompositorVSyncManager> vsync_manager() const;
+ // See cc::BeginFrameManager::Delegate comment.
+ void SetAuthoritativeVSyncInterval(base::TimeDelta interval) const;
+
+ cc::BeginFrameManager* begin_frame_manager() const {
brianderson 2014/08/28 02:48:07 Instead of exposing the BeginFrameManager to every
simonhong 2014/09/03 21:02:23 BeginFrameManager is removed. Instead, {Add|Remove
+ return begin_frame_manager_.get();
+ }
// Compositor does not own observers. It is the responsibility of the
// observer to remove itself when it is done observing.
@@ -267,8 +271,8 @@ class COMPOSITOR_EXPORT Compositor
scoped_refptr<base::MessageLoopProxy> compositor_thread_loop_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- // The manager of vsync parameters for this compositor.
- scoped_refptr<CompositorVSyncManager> vsync_manager_;
+ // The manager of BeginFrame routing.
+ scoped_ptr<cc::BeginFrameManager> begin_frame_manager_;
brianderson 2014/08/28 02:48:07 Would it make sense for the LTH or Proxy to own th
simonhong 2014/08/29 00:03:01 My plan was making BeginFrameManager as a member v
// The device scale factor of the monitor that this compositor is compositing
// layers on.

Powered by Google App Engine
This is Rietveld 408576698