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

Unified Diff: components/mus/public/cpp/surfaces/tests/surface_unittest.cc

Issue 2075853004: Implement SharedQuadStateList StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sky's comments Created 4 years, 6 months 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 | « components/mus/public/cpp/surfaces/surfaces_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/surfaces/tests/surface_unittest.cc
diff --git a/components/mus/public/cpp/surfaces/tests/surface_unittest.cc b/components/mus/public/cpp/surfaces/tests/surface_unittest.cc
index cdf539f359f05d9f95aa838078b870f6ecec9e77..aa5ed1c29b251652e3bfc64542293a65607b9872 100644
--- a/components/mus/public/cpp/surfaces/tests/surface_unittest.cc
+++ b/components/mus/public/cpp/surfaces/tests/surface_unittest.cc
@@ -152,7 +152,7 @@ TEST_F(SurfaceLibQuadTest, TextureQuadEmptyVertexOpacity) {
mus_pass->id.layer_id = 1;
mus_pass->id.index = 1u;
mus_pass->quads.push_back(std::move(mus_texture_quad));
- mus_pass->shared_quad_states.push_back(cc::SharedQuadState());
+ mus_pass->shared_quad_states.AllocateAndConstruct<cc::SharedQuadState>();
std::unique_ptr<cc::RenderPass> pass =
mus_pass.To<std::unique_ptr<cc::RenderPass>>();
« no previous file with comments | « components/mus/public/cpp/surfaces/surfaces_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698