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

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

Issue 2892853002: Bit-pack bools in scroll and effect nodes. (Closed)
Patch Set: Fix init order. Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/scroll_node.h » ('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 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 25 matching lines...) Expand all
36 FilterOperations filters; 36 FilterOperations filters;
37 FilterOperations background_filters; 37 FilterOperations background_filters;
38 gfx::PointF filters_origin; 38 gfx::PointF filters_origin;
39 39
40 SkBlendMode blend_mode; 40 SkBlendMode blend_mode;
41 41
42 gfx::Vector2dF surface_contents_scale; 42 gfx::Vector2dF surface_contents_scale;
43 43
44 gfx::Size unscaled_mask_target_size; 44 gfx::Size unscaled_mask_target_size;
45 45
46 bool has_render_surface; 46 bool has_render_surface : 1;
47 bool has_copy_request; 47 bool has_copy_request : 1;
48 bool hidden_by_backface_visibility; 48 bool hidden_by_backface_visibility : 1;
49 bool double_sided; 49 bool double_sided : 1;
50 bool is_drawn; 50 bool is_drawn : 1;
51 // TODO(jaydasika) : Delete this after implementation of 51 // TODO(jaydasika) : Delete this after implementation of
52 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) 52 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843)
53 bool subtree_hidden; 53 bool subtree_hidden : 1;
54 bool has_potential_filter_animation; 54 bool has_potential_filter_animation : 1;
55 bool has_potential_opacity_animation; 55 bool has_potential_opacity_animation : 1;
56 bool is_currently_animating_filter; 56 bool is_currently_animating_filter : 1;
57 bool is_currently_animating_opacity; 57 bool is_currently_animating_opacity : 1;
58 // We need to track changes to effects on the compositor to compute damage 58 // We need to track changes to effects on the compositor to compute damage
59 // rect. 59 // rect.
60 bool effect_changed; 60 bool effect_changed : 1;
61 bool subtree_has_copy_request; 61 bool subtree_has_copy_request : 1;
62 int transform_id; 62 int transform_id;
63 int clip_id; 63 int clip_id;
64 64
65 // This is the id of the ancestor effect node that induces a 65 // This is the id of the ancestor effect node that induces a
66 // RenderSurfaceImpl. 66 // RenderSurfaceImpl.
67 int target_id; 67 int target_id;
68 int mask_layer_id; 68 int mask_layer_id;
69 int closest_ancestor_with_copy_request_id; 69 int closest_ancestor_with_copy_request_id;
70 70
71 bool operator==(const EffectNode& other) const; 71 bool operator==(const EffectNode& other) const;
72 72
73 void AsValueInto(base::trace_event::TracedValue* value) const; 73 void AsValueInto(base::trace_event::TracedValue* value) const;
74 }; 74 };
75 75
76 } // namespace cc 76 } // namespace cc
77 77
78 #endif // CC_TREES_EFFECT_NODE_H_ 78 #endif // CC_TREES_EFFECT_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/scroll_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698