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

Unified Diff: cc/layers/layer.h

Issue 102733006: Use bit fields inside cc to reduce memory usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified after the review comments! Created 7 years 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/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 59991e65fff846f98cbf9ad4817acb692d5b1880..f0bca17f47c4b50885199d8baba41b2578ce0b16 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -573,11 +573,22 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::Vector2d scroll_offset_;
gfx::Vector2d max_scroll_offset_;
- bool scrollable_;
- bool should_scroll_on_main_thread_;
- bool have_wheel_event_handlers_;
- bool user_scrollable_horizontal_;
- bool user_scrollable_vertical_;
+ bool scrollable_ : 1;
+ bool should_scroll_on_main_thread_ : 1;
+ bool have_wheel_event_handlers_ : 1;
+ bool user_scrollable_horizontal_ : 1;
+ bool user_scrollable_vertical_ : 1;
+ bool is_root_for_isolated_group_ : 1;
+ bool is_container_for_fixed_position_layers_ : 1;
+ bool is_drawable_ : 1;
+ bool hide_layer_and_subtree_ : 1;
+ bool masks_to_bounds_ : 1;
+ bool contents_opaque_ : 1;
+ bool double_sided_ : 1;
+ bool preserves_3d_ : 1;
+ bool use_parent_backface_visibility_ : 1;
+ bool draw_checkerboard_for_missing_tiles_ : 1;
+ bool force_render_surface_ : 1;
Region non_fast_scrollable_region_;
Region touch_event_handler_region_;
gfx::PointF position_;
@@ -586,21 +597,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
CompositingReasons compositing_reasons_;
float opacity_;
SkXfermode::Mode blend_mode_;
- bool is_root_for_isolated_group_;
FilterOperations filters_;
FilterOperations background_filters_;
float anchor_point_z_;
- bool is_container_for_fixed_position_layers_;
LayerPositionConstraint position_constraint_;
- bool is_drawable_;
- bool hide_layer_and_subtree_;
- bool masks_to_bounds_;
- bool contents_opaque_;
- bool double_sided_;
- bool preserves_3d_;
- bool use_parent_backface_visibility_;
- bool draw_checkerboard_for_missing_tiles_;
- bool force_render_surface_;
Layer* scroll_parent_;
scoped_ptr<std::set<Layer*> > scroll_children_;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698