| 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 {
|
| + 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_;
|
|
|
| // The device scale factor of the monitor that this compositor is compositing
|
| // layers on.
|
|
|