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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 95763002: cc: Support animating scroll offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 8a01b803034cf76f626937094cfe01930d915665..9f2a10327da68d75acdf314f744f124337bda291 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -936,6 +936,11 @@ void LayerTreeHostImpl::UpdateBackgroundAnimateTicking(
time_source_client_adapter_->SetActive(enabled);
}
+void LayerTreeHostImpl::DidAnimateScrollOffset() {
+ client_->SetNeedsCommitOnImplThread();
+ client_->RenewTreePriority();
+}
+
void LayerTreeHostImpl::SetViewportDamage(gfx::Rect damage_rect) {
viewport_damage_rect_.Union(damage_rect);
}

Powered by Google App Engine
This is Rietveld 408576698