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

Unified Diff: cc/layers/layer_impl.h

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | shell/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index d1cf0530586d65e6566df624062c474671ff5626..b205143f06b227cc36e8f1b23a648781bcea4630 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -108,6 +108,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
void OnTransformAnimated(const gfx::Transform& transform) override;
void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override;
void OnAnimationWaitingForDeletion() override;
+ void OnScrollOffsetAnimationRemoved() override;
bool IsActive() const override;
// AnimationDelegate implementation.
@@ -404,6 +405,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
void SetSentScrollDelta(const gfx::Vector2dF& sent_scroll_delta);
gfx::Vector2dF sent_scroll_delta() const { return sent_scroll_delta_; }
+ void ClearScrollDeltaAtActivation();
+
// Returns the delta of the scroll that was outside of the bounds of the
// initial scroll
gfx::Vector2dF ScrollBy(const gfx::Vector2dF& scroll);
@@ -646,6 +649,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool draw_checkerboard_for_missing_tiles_ : 1;
bool draws_content_ : 1;
bool hide_layer_and_subtree_ : 1;
+ bool clear_scroll_delta_at_activation_ : 1;
// Cache transform_'s invertibility.
bool transform_is_invertible_ : 1;
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698