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

Unified Diff: Source/platform/scroll/ScrollableArea.h

Issue 802383003: Run CSSOM smooth scroll animations on the compositor when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment Created 5 years, 11 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 | « Source/platform/scroll/ProgrammaticScrollAnimator.cpp ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollableArea.h
diff --git a/Source/platform/scroll/ScrollableArea.h b/Source/platform/scroll/ScrollableArea.h
index 094edc3448faa393c93d9cd91049714cb4690fa4..d0c6b9c0a0ff38800fba8fb067859e19a5822e9f 100644
--- a/Source/platform/scroll/ScrollableArea.h
+++ b/Source/platform/scroll/ScrollableArea.h
@@ -65,7 +65,7 @@ public:
virtual HostWindow* hostWindow() const { return 0; };
bool scroll(ScrollDirection, ScrollGranularity, float delta = 1);
- void scrollToOffsetWithoutAnimation(const FloatPoint&);
+ void scrollToOffsetWithoutAnimation(const FloatPoint&, bool cancelProgrammaticAnimations = true);
void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset);
void programmaticallyScrollSmoothlyToOffset(const FloatPoint&);
@@ -206,9 +206,12 @@ public:
// animations.
bool scheduleAnimation();
void serviceScrollAnimations(double monotonicTime);
+ void updateCompositorScrollAnimations();
virtual void registerForAnimation() { }
virtual void deregisterForAnimation() { }
+ void notifyCompositorAnimationFinished(int groupId);
+
virtual bool usesCompositedScrolling() const { return false; }
// Returns true if the GraphicsLayer tree needs to be rebuilt.
« no previous file with comments | « Source/platform/scroll/ProgrammaticScrollAnimator.cpp ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698