diff --git cc/layers/layer.cc cc/layers/layer.cc index f51e5495d95f5..cd6c1bb02f50c 100644 --- cc/layers/layer.cc +++ cc/layers/layer.cc @@ -50,16 +50,18 @@ struct SameSizeAsLayer : public base::RefCounted, SameSizeAsLayer(); ~SameSizeAsLayer() override; - void* pointers[4]; + raw_ptr raw_pointers[2]; + std::unique_ptr unique_pointers[2]; struct { LayerList children; gfx::Size bounds; - unsigned bitfields; + HitTestOpaqueness hit_test_opaqueness; + bool bitfields; SkColor4f background_color; TouchActionRegion touch_action_region; ElementId element_id; - raw_ptr rare_inputs; + std::unique_ptr rare_inputs; } inputs; gfx::Rect update_rect; int int_fields[7];