| Index: cc/trees/layer_tree_host_impl.h
|
| diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
|
| index 0fe1ec92337635f6791984ffc141e1d94ae802cb..5598d63196536b3411d473b5144fc471c648068e 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -31,6 +31,7 @@
|
| #include "cc/quads/render_pass.h"
|
| #include "cc/resources/resource_provider.h"
|
| #include "cc/resources/tile_manager.h"
|
| +#include "cc/scheduler/begin_frame_source.h"
|
| #include "cc/scheduler/draw_result.h"
|
| #include "skia/ext/refptr.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| @@ -73,7 +74,6 @@ class LayerTreeHostImplClient {
|
| virtual void SetMaxSwapsPendingOnImplThread(int max) = 0;
|
| virtual void DidSwapBuffersOnImplThread() = 0;
|
| virtual void DidSwapBuffersCompleteOnImplThread() = 0;
|
| - virtual void BeginFrame(const BeginFrameArgs& args) = 0;
|
| virtual void OnCanDrawStateChanged(bool can_draw) = 0;
|
| virtual void NotifyReadyToActivate() = 0;
|
| // Please call these 3 functions through
|
| @@ -112,6 +112,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| public OutputSurfaceClient,
|
| public TopControlsManagerClient,
|
| public ScrollbarAnimationControllerClient,
|
| + public BeginFrameSourceMixIn,
|
| public base::SupportsWeakPtr<LayerTreeHostImpl> {
|
| public:
|
| static scoped_ptr<LayerTreeHostImpl> Create(
|
| @@ -123,6 +124,9 @@ class CC_EXPORT LayerTreeHostImpl
|
| int id);
|
| virtual ~LayerTreeHostImpl();
|
|
|
| + // BeginFrameSourceMixIn implementation
|
| + virtual void OnNeedsBeginFramesChange(bool needs_begin_frames) OVERRIDE;
|
| +
|
| // InputHandler implementation
|
| virtual void BindToClient(InputHandlerClient* client) OVERRIDE;
|
| virtual InputHandler::ScrollStatus ScrollBegin(
|
| @@ -296,7 +300,6 @@ class CC_EXPORT LayerTreeHostImpl
|
| const RendererCapabilitiesImpl& GetRendererCapabilities() const;
|
|
|
| virtual bool SwapBuffers(const FrameData& frame);
|
| - void SetNeedsBeginFrame(bool enable);
|
| virtual void WillBeginImplFrame(const BeginFrameArgs& args);
|
| void DidModifyTilePriorities();
|
|
|
| @@ -428,9 +431,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| return begin_impl_frame_interval_;
|
| }
|
|
|
| - void AsValueInto(base::debug::TracedValue* value) const {
|
| - return AsValueWithFrameInto(NULL, value);
|
| - }
|
| + virtual void AsValueInto(base::debug::TracedValue* value) const OVERRIDE;
|
| void AsValueWithFrameInto(FrameData* frame,
|
| base::debug::TracedValue* value) const;
|
| scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
|
|
|