Lines Matching refs:GrShape
22 uint32_t GrShape::testingOnly_getOriginalGenerationID() const { in testingOnly_getOriginalGenerationID()
29 bool GrShape::testingOnly_isPath() const { in testingOnly_isPath()
33 bool GrShape::testingOnly_isNonVolatilePath() const { in testingOnly_isNonVolatilePath()
39 static bool make_key(Key* key, const GrShape& shape) { in make_key()
98 static bool can_interchange_winding_and_even_odd_fill(const GrShape& shape) { in can_interchange_winding_and_even_odd_fill()
110 static void check_equivalence(skiatest::Reporter* r, const GrShape& a, const GrShape& b, in check_equivalence()
141 const GrShape* s1 = pathA.isInverseFillType() ? &a : &b; in check_equivalence()
142 const GrShape* s2 = pathA.isInverseFillType() ? &b : &a; in check_equivalence()
229 static void check_original_path_ids(skiatest::Reporter* r, const GrShape& base, const GrShape& pe, in check_original_path_ids()
230 const GrShape& peStroke, const GrShape& full) { in check_original_path_ids()
278 void test_inversions(skiatest::Reporter* r, const GrShape& shape, const Key& shapeKey) { in test_inversions()
279 GrShape preserve = GrShape::MakeFilled(shape, GrShape::FillInversion::kPreserve); in test_inversions()
283 GrShape flip = GrShape::MakeFilled(shape, GrShape::FillInversion::kFlip); in test_inversions()
287 GrShape inverted = GrShape::MakeFilled(shape, GrShape::FillInversion::kForceInverted); in test_inversions()
291 GrShape noninverted = GrShape::MakeFilled(shape, GrShape::FillInversion::kForceNoninverted); in test_inversions()
309 GrShape doubleFlip = GrShape::MakeFilled(flip, GrShape::FillInversion::kFlip); in test_inversions()
328 virtual GrShape makeShape(const SkPaint&) const = 0;
352 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
353 return GrShape(fRect, paint); in makeShape()
371 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
372 return GrShape(fRRect, paint); in makeShape()
407 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
408 return GrShape::MakeArc(fOval, fStartAngle, fSweepAngle, fUseCenter, GrStyle(paint)); in makeShape()
437 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
438 return GrShape(fPath, paint); in makeShape()
520 : fBase(new GrShape(geo.makeShape(paint))) { in TestCase()
525 TestCase(skiatest::Reporter* r, ShapeArgs... shapeArgs) : fBase(new GrShape(shapeArgs...)) { in TestCase()
529 TestCase(const GrShape& shape, skiatest::Reporter* r, SkScalar scale = SK_Scalar1) in TestCase()
530 : fBase(new GrShape(shape)) { in TestCase()
551 const GrShape& baseShape() const { return *fBase; } in baseShape()
552 const GrShape& appliedPathEffectShape() const { return *fAppliedPE; } in appliedPathEffectShape()
553 const GrShape& appliedFullStyleShape() const { return *fAppliedFull; } in appliedFullStyleShape()
562 static void CheckBounds(skiatest::Reporter* r, const GrShape& shape, const SkRect& bounds) { in CheckBounds()
580 fAppliedPE.reset(new GrShape); in init()
581 fAppliedPEThenStroke.reset(new GrShape); in init()
582 fAppliedFull.reset(new GrShape); in init()
648 GrShape(postPathEffect, GrStyle(postPEStrokeRec, nullptr)).asPath(&postPathEffect); in init()
668 GrShape(postAllStyle, GrStyle(fillOrHairline)).asPath(&postAllStyle); in init()
683 std::unique_ptr<GrShape> fBase;
684 std::unique_ptr<GrShape> fAppliedPE;
685 std::unique_ptr<GrShape> fAppliedPEThenStroke;
686 std::unique_ptr<GrShape> fAppliedFull;
1020 GrShape shape = geo.makeShape(hairline); in test_stroke_cap()
1034 static bool shape_known_not_to_have_joins(const GrShape& shape) { in shape_known_not_to_have_joins()
1042 GrShape shape = geo.makeShape(hairline); in test_stroke_join()
1070 GrShape shape = geo.makeShape(hairline); in test_miter_limit()
1388 GrShape emptyShape(emptyPath); in test_path_effect_makes_empty_shape()
1394 GrShape invertedEmptyShape(emptyPath); in test_path_effect_makes_empty_shape()
1661 SkAutoTArray<GrShape> shapes(cnt); in test_rrect()
1669 GrShape(rrect, dir, start, SkToBool(inverted), in test_rrect()
1681 const GrShape& exampleFillCase = shapes[index(false, kExamplesDir, kExamplesStart, kFill, in test_rrect()
1686 const GrShape& exampleStrokeAndFillCase = shapes[index(false, kExamplesDir, kExamplesStart, in test_rrect()
1691 const GrShape& exampleInvFillCase = shapes[index(true, kExamplesDir, kExamplesStart, kFill, in test_rrect()
1696 const GrShape& exampleInvStrokeAndFillCase = shapes[index(true, kExamplesDir, kExamplesStart, in test_rrect()
1701 const GrShape& exampleStrokeCase = shapes[index(false, kExamplesDir, kExamplesStart, kStroke, in test_rrect()
1706 const GrShape& exampleInvStrokeCase = shapes[index(true, kExamplesDir, kExamplesStart, kStroke, in test_rrect()
1711 const GrShape& exampleHairlineCase = shapes[index(false, kExamplesDir, kExamplesStart, in test_rrect()
1716 const GrShape& exampleInvHairlineCase = shapes[index(true, kExamplesDir, kExamplesStart, in test_rrect()
1797 const GrShape& fillCase = shapes[index(inverted, dir, start, kFill, dash)]; in test_rrect()
1801 const GrShape& strokeAndFillCase = shapes[index(inverted, dir, start, in test_rrect()
1818 const GrShape& strokeCase = shapes[index(inverted, dir, start, kStroke, dash)]; in test_rrect()
1819 const GrShape& hairlineCase = shapes[index(inverted, dir, start, kHairline, in test_rrect()
2079 REPORTER_ASSERT(r, !GrShape(volatileA, paint).hasUnstyledKey()); in DEF_TEST()
2080 REPORTER_ASSERT(r, !GrShape(volatileB, paint).hasUnstyledKey()); in DEF_TEST()
2127 DEF_TEST(GrShape, reporter) { in DEF_TEST() argument
2289 TestCase emptyArc(GrShape::MakeArc(SkRect::MakeEmpty(), 0, 90.f, false, style), reporter); in DEF_TEST()
2297 TestCase arc1CW(GrShape::MakeArc(kOval1, 0, 90.f, false, style), reporter); in DEF_TEST()
2298 TestCase arc1CCW(GrShape::MakeArc(kOval1, 90.f, -90.f, false, style), reporter); in DEF_TEST()
2300 TestCase arc1CWWithCenter(GrShape::MakeArc(kOval1, 0, 90.f, true, style), reporter); in DEF_TEST()
2301 TestCase arc1CCWWithCenter(GrShape::MakeArc(kOval1, 90.f, -90.f, true, style), reporter); in DEF_TEST()
2303 TestCase arc2CW(GrShape::MakeArc(kOval2, 0, 90.f, false, style), reporter); in DEF_TEST()
2304 TestCase arc2CWWithCenter(GrShape::MakeArc(kOval2, 0, 90.f, true, style), reporter); in DEF_TEST()
2317 TestCase arc3A(GrShape::MakeArc(kOval1, 224.f, 73.f, false, style), reporter); in DEF_TEST()
2318 TestCase arc3B(GrShape::MakeArc(kOval1, 224.f - 360.f, 73.f, false, style), reporter); in DEF_TEST()
2323 TestCase ovalArc(GrShape::MakeArc(kOval1, 150.f, -790.f, false, style), reporter); in DEF_TEST()
2324 TestCase oval(GrShape(SkRRect::MakeOval(kOval1)), reporter); in DEF_TEST()
2334 TestCase ovalArcWithCenter(GrShape::MakeArc(kOval1, 304.f, 1225.f, true, style), reporter); in DEF_TEST()