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

Unified Diff: cc/trees/scroll_node.h

Issue 2118993002: Detemplatize cc property nodes (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | cc/trees/scroll_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/scroll_node.h
diff --git a/cc/trees/scroll_node.h b/cc/trees/scroll_node.h
new file mode 100644
index 0000000000000000000000000000000000000000..745ee69214c25d8bdf95c425fd97b4bcaa54af05
--- /dev/null
+++ b/cc/trees/scroll_node.h
@@ -0,0 +1,58 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TREES_SCROLL_NODE_H_
+#define CC_TREES_SCROLL_NODE_H_
+
+#include "cc/base/cc_export.h"
+#include "cc/output/filter_operations.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace base {
+namespace trace_event {
+class TracedValue;
+} // namespace trace_event
+} // namespace base
+
+namespace cc {
+
+namespace proto {
+class TreeNode;
+} // namespace proto
+
+struct CC_EXPORT ScrollNode {
+ ScrollNode();
+ ScrollNode(const ScrollNode& other);
+
+ int id;
+ int parent_id;
+ int owner_id;
+
+ bool scrollable;
+ uint32_t main_thread_scrolling_reasons;
+ bool contains_non_fast_scrollable_region;
+ gfx::Size scroll_clip_layer_bounds;
+ gfx::Size bounds;
+ bool max_scroll_offset_affected_by_page_scale;
+ bool is_inner_viewport_scroll_layer;
+ bool is_outer_viewport_scroll_layer;
+ gfx::Vector2dF offset_to_transform_parent;
+ bool should_flatten;
+ bool user_scrollable_horizontal;
+ bool user_scrollable_vertical;
+ ElementId element_id;
+ int transform_id;
+ // Number of drawn layers pointing to this node or any of its descendants.
+ int num_drawn_descendants;
+
+ bool operator==(const ScrollNode& other) const;
+
+ void ToProtobuf(proto::TreeNode* proto) const;
+ void FromProtobuf(const proto::TreeNode& proto);
+ void AsValueInto(base::trace_event::TracedValue* value) const;
+};
+
+} // namespace cc
+
+#endif // CC_TREES_SCROLL_NODE_H_
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | cc/trees/scroll_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698