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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 960873002: Update from https://crrev.com/318214 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60f4b4479f8814470a63215c6551217786158921..73ed039e582363026274a82024477ab30b26ad71 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -103,9 +103,8 @@ class LayerTreeHostImplClient {
int priority_cutoff) = 0;
virtual bool IsInsideDraw() = 0;
virtual void RenewTreePriority() = 0;
- virtual void PostDelayedScrollbarFadeOnImplThread(
- const base::Closure& start_fade,
- base::TimeDelta delay) = 0;
+ virtual void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
+ base::TimeDelta delay) = 0;
virtual void DidActivateSyncTree() = 0;
virtual void DidPrepareTiles() = 0;
@@ -258,9 +257,13 @@ class CC_EXPORT LayerTreeHostImpl
void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override;
// ScrollbarAnimationControllerClient implementation.
- void PostDelayedScrollbarFade(const base::Closure& start_fade,
- base::TimeDelta delay) override;
- void SetNeedsScrollbarAnimationFrame() override;
+ void StartAnimatingScrollbarAnimationController(
+ ScrollbarAnimationController* controller) override;
+ void StopAnimatingScrollbarAnimationController(
+ ScrollbarAnimationController* controller) override;
+ void PostDelayedScrollbarAnimationTask(const base::Closure& task,
+ base::TimeDelta delay) override;
+ void SetNeedsRedrawForScrollbarAnimation() override;
// OutputSurfaceClient implementation.
void DeferredInitialize() override;
@@ -532,10 +535,6 @@ class CC_EXPORT LayerTreeHostImpl
// Virtual for testing.
virtual void AnimateLayers(base::TimeTicks monotonic_time);
- const AnimationRegistrar::AnimationControllerMap&
- active_animation_controllers() const {
- return animation_registrar_->active_animation_controllers();
- }
LayerTreeHostImplClient* client_;
Proxy* proxy_;
@@ -584,9 +583,6 @@ class CC_EXPORT LayerTreeHostImpl
bool HandleMouseOverScrollbar(LayerImpl* layer_impl,
const gfx::PointF& device_viewport_point);
- void AnimateScrollbarsRecursive(LayerImpl* layer,
- base::TimeTicks time);
-
LayerImpl* FindScrollLayerForDeviceViewportPoint(
const gfx::PointF& device_viewport_point,
InputHandler::ScrollInputType type,
@@ -716,6 +712,7 @@ class CC_EXPORT LayerTreeHostImpl
base::TimeDelta begin_impl_frame_interval_;
scoped_ptr<AnimationRegistrar> animation_registrar_;
+ std::set<ScrollbarAnimationController*> scrollbar_animation_controllers_;
RenderingStatsInstrumentation* rendering_stats_instrumentation_;
MicroBenchmarkControllerImpl micro_benchmark_controller_;
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698