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

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

Issue 2340663002: Add scroll_offset and scroll_snap to transform_node's traced value (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | 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/proto/gfx_conversions.h" 7 #include "cc/proto/gfx_conversions.h"
8 #include "cc/proto/property_tree.pb.h" 8 #include "cc/proto/property_tree.pb.h"
9 #include "cc/trees/transform_node.h" 9 #include "cc/trees/transform_node.h"
10 #include "ui/gfx/geometry/point3_f.h" 10 #include "ui/gfx/geometry/point3_f.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 value->SetInteger("parent_id", parent_id); 224 value->SetInteger("parent_id", parent_id);
225 value->SetInteger("owner_id", owner_id); 225 value->SetInteger("owner_id", owner_id);
226 MathUtil::AddToTracedValue("pre_local", pre_local, value); 226 MathUtil::AddToTracedValue("pre_local", pre_local, value);
227 MathUtil::AddToTracedValue("local", local, value); 227 MathUtil::AddToTracedValue("local", local, value);
228 MathUtil::AddToTracedValue("post_local", post_local, value); 228 MathUtil::AddToTracedValue("post_local", post_local, value);
229 // TODO(sunxd): make frameviewer work without target_id 229 // TODO(sunxd): make frameviewer work without target_id
230 value->SetInteger("target_id", 0); 230 value->SetInteger("target_id", 0);
231 value->SetInteger("content_target_id", 0); 231 value->SetInteger("content_target_id", 0);
232 value->SetInteger("source_node_id", source_node_id); 232 value->SetInteger("source_node_id", source_node_id);
233 value->SetInteger("sorting_context_id", sorting_context_id); 233 value->SetInteger("sorting_context_id", sorting_context_id);
234 MathUtil::AddToTracedValue("scroll_offset", scroll_offset, value);
235 MathUtil::AddToTracedValue("scroll_snap", scroll_snap, value);
234 } 236 }
235 237
236 TransformCachedNodeData::TransformCachedNodeData() 238 TransformCachedNodeData::TransformCachedNodeData()
237 : target_id(-1), content_target_id(-1) {} 239 : target_id(-1), content_target_id(-1) {}
238 240
239 TransformCachedNodeData::TransformCachedNodeData( 241 TransformCachedNodeData::TransformCachedNodeData(
240 const TransformCachedNodeData& other) = default; 242 const TransformCachedNodeData& other) = default;
241 243
242 TransformCachedNodeData::~TransformCachedNodeData() {} 244 TransformCachedNodeData::~TransformCachedNodeData() {}
243 245
(...skipping 19 matching lines...) Expand all
263 const proto::TransformCachedNodeData& proto) { 265 const proto::TransformCachedNodeData& proto) {
264 from_target = ProtoToTransform(proto.from_target()); 266 from_target = ProtoToTransform(proto.from_target());
265 to_target = ProtoToTransform(proto.to_target()); 267 to_target = ProtoToTransform(proto.to_target());
266 from_screen = ProtoToTransform(proto.from_screen()); 268 from_screen = ProtoToTransform(proto.from_screen());
267 to_screen = ProtoToTransform(proto.to_screen()); 269 to_screen = ProtoToTransform(proto.to_screen());
268 target_id = proto.target_id(); 270 target_id = proto.target_id();
269 content_target_id = proto.content_target_id(); 271 content_target_id = proto.content_target_id();
270 } 272 }
271 273
272 } // namespace cc 274 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698