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

Side by Side Diff: cc/layers/solid_color_scrollbar_layer.h

Issue 1999783003: cc : Initialize solid color scrollbar layer on main thread to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
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_SOLID_COLOR_SCROLLBAR_LAYER_H_ 5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 11 matching lines...) Expand all
22 int thumb_thickness, 22 int thumb_thickness,
23 int track_start, 23 int track_start,
24 bool is_left_side_vertical_scrollbar, 24 bool is_left_side_vertical_scrollbar,
25 int scroll_layer_id); 25 int scroll_layer_id);
26 26
27 // Layer overrides. 27 // Layer overrides.
28 bool OpacityCanAnimateOnImplThread() const override; 28 bool OpacityCanAnimateOnImplThread() const override;
29 bool AlwaysUseActiveTreeOpacity() const override; 29 bool AlwaysUseActiveTreeOpacity() const override;
30 ScrollbarLayerInterface* ToScrollbarLayer() override; 30 ScrollbarLayerInterface* ToScrollbarLayer() override;
31 31
32 void SetOpacity(float opacity) override;
32 void PushPropertiesTo(LayerImpl* layer) override; 33 void PushPropertiesTo(LayerImpl* layer) override;
33 34
34 void SetNeedsDisplayRect(const gfx::Rect& rect) override; 35 void SetNeedsDisplayRect(const gfx::Rect& rect) override;
35 36
36 // ScrollbarLayerInterface 37 // ScrollbarLayerInterface
37 int ScrollLayerId() const override; 38 int ScrollLayerId() const override;
38 void SetScrollLayer(int layer_id) override; 39 void SetScrollLayer(int layer_id) override;
39 40
40 ScrollbarOrientation orientation() const override; 41 ScrollbarOrientation orientation() const override;
41 42
(...skipping 19 matching lines...) Expand all
61 int thumb_thickness_; 62 int thumb_thickness_;
62 int track_start_; 63 int track_start_;
63 bool is_left_side_vertical_scrollbar_; 64 bool is_left_side_vertical_scrollbar_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); 66 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer);
66 }; 67 };
67 68
68 } // namespace cc 69 } // namespace cc
69 70
70 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 71 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698