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

Unified Diff: cc/trees/property_tree.h

Issue 2017263002: cc: Move copy requests from layers to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 years, 7 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/occlusion_tracker_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 5cbcf7e258132630aa12dde36ca90fe8cd506b86..4264a1c6962fb911ae170753e3f01bf2751dce09 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -36,6 +36,7 @@ class TransformTreeData;
class TreeNode;
}
+class CopyOutputRequest;
class LayerTreeImpl;
class RenderSurfaceImpl;
class ScrollState;
@@ -570,6 +571,10 @@ class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {
class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
public:
+ EffectTree();
+ ~EffectTree();
+
+ EffectTree& operator=(const EffectTree& from);
bool operator==(const EffectTree& other) const;
float EffectiveOpacity(const EffectNode* node) const;
@@ -578,6 +583,12 @@ class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node);
+ void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request);
+ void PushCopyRequestsTo(EffectTree* other_tree);
+ void TakeCopyRequestsAndTransformToSurface(
+ int node_id,
+ std::vector<std::unique_ptr<CopyOutputRequest>>* requests);
+ bool HasCopyRequests() const;
void ClearCopyRequests();
bool ContributesToDrawnSurface(int id);
@@ -592,6 +603,10 @@ class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
void UpdateOpacities(EffectNode* node, EffectNode* parent_node);
void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node);
void UpdateBackfaceVisibility(EffectNode* node, EffectNode* parent_node);
+
+ // Stores copy requests, keyed by node id.
+ std::unordered_multimap<int, std::unique_ptr<CopyOutputRequest>>
+ copy_requests_;
};
class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> {
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698