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

Unified Diff: cc/layers/render_surface_impl.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 | « cc/layers/layer_impl.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl.h
diff --git a/cc/layers/render_surface_impl.h b/cc/layers/render_surface_impl.h
index 91f7d72880f9558d655241113cfc7aef6e7cf3da..c02a3194098027d74bda654561bff1550657ad91 100644
--- a/cc/layers/render_surface_impl.h
+++ b/cc/layers/render_surface_impl.h
@@ -145,19 +145,19 @@ class CC_EXPORT RenderSurfaceImpl {
// Uses this surface's space.
gfx::Rect content_rect_;
- bool surface_property_changed_;
+ bool surface_property_changed_ : 1;
+ bool draw_opacity_is_animating_ : 1;
+ bool target_surface_transforms_are_animating_ : 1;
+ bool screen_space_transforms_are_animating_ : 1;
+
+ bool is_clipped_ : 1;
+ bool contributes_to_drawn_surface_ : 1;
float draw_opacity_;
- bool draw_opacity_is_animating_;
gfx::Transform draw_transform_;
gfx::Transform screen_space_transform_;
gfx::Transform replica_draw_transform_;
gfx::Transform replica_screen_space_transform_;
- bool target_surface_transforms_are_animating_;
- bool screen_space_transforms_are_animating_;
-
- bool is_clipped_;
- bool contributes_to_drawn_surface_;
// Uses the space of the surface's target surface.
gfx::Rect clip_rect_;
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698