/third_party/flutter/skia/include/core/ |
D | SkRRect.h | 30 class SK_API SkRRect { 38 SkRRect() = default; 45 SkRRect(const SkRRect& rrect) = default; 52 SkRRect& operator=(const SkRRect& rrect) = default; 125 void setEmpty() { *this = SkRRect(); } in setEmpty() 149 static SkRRect MakeEmpty() { return SkRRect(); } in MakeEmpty() 156 static SkRRect MakeRect(const SkRect& r) { in MakeRect() 157 SkRRect rr; in MakeRect() 169 static SkRRect MakeOval(const SkRect& oval) { in MakeOval() 170 SkRRect rr; in MakeOval() [all …]
|
/third_party/skia/include/core/ |
D | SkRRect.h | 31 class SK_API SkRRect { 39 SkRRect() = default; 46 SkRRect(const SkRRect& rrect) = default; 53 SkRRect& operator=(const SkRRect& rrect) = default; 114 void setEmpty() { *this = SkRRect(); } in setEmpty() 138 static SkRRect MakeEmpty() { return SkRRect(); } in MakeEmpty() 145 static SkRRect MakeRect(const SkRect& r) { in MakeRect() 146 SkRRect rr; in MakeRect() 158 static SkRRect MakeOval(const SkRect& oval) { in MakeOval() 159 SkRRect rr; in MakeOval() [all …]
|
/third_party/skia/tests/ |
D | RoundRectTest.cpp | 19 SkRRect rr; in test_tricky_radii() 32 SkRRect rr; in test_tricky_radii() 35 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii() 36 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii() 42 SkRRect rr; in test_empty_crbug_458524() 47 SkRRect other; in test_empty_crbug_458524() 51 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524() 72 SkRRect r; in test_empty() 119 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty() 121 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty() [all …]
|
D | RRectInPathTest.cpp | 14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, in path_contains_rrect() 16 SkRRect out; in path_contains_rrect() 32 SkRRect xrr = SkRRect::MakeRect(SkRect::MakeEmpty()); in path_contains_rrect() 43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, in inner_path_contains_rrect() 46 case SkRRect::kEmpty_Type: in inner_path_contains_rrect() 47 case SkRRect::kRect_Type: in inner_path_contains_rrect() 48 case SkRRect::kOval_Type: in inner_path_contains_rrect() 57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); in inner_path_contains_rrect() 62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_check() 64 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start); in path_contains_rrect_check() [all …]
|
/third_party/skia/src/core/ |
D | SkRRectPriv.h | 18 static bool IsCircle(const SkRRect& rr) { in IsCircle() 22 static SkVector GetSimpleRadii(const SkRRect& rr) { in GetSimpleRadii() 27 static bool IsSimpleCircular(const SkRRect& rr) { in IsSimpleCircular() 33 static bool IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero); 35 static bool EqualRadii(const SkRRect& rr) { in EqualRadii() 39 static const SkVector* GetRadiiArray(const SkRRect& rr) { return rr.fRadii; } in GetRadiiArray() 41 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero); 43 static bool ReadFromBuffer(SkRBuffer* buffer, SkRRect* rr); 45 static void WriteToBuffer(const SkRRect& rr, SkWBuffer* buffer); 48 static bool ContainsPoint(const SkRRect& rr, const SkPoint& p) { in ContainsPoint() [all …]
|
D | SkRRect.cpp | 21 void SkRRect::setOval(const SkRect& oval) { in setOval() 43 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() 79 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() 167 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 192 bool SkRRect::initializeRect(const SkRect& rect) { in initializeRect() 195 *this = SkRRect(); in initializeRect() 220 bool SkRRect::scaleRadii() { in scaleRadii() 267 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment() 320 bool SkRRectPriv::IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance) { in IsNearlySimpleCircular() 331 bool SkRRectPriv::AllCornersCircular(const SkRRect& rr, SkScalar tolerance) { in AllCornersCircular() [all …]
|
D | SkPathMakers.h | 68 SkPath_RRectPointIterator(const SkRRect& rrect, SkPathDirection dir, unsigned startIndex) in SkPath_RRectPointIterator() 77 fPts[0] = SkPoint::Make(L + rrect.radii(SkRRect::kUpperLeft_Corner).fX, T); in SkPath_RRectPointIterator() 78 fPts[1] = SkPoint::Make(R - rrect.radii(SkRRect::kUpperRight_Corner).fX, T); in SkPath_RRectPointIterator() 79 fPts[2] = SkPoint::Make(R, T + rrect.radii(SkRRect::kUpperRight_Corner).fY); in SkPath_RRectPointIterator() 80 fPts[3] = SkPoint::Make(R, B - rrect.radii(SkRRect::kLowerRight_Corner).fY); in SkPath_RRectPointIterator() 81 fPts[4] = SkPoint::Make(R - rrect.radii(SkRRect::kLowerRight_Corner).fX, B); in SkPath_RRectPointIterator() 82 fPts[5] = SkPoint::Make(L + rrect.radii(SkRRect::kLowerLeft_Corner).fX, B); in SkPath_RRectPointIterator() 83 fPts[6] = SkPoint::Make(L, B - rrect.radii(SkRRect::kLowerLeft_Corner).fY); in SkPath_RRectPointIterator() 84 fPts[7] = SkPoint::Make(L, T + rrect.radii(SkRRect::kUpperLeft_Corner).fY); in SkPath_RRectPointIterator()
|
/third_party/flutter/skia/tests/ |
D | RoundRectTest.cpp | 16 SkRRect rr; in test_tricky_radii() 29 SkRRect rr; in test_tricky_radii() 32 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii() 33 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii() 39 SkRRect rr; in test_empty_crbug_458524() 44 SkRRect other; in test_empty_crbug_458524() 48 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524() 69 SkRRect r; in test_empty() 116 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty() 118 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty() [all …]
|
D | RRectInPathTest.cpp | 14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, in path_contains_rrect() 16 SkRRect out; in path_contains_rrect() 32 SkRRect xrr = SkRRect::MakeRect(SkRect::MakeEmpty()); in path_contains_rrect() 43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, in inner_path_contains_rrect() 46 case SkRRect::kEmpty_Type: in inner_path_contains_rrect() 47 case SkRRect::kRect_Type: in inner_path_contains_rrect() 48 case SkRRect::kOval_Type: in inner_path_contains_rrect() 57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); in inner_path_contains_rrect() 62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_check() 64 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start); in path_contains_rrect_check() [all …]
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrRRectEffect.cpp | 30 kTopLeft_CornerFlag = (1 << SkRRect::kUpperLeft_Corner), 31 kTopRight_CornerFlag = (1 << SkRRect::kUpperRight_Corner), 32 kBottomRight_CornerFlag = (1 << SkRRect::kLowerRight_Corner), 33 kBottomLeft_CornerFlag = (1 << SkRRect::kLowerLeft_Corner), 49 uint32_t circularCornerFlags, const SkRRect&); 57 const SkRRect& getRRect() const { return fRRect; } in getRRect() 64 CircularRRectEffect(GrClipEdgeType, uint32_t circularCornerFlags, const SkRRect&); 72 SkRRect fRRect; 83 const SkRRect& rrect) { in Make() 92 const SkRRect& rrect) in CircularRRectEffect() [all …]
|
/third_party/skia/gm/ |
D | rrect.cpp | 21 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*); 23 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0() 34 radii[i] = src.radii((SkRRect::Corner)i); in inset0() 43 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1() 54 radii[i] = src.radii((SkRRect::Corner)i); in inset1() 59 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2() 70 radii[i] = src.radii((SkRRect::Corner)i); in inset2() 87 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3() 98 radii[i] = src.radii((SkRRect::Corner)i); in inset3() 107 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color() [all …]
|
/third_party/flutter/skia/gm/ |
D | rrect.cpp | 21 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*); 23 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0() 34 radii[i] = src.radii((SkRRect::Corner)i); in inset0() 43 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1() 54 radii[i] = src.radii((SkRRect::Corner)i); in inset1() 59 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2() 70 radii[i] = src.radii((SkRRect::Corner)i); in inset2() 87 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3() 98 radii[i] = src.radii((SkRRect::Corner)i); in inset3() 107 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color() [all …]
|
D | bigrrectaaeffect.cpp | 43 BigRRectAAEffectGM(const SkRRect& rrect, const char* name) in BigRRectAAEffectGM() 91 SkRRect rrect = fRRect; in onDraw() 120 SkRRect fRRect; 136 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRect(SkRect::MakeIWH(kSize, kSize)), "rect"); ) 137 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize, kSize)), "circle");… 138 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize - 1, kSize - 10)), "… 140 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), … 141 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), …
|
/third_party/skia/src/gpu/effects/ |
D | GrRRectEffect.cpp | 29 kTopLeft_CornerFlag = (1 << SkRRect::kUpperLeft_Corner), 30 kTopRight_CornerFlag = (1 << SkRRect::kUpperRight_Corner), 31 kBottomRight_CornerFlag = (1 << SkRRect::kLowerRight_Corner), 32 kBottomLeft_CornerFlag = (1 << SkRRect::kLowerLeft_Corner), 48 uint32_t circularCornerFlags, const SkRRect&); 60 GrClipEdgeType, uint32_t circularCornerFlags, const SkRRect&); 69 SkRRect fRRect; 81 uint32_t circularCornerFlags, const SkRRect& rrect) { in Make() 92 const SkRRect& rrect) in CircularRRectEffect() 127 SkRRect rrect; in TestCreate() [all …]
|
/third_party/flutter/skia/docs/examples/ |
D | RRect_Corner.cpp | 9 SkRRect rrect; in draw() 15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 16 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in draw() 17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 18 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw() 19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 20 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw() 21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw() 22 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
|
D | RRect_setNinePatch.cpp | 9 SkRRect rrect; in draw() 14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 15 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in draw() 16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 17 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw() 18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 19 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw() 20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw() 21 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
|
D | RRect_notequal_operator.cpp | 8 SkRRect rrect1 = SkRRect::MakeRectXY({10, 20, 60, 220}, 50, 100); 9 SkRRect rrect2 = SkRRect::MakeRectXY(rrect1.rect(), 50, 50); 10 SkRRect rrect3 = SkRRect::MakeOval(rrect1.rect());
|
D | RRect_equal_operator.cpp | 8 SkRRect rrect1 = SkRRect::MakeRectXY({10, 20, 60, 220}, 50, 200); 9 SkRRect rrect2 = SkRRect::MakeRectXY(rrect1.rect(), 25, 100); 10 SkRRect rrect3 = SkRRect::MakeOval(rrect1.rect());
|
/third_party/skia/docs/examples/ |
D | RRect_setNinePatch.cpp | 9 SkRRect rrect; in draw() 14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 15 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in draw() 16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 17 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw() 18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 19 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw() 20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw() 21 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
|
D | RRect_Corner.cpp | 9 SkRRect rrect; in draw() 15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 16 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in draw() 17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 18 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw() 19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 20 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw() 21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw() 22 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
|
D | RRect_notequal_operator.cpp | 8 SkRRect rrect1 = SkRRect::MakeRectXY({10, 20, 60, 220}, 50, 100); 9 SkRRect rrect2 = SkRRect::MakeRectXY(rrect1.rect(), 50, 50); 10 SkRRect rrect3 = SkRRect::MakeOval(rrect1.rect());
|
D | RRect_equal_operator.cpp | 8 SkRRect rrect1 = SkRRect::MakeRectXY({10, 20, 60, 220}, 50, 200); 9 SkRRect rrect2 = SkRRect::MakeRectXY(rrect1.rect(), 25, 100); 10 SkRRect rrect3 = SkRRect::MakeOval(rrect1.rect());
|
/third_party/flutter/skia/src/core/ |
D | SkRRectPriv.h | 18 static bool IsCircle(const SkRRect& rr) { in IsCircle() 22 static SkVector GetSimpleRadii(const SkRRect& rr) { in GetSimpleRadii() 27 static bool IsSimpleCircular(const SkRRect& rr) { in IsSimpleCircular() 31 static bool EqualRadii(const SkRRect& rr) { in EqualRadii() 35 static const SkVector* GetRadiiArray(const SkRRect& rr) { return rr.fRadii; } in GetRadiiArray() 37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero); 39 static bool ReadFromBuffer(SkRBuffer* buffer, SkRRect* rr); 41 static void WriteToBuffer(const SkRRect& rr, SkWBuffer* buffer);
|
D | SkRRect.cpp | 19 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() 55 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() 143 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 163 bool SkRRect::initializeRect(const SkRect& rect) { in initializeRect() 166 *this = SkRRect(); in initializeRect() 191 void SkRRect::scaleRadii(const SkRect& rect) { in scaleRadii() 238 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment() 291 bool SkRRectPriv::AllCornersCircular(const SkRRect& rr, SkScalar tolerance) { in AllCornersCircular() 298 bool SkRRect::contains(const SkRect& rect) const { in contains() 320 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch() [all …]
|
/third_party/flutter/skia/site/user/api/ |
D | SkRRect_Reference.md | 1 SkRRect Reference 5 <a name='SkRRect'></a> 10 class <a href='SkRRect_Reference#SkRRect'>SkRRect</a> { 12 <a href='#SkRRect_empty_constructor'>SkRRect()</a> = default; 13 …<a href='#SkRRect_copy_const_SkRRect'>SkRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRec… 14 …kRRect_Reference#SkRRect'>SkRRect</a>& <a href='#SkRRect_copy_operator'>operator=</a>(const <a hre… 39 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeEmpty'>MakeEmpty</a>(… 40 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeRect'>MakeRect</a>(co… 41 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeOval'>MakeOval</a>(co… 42 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeRectXY'>MakeRectXY</a… [all …]
|