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

Unified Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 571873003: [Android]Optimization of scrollbar animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: cc/layers/scrollbar_layer_impl_base.h
diff --git a/cc/layers/scrollbar_layer_impl_base.h b/cc/layers/scrollbar_layer_impl_base.h
index 435943dfc4ce28bd1a555101faa27a0ff00f2888..03f72b1c6f2b97e8c5ca52af07565191e727e72c 100644
--- a/cc/layers/scrollbar_layer_impl_base.h
+++ b/cc/layers/scrollbar_layer_impl_base.h
@@ -58,6 +58,11 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
void ScrollbarParametersDidChange();
+ bool ScrollbarNeedsUpdate(float vertical_adjust,
weiliangc 2014/09/15 17:14:37 The four setter function already checks whether th
+ float current_pos,
+ int maximum,
+ float visible_to_total_length_ratio);
+
protected:
ScrollbarLayerImplBase(LayerTreeImpl* tree_impl,
int id,

Powered by Google App Engine
This is Rietveld 408576698