• Home
  • Raw
  • Download

Lines Matching refs:GrShape

21 uint32_t GrShape::testingOnly_getOriginalGenerationID() const {  in testingOnly_getOriginalGenerationID()
28 bool GrShape::testingOnly_isPath() const { in testingOnly_isPath()
32 bool GrShape::testingOnly_isNonVolatilePath() const { in testingOnly_isNonVolatilePath()
38 static bool make_key(Key* key, const GrShape& shape) { in make_key()
97 static bool can_interchange_winding_and_even_odd_fill(const GrShape& shape) { in can_interchange_winding_and_even_odd_fill()
109 static void check_equivalence(skiatest::Reporter* r, const GrShape& a, const GrShape& b, in check_equivalence()
140 const GrShape* s1 = pathA.isInverseFillType() ? &a : &b; in check_equivalence()
141 const GrShape* s2 = pathA.isInverseFillType() ? &b : &a; in check_equivalence()
228 static void check_original_path_ids(skiatest::Reporter* r, const GrShape& base, const GrShape& pe, in check_original_path_ids()
229 const GrShape& peStroke, const GrShape& full) { in check_original_path_ids()
277 void test_inversions(skiatest::Reporter* r, const GrShape& shape, const Key& shapeKey) { in test_inversions()
278 GrShape preserve = GrShape::MakeFilled(shape, GrShape::FillInversion::kPreserve); in test_inversions()
282 GrShape flip = GrShape::MakeFilled(shape, GrShape::FillInversion::kFlip); in test_inversions()
286 GrShape inverted = GrShape::MakeFilled(shape, GrShape::FillInversion::kForceInverted); in test_inversions()
290 GrShape noninverted = GrShape::MakeFilled(shape, GrShape::FillInversion::kForceNoninverted); in test_inversions()
308 GrShape doubleFlip = GrShape::MakeFilled(flip, GrShape::FillInversion::kFlip); in test_inversions()
327 virtual GrShape makeShape(const SkPaint&) const = 0;
351 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
352 return GrShape(fRect, paint); in makeShape()
370 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
371 return GrShape(fRRect, paint); in makeShape()
406 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
407 return GrShape::MakeArc(fOval, fStartAngle, fSweepAngle, fUseCenter, GrStyle(paint)); in makeShape()
436 GrShape makeShape(const SkPaint& paint) const override { in makeShape()
437 return GrShape(fPath, paint); in makeShape()
528 TestCase(const GrShape& shape, skiatest::Reporter* r, SkScalar scale = SK_Scalar1) in TestCase()
550 const GrShape& baseShape() const { return fBase; } in baseShape()
551 const GrShape& appliedPathEffectShape() const { return fAppliedPE; } in appliedPathEffectShape()
552 const GrShape& appliedFullStyleShape() const { return fAppliedFull; } in appliedFullStyleShape()
561 static void CheckBounds(skiatest::Reporter* r, const GrShape& shape, const SkRect& bounds) { in CheckBounds()
643 GrShape(postPathEffect, GrStyle(postPEStrokeRec, nullptr)).asPath(&postPathEffect); in init()
663 GrShape(postAllStyle, GrStyle(fillOrHairline)).asPath(&postAllStyle); in init()
678 GrShape fBase;
679 GrShape fAppliedPE;
680 GrShape fAppliedPEThenStroke;
681 GrShape fAppliedFull;
1015 GrShape shape = geo.makeShape(hairline); in test_stroke_cap()
1029 static bool shape_known_not_to_have_joins(const GrShape& shape) { in shape_known_not_to_have_joins()
1037 GrShape shape = geo.makeShape(hairline); in test_stroke_join()
1065 GrShape shape = geo.makeShape(hairline); in test_miter_limit()
1374 GrShape emptyShape(emptyPath); in test_path_effect_makes_empty_shape()
1380 GrShape invertedEmptyShape(emptyPath); in test_path_effect_makes_empty_shape()
1649 SkAutoTArray<GrShape> shapes(cnt); in test_rrect()
1657 GrShape(rrect, dir, start, SkToBool(inverted), in test_rrect()
1669 const GrShape& exampleFillCase = shapes[index(false, kExamplesDir, kExamplesStart, kFill, in test_rrect()
1674 const GrShape& exampleStrokeAndFillCase = shapes[index(false, kExamplesDir, kExamplesStart, in test_rrect()
1679 const GrShape& exampleInvFillCase = shapes[index(true, kExamplesDir, kExamplesStart, kFill, in test_rrect()
1684 const GrShape& exampleInvStrokeAndFillCase = shapes[index(true, kExamplesDir, kExamplesStart, in test_rrect()
1689 const GrShape& exampleStrokeCase = shapes[index(false, kExamplesDir, kExamplesStart, kStroke, in test_rrect()
1694 const GrShape& exampleInvStrokeCase = shapes[index(true, kExamplesDir, kExamplesStart, kStroke, in test_rrect()
1699 const GrShape& exampleHairlineCase = shapes[index(false, kExamplesDir, kExamplesStart, in test_rrect()
1704 const GrShape& exampleInvHairlineCase = shapes[index(true, kExamplesDir, kExamplesStart, in test_rrect()
1785 const GrShape& fillCase = shapes[index(inverted, dir, start, kFill, dash)]; in test_rrect()
1789 const GrShape& strokeAndFillCase = shapes[index(inverted, dir, start, in test_rrect()
1806 const GrShape& strokeCase = shapes[index(inverted, dir, start, kStroke, dash)]; in test_rrect()
1807 const GrShape& hairlineCase = shapes[index(inverted, dir, start, kHairline, in test_rrect()
2066 REPORTER_ASSERT(r, !GrShape(volatileA, paint).hasUnstyledKey()); in DEF_TEST()
2067 REPORTER_ASSERT(r, !GrShape(volatileB, paint).hasUnstyledKey()); in DEF_TEST()
2114 DEF_TEST(GrShape, reporter) { in DEF_TEST() argument
2276 TestCase emptyArc(GrShape::MakeArc(SkRect::MakeEmpty(), 0, 90.f, false, style), reporter); in DEF_TEST()
2284 TestCase arc1CW(GrShape::MakeArc(kOval1, 0, 90.f, false, style), reporter); in DEF_TEST()
2285 TestCase arc1CCW(GrShape::MakeArc(kOval1, 90.f, -90.f, false, style), reporter); in DEF_TEST()
2287 TestCase arc1CWWithCenter(GrShape::MakeArc(kOval1, 0, 90.f, true, style), reporter); in DEF_TEST()
2288 TestCase arc1CCWWithCenter(GrShape::MakeArc(kOval1, 90.f, -90.f, true, style), reporter); in DEF_TEST()
2290 TestCase arc2CW(GrShape::MakeArc(kOval2, 0, 90.f, false, style), reporter); in DEF_TEST()
2291 TestCase arc2CWWithCenter(GrShape::MakeArc(kOval2, 0, 90.f, true, style), reporter); in DEF_TEST()
2304 TestCase arc3A(GrShape::MakeArc(kOval1, 224.f, 73.f, false, style), reporter); in DEF_TEST()
2305 TestCase arc3B(GrShape::MakeArc(kOval1, 224.f - 360.f, 73.f, false, style), reporter); in DEF_TEST()
2310 TestCase ovalArc(GrShape::MakeArc(kOval1, 150.f, -790.f, false, style), reporter); in DEF_TEST()
2311 TestCase oval(GrShape(SkRRect::MakeOval(kOval1)), reporter); in DEF_TEST()
2321 TestCase ovalArcWithCenter(GrShape::MakeArc(kOval1, 304.f, 1225.f, true, style), reporter); in DEF_TEST()