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

Side by Side Diff: cc/trees/scroll_node.cc

Issue 2892853002: Bit-pack bools in scroll and effect nodes. (Closed)
Patch Set: Fix init order. 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
« no previous file with comments | « cc/trees/scroll_node.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "base/trace_event/trace_event_argument.h" 5 #include "base/trace_event/trace_event_argument.h"
6 #include "cc/base/math_util.h" 6 #include "cc/base/math_util.h"
7 #include "cc/input/main_thread_scrolling_reason.h" 7 #include "cc/input/main_thread_scrolling_reason.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "cc/trees/element_id.h" 9 #include "cc/trees/element_id.h"
10 #include "cc/trees/property_tree.h" 10 #include "cc/trees/property_tree.h"
11 #include "cc/trees/scroll_node.h" 11 #include "cc/trees/scroll_node.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 ScrollNode::ScrollNode() 15 ScrollNode::ScrollNode()
16 : id(ScrollTree::kInvalidNodeId), 16 : id(ScrollTree::kInvalidNodeId),
17 parent_id(ScrollTree::kInvalidNodeId), 17 parent_id(ScrollTree::kInvalidNodeId),
18 owning_layer_id(Layer::INVALID_ID), 18 owning_layer_id(Layer::INVALID_ID),
19 scrollable(false),
20 main_thread_scrolling_reasons( 19 main_thread_scrolling_reasons(
21 MainThreadScrollingReason::kNotScrollingOnMain), 20 MainThreadScrollingReason::kNotScrollingOnMain),
21 scrollable(false),
22 max_scroll_offset_affected_by_page_scale(false), 22 max_scroll_offset_affected_by_page_scale(false),
23 scrolls_inner_viewport(false), 23 scrolls_inner_viewport(false),
24 scrolls_outer_viewport(false), 24 scrolls_outer_viewport(false),
25 should_flatten(false), 25 should_flatten(false),
26 user_scrollable_horizontal(false), 26 user_scrollable_horizontal(false),
27 user_scrollable_vertical(false), 27 user_scrollable_vertical(false),
28 transform_id(0) {} 28 transform_id(0) {}
29 29
30 ScrollNode::ScrollNode(const ScrollNode& other) = default; 30 ScrollNode::ScrollNode(const ScrollNode& other) = default;
31 31
(...skipping 28 matching lines...) Expand all
60 offset_to_transform_parent, value); 60 offset_to_transform_parent, value);
61 value->SetBoolean("should_flatten", should_flatten); 61 value->SetBoolean("should_flatten", should_flatten);
62 value->SetBoolean("user_scrollable_horizontal", user_scrollable_horizontal); 62 value->SetBoolean("user_scrollable_horizontal", user_scrollable_horizontal);
63 value->SetBoolean("user_scrollable_vertical", user_scrollable_vertical); 63 value->SetBoolean("user_scrollable_vertical", user_scrollable_vertical);
64 64
65 element_id.AddToTracedValue(value); 65 element_id.AddToTracedValue(value);
66 value->SetInteger("transform_id", transform_id); 66 value->SetInteger("transform_id", transform_id);
67 } 67 }
68 68
69 } // namespace cc 69 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/scroll_node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698