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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/trees/scroll_node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/effect_node.h
diff --git a/cc/trees/effect_node.h b/cc/trees/effect_node.h
index 81ee42f1071f1964b371bee47d4f61cf9e043719..49dc56fa37a7568d3132bcfe8e258560a9c98162 100644
--- a/cc/trees/effect_node.h
+++ b/cc/trees/effect_node.h
@@ -43,22 +43,22 @@ struct CC_EXPORT EffectNode {
gfx::Size unscaled_mask_target_size;
- bool has_render_surface;
- bool has_copy_request;
- bool hidden_by_backface_visibility;
- bool double_sided;
- bool is_drawn;
+ bool has_render_surface : 1;
+ bool has_copy_request : 1;
+ bool hidden_by_backface_visibility : 1;
+ bool double_sided : 1;
+ bool is_drawn : 1;
// TODO(jaydasika) : Delete this after implementation of
// SetHideLayerAndSubtree is cleaned up. (crbug.com/595843)
- bool subtree_hidden;
- bool has_potential_filter_animation;
- bool has_potential_opacity_animation;
- bool is_currently_animating_filter;
- bool is_currently_animating_opacity;
+ bool subtree_hidden : 1;
+ bool has_potential_filter_animation : 1;
+ bool has_potential_opacity_animation : 1;
+ bool is_currently_animating_filter : 1;
+ bool is_currently_animating_opacity : 1;
// We need to track changes to effects on the compositor to compute damage
// rect.
- bool effect_changed;
- bool subtree_has_copy_request;
+ bool effect_changed : 1;
+ bool subtree_has_copy_request : 1;
int transform_id;
int clip_id;
« 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