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

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

Issue 2067783002: cc: Calculate visible rect inside non root copy request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rectF
Patch Set: edit comment to be more explicit 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
« 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); 624 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node);
625 625
626 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); 626 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request);
627 void PushCopyRequestsTo(EffectTree* other_tree); 627 void PushCopyRequestsTo(EffectTree* other_tree);
628 void TakeCopyRequestsAndTransformToSurface( 628 void TakeCopyRequestsAndTransformToSurface(
629 int node_id, 629 int node_id,
630 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); 630 std::vector<std::unique_ptr<CopyOutputRequest>>* requests);
631 bool HasCopyRequests() const; 631 bool HasCopyRequests() const;
632 void ClearCopyRequests(); 632 void ClearCopyRequests();
633 633
634 int ClosestAncestorWithCopyRequest(int id) const;
635
634 void AddMaskOrReplicaLayerId(int id); 636 void AddMaskOrReplicaLayerId(int id);
635 const std::vector<int>& mask_replica_layer_ids() const { 637 const std::vector<int>& mask_replica_layer_ids() const {
636 return mask_replica_layer_ids_; 638 return mask_replica_layer_ids_;
637 } 639 }
638 640
639 bool ContributesToDrawnSurface(int id); 641 bool ContributesToDrawnSurface(int id);
640 642
641 void ResetChangeTracking(); 643 void ResetChangeTracking();
642 644
643 void ToProtobuf(proto::PropertyTree* proto) const; 645 void ToProtobuf(proto::PropertyTree* proto) const;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 790
789 private: 791 private:
790 gfx::Vector2dF inner_viewport_container_bounds_delta_; 792 gfx::Vector2dF inner_viewport_container_bounds_delta_;
791 gfx::Vector2dF outer_viewport_container_bounds_delta_; 793 gfx::Vector2dF outer_viewport_container_bounds_delta_;
792 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 794 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
793 }; 795 };
794 796
795 } // namespace cc 797 } // namespace cc
796 798
797 #endif // CC_TREES_PROPERTY_TREE_H_ 799 #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