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

Unified Diff: cc/layers/layer_impl.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_impl.h ('k') | cc/layers/render_surface_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index e46f4db9cdcf3f8c4f86b43ec82f22f1b3c946ab..eaf9b4c16989fc63610ce7c387e3d7007909e6ee 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -30,7 +30,6 @@
#include "ui/gfx/rect_conversions.h"
namespace cc {
-
LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
: parent_(NULL),
scroll_parent_(NULL),
@@ -47,14 +46,11 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
have_wheel_event_handlers_(false),
user_scrollable_horizontal_(true),
user_scrollable_vertical_(true),
- background_color_(0),
stacking_order_changed_(false),
double_sided_(true),
layer_property_changed_(false),
masks_to_bounds_(false),
contents_opaque_(false),
- opacity_(1.0),
- blend_mode_(SkXfermode::kSrcOver_Mode),
is_root_for_isolated_group_(false),
preserves_3d_(false),
use_parent_backface_visibility_(false),
@@ -63,6 +59,9 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
hide_layer_and_subtree_(false),
force_render_surface_(false),
is_container_for_fixed_position_layers_(false),
+ background_color_(0),
+ opacity_(1.0),
+ blend_mode_(SkXfermode::kSrcOver_Mode),
draw_depth_(0.f),
compositing_reasons_(kCompositingReasonUnknown),
current_draw_mode_(DRAW_MODE_NONE),
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/render_surface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698