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

Unified Diff: cc/layers/layer.cc

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 | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 3e14e7071ece7f8aafe66e5b630c28c09dd5f7e9..f7682fd912fd8dca3642345973bb93abec30e2df 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -44,13 +44,7 @@ Layer::Layer()
have_wheel_event_handlers_(false),
user_scrollable_horizontal_(true),
user_scrollable_vertical_(true),
- anchor_point_(0.5f, 0.5f),
- background_color_(0),
- compositing_reasons_(kCompositingReasonUnknown),
- opacity_(1.f),
- blend_mode_(SkXfermode::kSrcOver_Mode),
is_root_for_isolated_group_(false),
- anchor_point_z_(0.f),
is_container_for_fixed_position_layers_(false),
is_drawable_(false),
hide_layer_and_subtree_(false),
@@ -61,6 +55,12 @@ Layer::Layer()
use_parent_backface_visibility_(false),
draw_checkerboard_for_missing_tiles_(false),
force_render_surface_(false),
+ anchor_point_(0.5f, 0.5f),
+ background_color_(0),
+ compositing_reasons_(kCompositingReasonUnknown),
+ opacity_(1.f),
+ blend_mode_(SkXfermode::kSrcOver_Mode),
+ anchor_point_z_(0.f),
scroll_parent_(NULL),
clip_parent_(NULL),
replica_layer_(NULL),
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698