@@ -80,8 +80,8 @@ TEST_P(AiksTest, RotateColorFilteredPath) {
8080 ColorFilter::MakeBlend (BlendMode::kSourceIn , Color::AliceBlue ()),
8181 };
8282
83- canvas.DrawPath (arrow_stem, paint);
84- canvas.DrawPath (arrow_head, paint);
83+ canvas.DrawPath (std::move ( arrow_stem) , paint);
84+ canvas.DrawPath (std::move ( arrow_head) , paint);
8585 ASSERT_TRUE (OpenPlaygroundHere (canvas.EndRecordingAsPicture ()));
8686}
8787
@@ -1266,7 +1266,7 @@ TEST_P(AiksTest, CanRenderRoundedRectWithNonUniformRadii) {
12661266 .AddRoundedRect (Rect::MakeXYWH (100 , 100 , 500 , 500 ), radii)
12671267 .TakePath ();
12681268
1269- canvas.DrawPath (path, paint);
1269+ canvas.DrawPath (std::move ( path) , paint);
12701270
12711271 ASSERT_TRUE (OpenPlaygroundHere (canvas.EndRecordingAsPicture ()));
12721272}
@@ -1323,7 +1323,7 @@ TEST_P(AiksTest, CanRenderDifferencePaths) {
13231323 canvas.DrawImage (
13241324 std::make_shared<Image>(CreateTextureForFixture (" boston.jpg" )), {10 , 10 },
13251325 Paint{});
1326- canvas.DrawPath (path, paint);
1326+ canvas.DrawPath (std::move ( path) , paint);
13271327
13281328 ASSERT_TRUE (OpenPlaygroundHere (canvas.EndRecordingAsPicture ()));
13291329}
@@ -1984,7 +1984,7 @@ TEST_P(AiksTest, SolidStrokesRenderCorrectly) {
19841984 paint.stroke_join = join;
19851985 for (auto cap : {Cap::kButt , Cap::kSquare , Cap::kRound }) {
19861986 paint.stroke_cap = cap;
1987- canvas.DrawPath (path, paint);
1987+ canvas.DrawPath (path. Clone () , paint);
19881988 canvas.Translate ({80 , 0 });
19891989 }
19901990 canvas.Translate ({-240 , 60 });
@@ -2248,7 +2248,7 @@ TEST_P(AiksTest, GradientStrokesRenderCorrectly) {
22482248 paint.stroke_join = join;
22492249 for (auto cap : {Cap::kButt , Cap::kSquare , Cap::kRound }) {
22502250 paint.stroke_cap = cap;
2251- canvas.DrawPath (path, paint);
2251+ canvas.DrawPath (path. Clone () , paint);
22522252 canvas.Translate ({80 , 0 });
22532253 }
22542254 canvas.Translate ({-240 , 60 });
@@ -2980,7 +2980,7 @@ TEST_P(AiksTest, ImageFilteredSaveLayerWithUnboundedContents) {
29802980 .TakePath ();
29812981 Paint paint = p;
29822982 paint.style = Paint::Style::kStroke ;
2983- canvas.DrawPath (path, paint);
2983+ canvas.DrawPath (std::move ( path) , paint);
29842984 };
29852985 // Registration marks for the edge of the SaveLayer
29862986 DrawLine (Point (75 , 100 ), Point (225 , 100 ), {.color = Color::White ()});
0 commit comments