@@ -502,10 +502,9 @@ TEST_F(EntityTest, BlendingModeOptions) {
502
502
// test GUI.
503
503
504
504
const Entity::BlendMode b{};
505
- static_assert (
506
- b == Entity::BlendMode::kClear ); // Ensure the first item in
507
- // the switch is the first
508
- // item in the enum.
505
+ static_assert (b == Entity::BlendMode::kClear ); // Ensure the first item in
506
+ // the switch is the first
507
+ // item in the enum.
509
508
switch (b) {
510
509
case Entity::BlendMode::kClear :
511
510
blend_mode_names.push_back (" Clear" );
@@ -521,8 +520,7 @@ TEST_F(EntityTest, BlendingModeOptions) {
521
520
blend_mode_values.push_back (Entity::BlendMode::kSourceOver );
522
521
case Entity::BlendMode::kDestinationOver :
523
522
blend_mode_names.push_back (" DestinationOver" );
524
- blend_mode_values.push_back (
525
- Entity::BlendMode::kDestinationOver );
523
+ blend_mode_values.push_back (Entity::BlendMode::kDestinationOver );
526
524
};
527
525
}
528
526
@@ -534,9 +532,8 @@ TEST_F(EntityTest, BlendingModeOptions) {
534
532
ImGui::SetNextWindowPos ({200 , 450 });
535
533
}
536
534
537
- auto draw_rect = [&context, &pass](
538
- Rect rect, Color color,
539
- Entity::BlendMode blend_mode) -> bool {
535
+ auto draw_rect = [&context, &pass](Rect rect, Color color,
536
+ Entity::BlendMode blend_mode) -> bool {
540
537
using VS = SolidFillPipeline::VertexShader;
541
538
VertexBufferBuilder<VS::PerVertexData> vtx_builder;
542
539
{
@@ -579,8 +576,7 @@ TEST_F(EntityTest, BlendingModeOptions) {
579
576
blend_mode_names.data (), blend_mode_names.size ());
580
577
ImGui::End ();
581
578
582
- Entity::BlendMode selected_mode =
583
- blend_mode_values[current_blend_index];
579
+ Entity::BlendMode selected_mode = blend_mode_values[current_blend_index];
584
580
585
581
Point a, b, c, d;
586
582
std::tie (a, b) = IMPELLER_PLAYGROUND_LINE (
@@ -601,5 +597,29 @@ TEST_F(EntityTest, BlendingModeOptions) {
601
597
ASSERT_TRUE (OpenPlaygroundHere (callback));
602
598
}
603
599
600
+ TEST_F (EntityTest, BezierCircleScaled) {
601
+ Entity entity;
602
+ auto path = PathBuilder{}
603
+ .MoveTo ({97.325 , 34.818 })
604
+ .CubicCurveTo ({98.50862885295136 , 34.81812293973836 },
605
+ {99.46822048142015 , 33.85863261475589 },
606
+ {99.46822048142015 , 32.67499810206613 })
607
+ .CubicCurveTo ({99.46822048142015 , 31.491363589376355 },
608
+ {98.50862885295136 , 30.53187326439389 },
609
+ {97.32499434685802 , 30.531998226542708 })
610
+ .CubicCurveTo ({96.14153655073771 , 30.532123170035373 },
611
+ {95.18222070648729 , 31.491540299350355 },
612
+ {95.18222070648729 , 32.67499810206613 })
613
+ .CubicCurveTo ({95.18222070648729 , 33.85845590478189 },
614
+ {96.14153655073771 , 34.81787303409686 },
615
+ {97.32499434685802 , 34.81799797758954 })
616
+ .Close ()
617
+ .TakePath ();
618
+ entity.SetPath (path);
619
+ entity.SetTransformation (Matrix::MakeScale ({20.0 , 20.0 , 1.0 }).Translate ({-80 , -15 , 0 }));
620
+ entity.SetContents (SolidColorContents::Make (Color::Red ()));
621
+ ASSERT_TRUE (OpenPlaygroundHere (entity));
622
+ }
623
+
604
624
} // namespace testing
605
625
} // namespace impeller
0 commit comments