Lines Matching refs:geo

518     TestCase(const Geo& geo, const SkPaint& paint, skiatest::Reporter* r,  in TestCase()  argument
520 : fBase(new GrShape(geo.makeShape(paint))) { in TestCase()
767 static void test_basic(skiatest::Reporter* reporter, const Geo& geo) { in test_basic() argument
773 TestCase fillCase(geo, fill, reporter); in test_basic()
779 make_TestCase(geo, fill, reporter) in test_basic()
787 TestCase stroke2RoundBevelCase(geo, stroke2RoundBevel, reporter); in test_basic()
790 expectations.fStrokeApplies = !geo.strokeIsConvertedToFill(); in test_basic()
792 make_TestCase(geo, stroke2RoundBevel, reporter) in test_basic()
797 TestCase stroke2RoundBevelDashCase(geo, stroke2RoundBevelDash, reporter); in test_basic()
802 make_TestCase(geo, stroke2RoundBevelDash, reporter) in test_basic()
805 if (geo.fillChangesGeom() || geo.strokeIsConvertedToFill()) { in test_basic()
816 if (geo.strokeIsConvertedToFill()) { in test_basic()
827 TestCase stroke2RoundBevelAndFillCase(geo, stroke2RoundBevelAndFill, reporter); in test_basic()
830 expectations.fStrokeApplies = !geo.strokeIsConvertedToFill(); in test_basic()
832 make_TestCase(geo, stroke2RoundBevelAndFill, reporter)->compare( in test_basic()
837 TestCase stroke2RoundBevelAndFillDashCase(geo, stroke2RoundBevelAndFillDash, reporter); in test_basic()
840 expectations.fStrokeApplies = !geo.strokeIsConvertedToFill(); in test_basic()
842 make_TestCase(geo, stroke2RoundBevelAndFillDash, reporter)->compare( in test_basic()
850 TestCase hairlineCase(geo, hairline, reporter); in test_basic()
853 if (geo.fillChangesGeom()) { in test_basic()
864 static void test_scale(skiatest::Reporter* reporter, const Geo& geo) { in test_scale() argument
871 TestCase fillCase1(geo, fill, reporter, kS1); in test_scale()
872 TestCase fillCase2(geo, fill, reporter, kS2); in test_scale()
879 TestCase hairlineCase1(geo, hairline, reporter, kS1); in test_scale()
880 TestCase hairlineCase2(geo, hairline, reporter, kS2); in test_scale()
887 TestCase strokeCase1(geo, stroke, reporter, kS1); in test_scale()
888 TestCase strokeCase2(geo, stroke, reporter, kS2); in test_scale()
890 if (geo.strokeIsConvertedToFill()) { in test_scale()
899 TestCase strokeDashCase1(geo, strokeDash, reporter, kS1); in test_scale()
900 TestCase strokeDashCase2(geo, strokeDash, reporter, kS2); in test_scale()
908 TestCase strokeAndFillCase1(geo, strokeAndFill, reporter, kS1); in test_scale()
909 TestCase strokeAndFillCase2(geo, strokeAndFill, reporter, kS2); in test_scale()
913 TestCase strokeAndFillDashCase1(geo, strokeAndFillDash, reporter, kS1); in test_scale()
914 TestCase strokeAndFillDashCase2(geo, strokeAndFillDash, reporter, kS2); in test_scale()
918 if (geo.strokeAndFillIsConvertedToFill(strokeAndFillDash)) { in test_scale()
935 static void test_stroke_param_impl(skiatest::Reporter* reporter, const Geo& geo, in test_stroke_param_impl() argument
950 TestCase strokeACase(geo, strokeA, reporter); in test_stroke_param_impl()
951 TestCase strokeBCase(geo, strokeB, reporter); in test_stroke_param_impl()
955 if (geo.strokeIsConvertedToFill()) { in test_stroke_param_impl()
970 TestCase strokeAndFillACase(geo, strokeAndFillA, reporter); in test_stroke_param_impl()
971 TestCase strokeAndFillBCase(geo, strokeAndFillB, reporter); in test_stroke_param_impl()
975 if (geo.strokeAndFillIsConvertedToFill(strokeAndFillA) || in test_stroke_param_impl()
976 geo.strokeAndFillIsConvertedToFill(strokeAndFillB)) { in test_stroke_param_impl()
992 TestCase fillACase(geo, fillA, reporter); in test_stroke_param_impl()
993 TestCase fillBCase(geo, fillB, reporter); in test_stroke_param_impl()
1001 TestCase dashACase(geo, dashA, reporter); in test_stroke_param_impl()
1002 TestCase dashBCase(geo, dashB, reporter); in test_stroke_param_impl()
1011 static void test_stroke_param(skiatest::Reporter* reporter, const Geo& geo, in test_stroke_param() argument
1013 test_stroke_param_impl(reporter, geo, setter, a, b, true, true); in test_stroke_param()
1016 static void test_stroke_cap(skiatest::Reporter* reporter, const Geo& geo) { in test_stroke_cap() argument
1020 GrShape shape = geo.makeShape(hairline); in test_stroke_cap()
1027 geo, in test_stroke_cap()
1038 static void test_stroke_join(skiatest::Reporter* reporter, const Geo& geo) { in test_stroke_join() argument
1042 GrShape shape = geo.makeShape(hairline); in test_stroke_join()
1050 geo, in test_stroke_join()
1056 static void test_miter_limit(skiatest::Reporter* reporter, const Geo& geo) { in test_miter_limit() argument
1070 GrShape shape = geo.makeShape(hairline); in test_miter_limit()
1077 geo, in test_miter_limit()
1087 geo, in test_miter_limit()
1094 static void test_dash_fill(skiatest::Reporter* reporter, const Geo& geo) { in test_dash_fill() argument
1100 TestCase dashFillCase(geo, dashFill, reporter); in test_dash_fill()
1102 TestCase fillCase(geo, SkPaint(), reporter); in test_dash_fill()
1107 void test_null_dash(skiatest::Reporter* reporter, const Geo& geo) { in test_null_dash() argument
1121 TestCase fillCase(geo, fill, reporter); in test_null_dash()
1122 TestCase strokeCase(geo, stroke, reporter); in test_null_dash()
1123 TestCase dashCase(geo, dash, reporter); in test_null_dash()
1124 TestCase nullDashCase(geo, nullDash, reporter); in test_null_dash()
1130 if (geo.fillChangesGeom() || geo.strokeIsConvertedToFill()) { in test_null_dash()
1136 if (geo.strokeIsConvertedToFill()) { in test_null_dash()
1143 void test_path_effect_makes_rrect(skiatest::Reporter* reporter, const Geo& geo) { in test_path_effect_makes_rrect() argument
1176 TestCase fillGeoCase(geo, fill, reporter); in test_path_effect_makes_rrect()
1180 TestCase geoPECase(geo, pe, reporter); in test_path_effect_makes_rrect()
1186 TestCase geoPEStrokeCase(geo, peStroke, reporter); in test_path_effect_makes_rrect()
1190 if (geo.fillChangesGeom()) { in test_path_effect_makes_rrect()
1231 void test_unknown_path_effect(skiatest::Reporter* reporter, const Geo& geo) { in test_unknown_path_effect() argument
1268 TestCase geoPEStrokeCase(geo, peStroke, reporter); in test_unknown_path_effect()
1276 void test_make_hairline_path_effect(skiatest::Reporter* reporter, const Geo& geo) { in test_make_hairline_path_effect() argument
1303 TestCase peCase(geo, pe, reporter); in test_make_hairline_path_effect()
1309 if (geo.isNonPath(pe)) { in test_make_hairline_path_effect()
1334 void test_volatile_path(skiatest::Reporter* reporter, const Geo& geo) { in test_volatile_path() argument
1335 SkPath vPath = geo.path(); in test_volatile_path()
1345 if (geo.isNonPath(dashAndStroke)) { in test_volatile_path()
1348 TestCase nonVolatileCase(reporter, geo.path(), dashAndStroke); in test_volatile_path()
1359 void test_path_effect_makes_empty_shape(skiatest::Reporter* reporter, const Geo& geo) { in test_path_effect_makes_empty_shape() argument
1403 TestCase geoPECase(geo, pe, reporter); in test_path_effect_makes_empty_shape()
1416 TestCase geoPEStrokeCase(geo, peStroke, reporter); in test_path_effect_makes_empty_shape()
1426 TestCase geoPEInvertCase(geo, pe, reporter); in test_path_effect_makes_empty_shape()
1436 TestCase geoPEInvertStrokeCase(geo, peStroke, reporter); in test_path_effect_makes_empty_shape()
1447 void test_path_effect_fails(skiatest::Reporter* reporter, const Geo& geo) { in test_path_effect_fails() argument
1466 TestCase fillCase(geo, fill, reporter); in test_path_effect_fails()
1470 TestCase peCase(geo, pe, reporter); in test_path_effect_fails()
1475 TestCase strokeCase(geo, stroke, reporter); in test_path_effect_fails()
1479 TestCase peStrokeCase(geo, peStroke, reporter); in test_path_effect_fails()