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

Unified Diff: cc/layers/painted_scrollbar_layer_impl.h

Issue 1458703010: Mac: Don't repaint scrollbars every frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master2
Patch Set: Sprinkle in some tests Created 5 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/layers/painted_scrollbar_layer_impl.h
diff --git a/cc/layers/painted_scrollbar_layer_impl.h b/cc/layers/painted_scrollbar_layer_impl.h
index 65d28aea0501f0b172ea1497763e2b7074b460a6..2c66e2f0290ee3054496ad0e0d95b93e6b432384 100644
--- a/cc/layers/painted_scrollbar_layer_impl.h
+++ b/cc/layers/painted_scrollbar_layer_impl.h
@@ -45,6 +45,9 @@ class CC_EXPORT PaintedScrollbarLayerImpl : public ScrollbarLayerImplBase {
thumb_ui_resource_id_ = uid;
}
+ void set_track_opacity(float opacity) { track_opacity_ = opacity; }
+ void set_thumb_opacity(float opacity) { thumb_opacity_ = opacity; }
+
void set_internal_contents_scale_and_bounds(float content_scale,
const gfx::Size& content_bounds) {
internal_contents_scale_ = content_scale;
@@ -69,6 +72,9 @@ class CC_EXPORT PaintedScrollbarLayerImpl : public ScrollbarLayerImplBase {
UIResourceId track_ui_resource_id_;
UIResourceId thumb_ui_resource_id_;
+ float track_opacity_;
+ float thumb_opacity_;
+
float internal_contents_scale_;
gfx::Size internal_content_bounds_;

Powered by Google App Engine
This is Rietveld 408576698