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

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

Issue 2118993002: Detemplatize cc property nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/effect_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TREES_EFFECT_NODE_H_
6 #define CC_TREES_EFFECT_NODE_H_
7
8 #include "cc/base/cc_export.h"
9 #include "cc/output/filter_operations.h"
10
11 namespace base {
12 namespace trace_event {
13 class TracedValue;
14 } // namespace trace_event
15 } // namespace base
16
17 namespace cc {
18
19 class RenderSurfaceImpl;
20
21 namespace proto {
22 class TreeNode;
23 } // namespace proto
24
25 struct CC_EXPORT EffectNode {
26 EffectNode();
27 EffectNode(const EffectNode& other);
28
29 int id;
30 int parent_id;
31 int owner_id;
32
33 float opacity;
34 float screen_space_opacity;
35
36 FilterOperations background_filters;
37
38 gfx::Vector2dF sublayer_scale;
39
40 bool has_render_surface;
41 RenderSurfaceImpl* render_surface;
42 bool has_copy_request;
43 bool hidden_by_backface_visibility;
44 bool double_sided;
45 bool is_drawn;
46 // TODO(jaydasika) : Delete this after implementation of
47 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843)
48 bool subtree_hidden;
49 bool has_potential_opacity_animation;
50 bool is_currently_animating_opacity;
51 // We need to track changes to effects on the compositor to compute damage
52 // rect.
53 bool effect_changed;
54 int num_copy_requests_in_subtree;
55 bool has_unclipped_descendants;
56 int transform_id;
57 int clip_id;
58 // Effect node id of which this effect contributes to.
59 int target_id;
60 int mask_layer_id;
61 int replica_layer_id;
62 int replica_mask_layer_id;
63
64 bool operator==(const EffectNode& other) const;
65
66 void ToProtobuf(proto::TreeNode* proto) const;
67 void FromProtobuf(const proto::TreeNode& proto);
68 void AsValueInto(base::trace_event::TracedValue* value) const;
69 };
70
71 } // namespace cc
72
73 #endif // CC_TREES_EFFECT_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/effect_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698