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

Unified Diff: cc/layers/solid_color_scrollbar_layer.cc

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.h ('k') | cc/layers/surface_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_scrollbar_layer.cc
diff --git a/cc/layers/solid_color_scrollbar_layer.cc b/cc/layers/solid_color_scrollbar_layer.cc
index b2c1ed495f0c18d97864202e517efb1eaec1b1fd..4ed55cacd3ae3597f3a6a72b7c41fe9ee086031e 100644
--- a/cc/layers/solid_color_scrollbar_layer.cc
+++ b/cc/layers/solid_color_scrollbar_layer.cc
@@ -23,31 +23,32 @@ scoped_ptr<LayerImpl> SolidColorScrollbarLayer::CreateLayerImpl(
}
scoped_refptr<SolidColorScrollbarLayer> SolidColorScrollbarLayer::Create(
+ const LayerSettings& settings,
ScrollbarOrientation orientation,
int thumb_thickness,
int track_start,
bool is_left_side_vertical_scrollbar,
int scroll_layer_id) {
- return make_scoped_refptr(
- new SolidColorScrollbarLayer(orientation,
- thumb_thickness,
- track_start,
- is_left_side_vertical_scrollbar,
- scroll_layer_id));
+ return make_scoped_refptr(new SolidColorScrollbarLayer(
+ settings, orientation, thumb_thickness, track_start,
+ is_left_side_vertical_scrollbar, scroll_layer_id));
}
SolidColorScrollbarLayer::SolidColorScrollbarLayer(
+ const LayerSettings& settings,
ScrollbarOrientation orientation,
int thumb_thickness,
int track_start,
bool is_left_side_vertical_scrollbar,
int scroll_layer_id)
- : scroll_layer_id_(Layer::INVALID_ID),
+ : Layer(settings),
+ scroll_layer_id_(Layer::INVALID_ID),
clip_layer_id_(scroll_layer_id),
orientation_(orientation),
thumb_thickness_(thumb_thickness),
track_start_(track_start),
- is_left_side_vertical_scrollbar_(is_left_side_vertical_scrollbar) {}
+ is_left_side_vertical_scrollbar_(is_left_side_vertical_scrollbar) {
+}
SolidColorScrollbarLayer::~SolidColorScrollbarLayer() {}
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.h ('k') | cc/layers/surface_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698