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

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

Issue 2734583002: Do not ignore SolidColorScrollbarLayer's scroll_layer_id ctor argument (Closed)
Patch Set: Created 3 years, 9 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/scrollbar_layer_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_damage.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 #include "cc/layers/solid_color_scrollbar_layer.h" 5 #include "cc/layers/solid_color_scrollbar_layer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "cc/layers/layer_impl.h" 9 #include "cc/layers/layer_impl.h"
10 #include "cc/layers/solid_color_scrollbar_layer_impl.h" 10 #include "cc/layers/solid_color_scrollbar_layer_impl.h"
(...skipping 20 matching lines...) Expand all
31 return make_scoped_refptr(new SolidColorScrollbarLayer( 31 return make_scoped_refptr(new SolidColorScrollbarLayer(
32 orientation, thumb_thickness, track_start, 32 orientation, thumb_thickness, track_start,
33 is_left_side_vertical_scrollbar, scroll_layer_id)); 33 is_left_side_vertical_scrollbar, scroll_layer_id));
34 } 34 }
35 35
36 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs:: 36 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs::
37 SolidColorScrollbarLayerInputs(ScrollbarOrientation orientation, 37 SolidColorScrollbarLayerInputs(ScrollbarOrientation orientation,
38 int thumb_thickness, 38 int thumb_thickness,
39 int track_start, 39 int track_start,
40 bool is_left_side_vertical_scrollbar, 40 bool is_left_side_vertical_scrollbar,
41 int scroll_layer_id) 41 int scroll_layer_id)
ajuma 2017/03/04 00:04:50 It looks like this gets called in non-test code wi
pdr. 2017/03/04 02:44:23 We can actually do even better: these callsites ar
42 : scroll_layer_id(Layer::INVALID_ID), 42 : scroll_layer_id(scroll_layer_id),
43 orientation(orientation), 43 orientation(orientation),
44 thumb_thickness(thumb_thickness), 44 thumb_thickness(thumb_thickness),
45 track_start(track_start), 45 track_start(track_start),
46 is_left_side_vertical_scrollbar(is_left_side_vertical_scrollbar) {} 46 is_left_side_vertical_scrollbar(is_left_side_vertical_scrollbar) {}
47 47
48 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs:: 48 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs::
49 ~SolidColorScrollbarLayerInputs() = default; 49 ~SolidColorScrollbarLayerInputs() = default;
50 50
51 SolidColorScrollbarLayer::SolidColorScrollbarLayer( 51 SolidColorScrollbarLayer::SolidColorScrollbarLayer(
52 ScrollbarOrientation orientation, 52 ScrollbarOrientation orientation,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 solid_color_scrollbar_layer_inputs_.scroll_layer_id = layer_id; 106 solid_color_scrollbar_layer_inputs_.scroll_layer_id = layer_id;
107 SetNeedsFullTreeSync(); 107 SetNeedsFullTreeSync();
108 } 108 }
109 109
110 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const { 110 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const {
111 return solid_color_scrollbar_layer_inputs_.orientation; 111 return solid_color_scrollbar_layer_inputs_.orientation;
112 } 112 }
113 113
114 } // namespace cc 114 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_damage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698