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

Unified Diff: cc/layers/painted_scrollbar_layer.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.h
diff --git a/cc/layers/painted_scrollbar_layer.h b/cc/layers/painted_scrollbar_layer.h
index b6170a64fc4ea0a3136650900bc9e6b0e3c2d070..b1a933ce19bed13d009e79b8ee337bf47e9e25ac 100644
--- a/cc/layers/painted_scrollbar_layer.h
+++ b/cc/layers/painted_scrollbar_layer.h
@@ -97,6 +97,9 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
scoped_ptr<ScopedUIResource> track_resource_;
scoped_ptr<ScopedUIResource> thumb_resource_;
+ float track_opacity_;
+ float thumb_opacity_;
+
DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer);
};

Powered by Google App Engine
This is Rietveld 408576698