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

Side by Side Diff: cc/trees/property_tree.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/mutator_host_client.h ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_TREES_PROPERTY_TREE_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_H_
6 #define CC_TREES_PROPERTY_TREE_H_ 6 #define CC_TREES_PROPERTY_TREE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <unordered_map> 11 #include <unordered_map>
12 #include <vector> 12 #include <vector>
13 13
14 #include "cc/animation/element_id.h"
14 #include "cc/base/cc_export.h" 15 #include "cc/base/cc_export.h"
15 #include "cc/base/synced_property.h" 16 #include "cc/base/synced_property.h"
16 #include "cc/output/filter_operations.h" 17 #include "cc/output/filter_operations.h"
17 #include "ui/gfx/geometry/rect_f.h" 18 #include "ui/gfx/geometry/rect_f.h"
18 #include "ui/gfx/geometry/scroll_offset.h" 19 #include "ui/gfx/geometry/scroll_offset.h"
19 #include "ui/gfx/transform.h" 20 #include "ui/gfx/transform.h"
20 21
21 namespace base { 22 namespace base {
22 namespace trace_event { 23 namespace trace_event {
23 class TracedValue; 24 class TracedValue;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 bool contains_non_fast_scrollable_region; 333 bool contains_non_fast_scrollable_region;
333 gfx::Size scroll_clip_layer_bounds; 334 gfx::Size scroll_clip_layer_bounds;
334 gfx::Size bounds; 335 gfx::Size bounds;
335 bool max_scroll_offset_affected_by_page_scale; 336 bool max_scroll_offset_affected_by_page_scale;
336 bool is_inner_viewport_scroll_layer; 337 bool is_inner_viewport_scroll_layer;
337 bool is_outer_viewport_scroll_layer; 338 bool is_outer_viewport_scroll_layer;
338 gfx::Vector2dF offset_to_transform_parent; 339 gfx::Vector2dF offset_to_transform_parent;
339 bool should_flatten; 340 bool should_flatten;
340 bool user_scrollable_horizontal; 341 bool user_scrollable_horizontal;
341 bool user_scrollable_vertical; 342 bool user_scrollable_vertical;
342 int element_id; 343 ElementId element_id;
343 int transform_id; 344 int transform_id;
344 // Number of drawn layers pointing to this node or any of its descendants. 345 // Number of drawn layers pointing to this node or any of its descendants.
345 int num_drawn_descendants; 346 int num_drawn_descendants;
346 347
347 bool operator==(const ScrollNodeData& other) const; 348 bool operator==(const ScrollNodeData& other) const;
348 349
349 void ToProtobuf(proto::TreeNode* proto) const; 350 void ToProtobuf(proto::TreeNode* proto) const;
350 void FromProtobuf(const proto::TreeNode& proto); 351 void FromProtobuf(const proto::TreeNode& proto);
351 void AsValueInto(base::trace_event::TracedValue* value) const; 352 void AsValueInto(base::trace_event::TracedValue* value) const;
352 }; 353 };
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 793
793 private: 794 private:
794 gfx::Vector2dF inner_viewport_container_bounds_delta_; 795 gfx::Vector2dF inner_viewport_container_bounds_delta_;
795 gfx::Vector2dF outer_viewport_container_bounds_delta_; 796 gfx::Vector2dF outer_viewport_container_bounds_delta_;
796 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 797 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
797 }; 798 };
798 799
799 } // namespace cc 800 } // namespace cc
800 801
801 #endif // CC_TREES_PROPERTY_TREE_H_ 802 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/mutator_host_client.h ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698