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

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

Issue 2345793003: Include viewport clip in visible rect of unclipped surfaces (2) (Closed)
Patch Set: delete test 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 | « cc/trees/layer_tree_host_common_unittest.cc ('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>
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 std::vector<TransformCachedNodeData> cached_data_; 305 std::vector<TransformCachedNodeData> cached_data_;
306 }; 306 };
307 307
308 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> { 308 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {
309 public: 309 public:
310 bool operator==(const ClipTree& other) const; 310 bool operator==(const ClipTree& other) const;
311 311
312 static const int kViewportNodeId = 1; 312 static const int kViewportNodeId = 1;
313 313
314 void SetViewportClip(gfx::RectF viewport_rect); 314 void SetViewportClip(gfx::RectF viewport_rect);
315 gfx::RectF ViewportClip(); 315 gfx::RectF ViewportClip() const;
316 316
317 void ToProtobuf(proto::PropertyTree* proto) const; 317 void ToProtobuf(proto::PropertyTree* proto) const;
318 void FromProtobuf(const proto::PropertyTree& proto, 318 void FromProtobuf(const proto::PropertyTree& proto,
319 std::unordered_map<int, int>* node_id_to_index_map); 319 std::unordered_map<int, int>* node_id_to_index_map);
320 }; 320 };
321 321
322 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { 322 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
323 public: 323 public:
324 EffectTree(); 324 EffectTree();
325 ~EffectTree(); 325 ~EffectTree();
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 gfx::Vector2dF inner_viewport_container_bounds_delta_; 627 gfx::Vector2dF inner_viewport_container_bounds_delta_;
628 gfx::Vector2dF outer_viewport_container_bounds_delta_; 628 gfx::Vector2dF outer_viewport_container_bounds_delta_;
629 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 629 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
630 630
631 PropertyTreesCachedData cached_data_; 631 PropertyTreesCachedData cached_data_;
632 }; 632 };
633 633
634 } // namespace cc 634 } // namespace cc
635 635
636 #endif // CC_TREES_PROPERTY_TREE_H_ 636 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698