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

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

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 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 #include "cc/layers/scrollbar_layer_impl_base.h" 5 #include "cc/layers/scrollbar_layer_impl_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include "cc/trees/effect_node.h" 8 #include "cc/trees/effect_node.h"
9 #include "cc/trees/layer_tree_impl.h" 9 #include "cc/trees/layer_tree_impl.h"
10 #include "ui/gfx/geometry/rect_conversions.h" 10 #include "ui/gfx/geometry/rect_conversions.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 ScrollbarLayerImplBase::ScrollbarLayerImplBase( 14 ScrollbarLayerImplBase::ScrollbarLayerImplBase(
15 LayerTreeImpl* tree_impl, 15 LayerTreeImpl* tree_impl,
16 int id, 16 int id,
17 ScrollbarOrientation orientation, 17 ScrollbarOrientation orientation,
18 bool is_left_side_vertical_scrollbar, 18 bool is_left_side_vertical_scrollbar,
19 bool is_overlay) 19 bool is_overlay)
20 : LayerImpl(tree_impl, id), 20 : LayerImpl(tree_impl, id),
21 scroll_element_id_(kInvalidElementId),
21 is_overlay_scrollbar_(is_overlay), 22 is_overlay_scrollbar_(is_overlay),
22 thumb_thickness_scale_factor_(1.f), 23 thumb_thickness_scale_factor_(1.f),
23 current_pos_(0.f), 24 current_pos_(0.f),
24 clip_layer_length_(0.f), 25 clip_layer_length_(0.f),
25 scroll_layer_length_(0.f), 26 scroll_layer_length_(0.f),
26 orientation_(orientation), 27 orientation_(orientation),
27 is_left_side_vertical_scrollbar_(is_left_side_vertical_scrollbar), 28 is_left_side_vertical_scrollbar_(is_left_side_vertical_scrollbar),
28 vertical_adjust_(0.f) {} 29 vertical_adjust_(0.f) {}
29 30
30 ScrollbarLayerImplBase::~ScrollbarLayerImplBase() { 31 ScrollbarLayerImplBase::~ScrollbarLayerImplBase() {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 layer_tree_impl()->AddToOpacityAnimationsMap(id(), opacity); 243 layer_tree_impl()->AddToOpacityAnimationsMap(id(), opacity);
243 244
244 node->opacity = opacity; 245 node->opacity = opacity;
245 node->effect_changed = true; 246 node->effect_changed = true;
246 property_trees->changed = true; 247 property_trees->changed = true;
247 property_trees->effect_tree.set_needs_update(true); 248 property_trees->effect_tree.set_needs_update(true);
248 layer_tree_impl()->set_needs_update_draw_properties(); 249 layer_tree_impl()->set_needs_update_draw_properties();
249 } 250 }
250 251
251 } // namespace cc 252 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698