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

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

Issue 1991523002: cc : Track ids for which active opacity always wins on property trees (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
« no previous file with comments | « cc/layers/layer.cc ('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 "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/input/scrollbar.h" 10 #include "cc/input/scrollbar.h"
11 #include "cc/layers/layer.h" 11 #include "cc/layers/layer.h"
12 #include "cc/layers/scrollbar_layer_interface.h" 12 #include "cc/layers/scrollbar_layer_interface.h"
13 #include "cc/layers/scrollbar_theme_painter.h" 13 #include "cc/layers/scrollbar_theme_painter.h"
14 #include "cc/resources/scoped_ui_resource.h" 14 #include "cc/resources/scoped_ui_resource.h"
15 15
16 namespace cc { 16 namespace cc {
17 class ScrollbarThemeComposite; 17 class ScrollbarThemeComposite;
18 18
19 class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface, 19 class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
20 public Layer { 20 public Layer {
21 public: 21 public:
22 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 22 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
23 23
24 static scoped_refptr<PaintedScrollbarLayer> Create( 24 static scoped_refptr<PaintedScrollbarLayer> Create(
25 std::unique_ptr<Scrollbar> scrollbar, 25 std::unique_ptr<Scrollbar> scrollbar,
26 int scroll_layer_id); 26 int scroll_layer_id);
27 27
28 bool OpacityCanAnimateOnImplThread() const override; 28 bool OpacityCanAnimateOnImplThread() const override;
29 bool AlwaysUseActiveTreeOpacity() const override;
29 ScrollbarLayerInterface* ToScrollbarLayer() override; 30 ScrollbarLayerInterface* ToScrollbarLayer() override;
30 31
31 // ScrollbarLayerInterface 32 // ScrollbarLayerInterface
32 int ScrollLayerId() const override; 33 int ScrollLayerId() const override;
33 void SetScrollLayer(int layer_id) override; 34 void SetScrollLayer(int layer_id) override;
34 35
35 ScrollbarOrientation orientation() const override; 36 ScrollbarOrientation orientation() const override;
36 37
37 // Layer interface 38 // Layer interface
38 bool Update() override; 39 bool Update() override;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 std::unique_ptr<ScopedUIResource> thumb_resource_; 98 std::unique_ptr<ScopedUIResource> thumb_resource_;
98 99
99 float thumb_opacity_; 100 float thumb_opacity_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer); 102 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer);
102 }; 103 };
103 104
104 } // namespace cc 105 } // namespace cc
105 106
106 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ 107 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/painted_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698