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

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

Issue 2492133002: CC Animation: Move ElementId from animation to trees. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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 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/animation/element_id.h"
7 #include "cc/base/math_util.h" 6 #include "cc/base/math_util.h"
8 #include "cc/input/main_thread_scrolling_reason.h" 7 #include "cc/input/main_thread_scrolling_reason.h"
9 #include "cc/proto/gfx_conversions.h" 8 #include "cc/proto/gfx_conversions.h"
9 #include "cc/trees/element_id.h"
10 #include "cc/trees/scroll_node.h" 10 #include "cc/trees/scroll_node.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 ScrollNode::ScrollNode() 14 ScrollNode::ScrollNode()
15 : id(-1), 15 : id(-1),
16 parent_id(-1), 16 parent_id(-1),
17 owner_id(-1), 17 owner_id(-1),
18 scrollable(false), 18 scrollable(false),
19 main_thread_scrolling_reasons( 19 main_thread_scrolling_reasons(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 offset_to_transform_parent, value); 63 offset_to_transform_parent, value);
64 value->SetBoolean("should_flatten", should_flatten); 64 value->SetBoolean("should_flatten", should_flatten);
65 value->SetBoolean("user_scrollable_horizontal", user_scrollable_horizontal); 65 value->SetBoolean("user_scrollable_horizontal", user_scrollable_horizontal);
66 value->SetBoolean("user_scrollable_vertical", user_scrollable_vertical); 66 value->SetBoolean("user_scrollable_vertical", user_scrollable_vertical);
67 67
68 element_id.AddToTracedValue(value); 68 element_id.AddToTracedValue(value);
69 value->SetInteger("transform_id", transform_id); 69 value->SetInteger("transform_id", transform_id);
70 } 70 }
71 71
72 } // namespace cc 72 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/property_tree.h ('k') | third_party/WebKit/Source/platform/graphics/CompositorElementId.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698