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

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: Adding test case for above patch 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..dd75b2dd5253ce3467374f27f9806bd500f19df2 100644
--- a/cc/layers/scrollbar_layer_impl_base.h
+++ b/cc/layers/scrollbar_layer_impl_base.h
@@ -54,6 +54,10 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
float thumb_thickness_scale_factor() {
return thumb_thickness_scale_factor_;
}
+
+ void ResetScrollbarNeedsAnimation() { scrollbar_needs_animation_ = false; }
+ bool scrollbar_needs_animation() { return scrollbar_needs_animation_; }
+
void SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor);
void ScrollbarParametersDidChange();
@@ -98,6 +102,8 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
float visible_to_total_length_ratio_;
+ bool scrollbar_needs_animation_;
aelias_OOO_until_Jul13 2014/09/19 23:20:17 I don't think it makes any sense to add a new bool
danakj 2014/09/19 23:25:56 That's a good idea. Wei previously pointed out the
MuVen 2014/09/20 08:42:00 Yes this is good idea.This eliminates the needs fo
MuVen 2014/09/20 08:42:00 Done.
+
DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase);
};

Powered by Google App Engine
This is Rietveld 408576698