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

Side by Side 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: Rebase and resolve Created 5 years 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 unified diff | Download patch
« no previous file with comments | « cc/input/scrollbar.h ('k') | cc/layers/painted_scrollbar_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ 5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_
6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ 6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/input/scrollbar.h" 9 #include "cc/input/scrollbar.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int thumb_thickness_; 90 int thumb_thickness_;
91 int thumb_length_; 91 int thumb_length_;
92 gfx::Point location_; 92 gfx::Point location_;
93 gfx::Rect track_rect_; 93 gfx::Rect track_rect_;
94 bool is_overlay_; 94 bool is_overlay_;
95 bool has_thumb_; 95 bool has_thumb_;
96 96
97 scoped_ptr<ScopedUIResource> track_resource_; 97 scoped_ptr<ScopedUIResource> track_resource_;
98 scoped_ptr<ScopedUIResource> thumb_resource_; 98 scoped_ptr<ScopedUIResource> thumb_resource_;
99 99
100 float thumb_opacity_;
101
100 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer); 102 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer);
101 }; 103 };
102 104
103 } // namespace cc 105 } // namespace cc
104 106
105 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ 107 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/scrollbar.h ('k') | cc/layers/painted_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698