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

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: respond to reviewer feedback. Created 4 years, 6 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 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 "ui/gfx/geometry/rect_f.h" 17 #include "ui/gfx/geometry/rect_f.h"
17 #include "ui/gfx/geometry/scroll_offset.h" 18 #include "ui/gfx/geometry/scroll_offset.h"
18 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
19 20
20 namespace base { 21 namespace base {
21 namespace trace_event { 22 namespace trace_event {
22 class TracedValue; 23 class TracedValue;
23 } 24 }
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 bool contains_non_fast_scrollable_region; 318 bool contains_non_fast_scrollable_region;
318 gfx::Size scroll_clip_layer_bounds; 319 gfx::Size scroll_clip_layer_bounds;
319 gfx::Size bounds; 320 gfx::Size bounds;
320 bool max_scroll_offset_affected_by_page_scale; 321 bool max_scroll_offset_affected_by_page_scale;
321 bool is_inner_viewport_scroll_layer; 322 bool is_inner_viewport_scroll_layer;
322 bool is_outer_viewport_scroll_layer; 323 bool is_outer_viewport_scroll_layer;
323 gfx::Vector2dF offset_to_transform_parent; 324 gfx::Vector2dF offset_to_transform_parent;
324 bool should_flatten; 325 bool should_flatten;
325 bool user_scrollable_horizontal; 326 bool user_scrollable_horizontal;
326 bool user_scrollable_vertical; 327 bool user_scrollable_vertical;
327 int element_id; 328 ElementId element_id;
328 int transform_id; 329 int transform_id;
329 // Number of drawn layers pointing to this node or any of its descendants. 330 // Number of drawn layers pointing to this node or any of its descendants.
330 int num_drawn_descendants; 331 int num_drawn_descendants;
331 332
332 bool operator==(const ScrollNodeData& other) const; 333 bool operator==(const ScrollNodeData& other) const;
333 334
334 void ToProtobuf(proto::TreeNode* proto) const; 335 void ToProtobuf(proto::TreeNode* proto) const;
335 void FromProtobuf(const proto::TreeNode& proto); 336 void FromProtobuf(const proto::TreeNode& proto);
336 void AsValueInto(base::trace_event::TracedValue* value) const; 337 void AsValueInto(base::trace_event::TracedValue* value) const;
337 }; 338 };
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 740
740 private: 741 private:
741 gfx::Vector2dF inner_viewport_container_bounds_delta_; 742 gfx::Vector2dF inner_viewport_container_bounds_delta_;
742 gfx::Vector2dF outer_viewport_container_bounds_delta_; 743 gfx::Vector2dF outer_viewport_container_bounds_delta_;
743 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 744 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
744 }; 745 };
745 746
746 } // namespace cc 747 } // namespace cc
747 748
748 #endif // CC_TREES_PROPERTY_TREE_H_ 749 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698