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

Unified Diff: cc/trees/property_tree.h

Issue 1588093004: Compute if a layer is drawn without LayerTree hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 654b5e481f1f0b8780c98ee7552cb33c680abe95..e4dcaadfe82195fff6db7314c2eb9a189db09cf2 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -242,6 +242,10 @@ struct CC_EXPORT EffectNodeData {
float screen_space_opacity;
bool has_render_surface;
+ bool has_copy_request;
+ bool has_background_filters;
+ bool is_drawn;
+ bool screen_space_opacity_is_animating;
int num_copy_requests_in_subtree;
int transform_id;
int clip_id;
@@ -479,11 +483,14 @@ class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
void ClearCopyRequests();
+ bool ContributesToDrawnSurface(int id);
+
void ToProtobuf(proto::PropertyTree* proto) const;
void FromProtobuf(const proto::PropertyTree& proto);
private:
void UpdateOpacities(EffectNode* node, EffectNode* parent_node);
+ void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node);
};
class CC_EXPORT PropertyTrees final {

Powered by Google App Engine
This is Rietveld 408576698