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

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

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix compile error. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_EFFECT_NODE_H_ 5 #ifndef CC_TREES_EFFECT_NODE_H_
6 #define CC_TREES_EFFECT_NODE_H_ 6 #define CC_TREES_EFFECT_NODE_H_
7 7
8 #include "cc/base/filter_operations.h" 8 #include "cc/base/filter_operations.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "third_party/skia/include/core/SkBlendMode.h" 10 #include "third_party/skia/include/core/SkBlendMode.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 FilterOperations background_filters; 42 FilterOperations background_filters;
43 gfx::PointF filters_origin; 43 gfx::PointF filters_origin;
44 44
45 SkBlendMode blend_mode; 45 SkBlendMode blend_mode;
46 46
47 gfx::Vector2dF surface_contents_scale; 47 gfx::Vector2dF surface_contents_scale;
48 48
49 gfx::Size unscaled_mask_target_size; 49 gfx::Size unscaled_mask_target_size;
50 50
51 bool has_render_surface : 1; 51 bool has_render_surface : 1;
52 bool cache_render_surface : 1;
52 bool has_copy_request : 1; 53 bool has_copy_request : 1;
53 bool hidden_by_backface_visibility : 1; 54 bool hidden_by_backface_visibility : 1;
54 bool double_sided : 1; 55 bool double_sided : 1;
55 bool is_drawn : 1; 56 bool is_drawn : 1;
56 // TODO(jaydasika) : Delete this after implementation of 57 // TODO(jaydasika) : Delete this after implementation of
57 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) 58 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843)
58 bool subtree_hidden : 1; 59 bool subtree_hidden : 1;
59 // Whether this node has a potentially running (i.e., irrespective 60 // Whether this node has a potentially running (i.e., irrespective
60 // of exact timeline) filter animation. 61 // of exact timeline) filter animation.
61 bool has_potential_filter_animation : 1; 62 bool has_potential_filter_animation : 1;
(...skipping 14 matching lines...) Expand all
76 // The clip node index of the clip to apply to this effect node's 77 // The clip node index of the clip to apply to this effect node's
77 // content when rendering to a surface. 78 // content when rendering to a surface.
78 int clip_id; 79 int clip_id;
79 80
80 // This is the id of the ancestor effect node that induces a 81 // This is the id of the ancestor effect node that induces a
81 // RenderSurfaceImpl. 82 // RenderSurfaceImpl.
82 int target_id; 83 int target_id;
83 // The layer id of the mask layer, if any, to apply to this effect 84 // The layer id of the mask layer, if any, to apply to this effect
84 // node's content when rendering to a surface. 85 // node's content when rendering to a surface.
85 int mask_layer_id; 86 int mask_layer_id;
87 int closest_ancestor_with_cache_render_surface_id;
vmpstr 2017/07/13 18:01:03 nit: s/cache/cached/?
wutao 2017/07/14 00:02:54 Done.
86 int closest_ancestor_with_copy_request_id; 88 int closest_ancestor_with_copy_request_id;
87 89
88 bool operator==(const EffectNode& other) const; 90 bool operator==(const EffectNode& other) const;
89 91
90 void AsValueInto(base::trace_event::TracedValue* value) const; 92 void AsValueInto(base::trace_event::TracedValue* value) const;
91 }; 93 };
92 94
93 } // namespace cc 95 } // namespace cc
94 96
95 #endif // CC_TREES_EFFECT_NODE_H_ 97 #endif // CC_TREES_EFFECT_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698