/external/skqp/src/gpu/effects/ |
D | GrEllipseEffect.cpp | 29 auto radii = _outer.radii(); in emitCode() local 30 (void)radii; in emitCode() 69 auto radii = _outer.radii(); in onSetData() local 70 (void)radii; in onSetData() 76 if (radii != prevRadii || center != prevCenter) { in onSetData() 83 if (radii.fX > radii.fY) { in onSetData() 85 invRYSqd = (radii.fX * radii.fX) / (radii.fY * radii.fY); in onSetData() 86 pdman.set2f(scale, radii.fX, 1.f / radii.fX); in onSetData() 88 invRXSqd = (radii.fY * radii.fY) / (radii.fX * radii.fX); in onSetData() 90 pdman.set2f(scale, radii.fY, 1.f / radii.fY); in onSetData() [all …]
|
D | GrEllipseEffect.fp | 14 in float2 radii; 27 SkPoint radii, const GrShaderCaps& caps) { 28 // Small radii produce bad results on devices without full float. 29 if (!caps.floatIs32Bits() && (radii.fX < 0.5f || radii.fY < 0.5f)) { 32 return std::unique_ptr<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); 39 if (radii != prevRadii || center != prevCenter) { 43 // as the scale factor. The inv radii need to be pre-adjusted by the scale factor. 45 if (radii.fX > radii.fY) { 47 invRYSqd = (radii.fX * radii.fX) / 48 (radii.fY * radii.fY); [all …]
|
D | GrEllipseEffect.h | 22 const SkPoint& radii() const { return fRadii; } in radii() function 25 SkPoint radii, const GrShaderCaps& caps) { in Make() argument 27 if (!caps.floatIs32Bits() && (radii.fX < 0.5f || radii.fY < 0.5f)) { in Make() 30 return std::unique_ptr<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); in Make() 37 GrEllipseEffect(GrClipEdgeType edgeType, SkPoint center, SkPoint radii) in GrEllipseEffect() argument 42 , fRadii(radii) {} in GrEllipseEffect()
|
D | GrRRectEffect.cpp | 307 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData() 314 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; in onSetData() 321 radius = rrect.radii(SkRRect::kLowerRight_Corner).fX; in onSetData() 328 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; in onSetData() 335 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData() 342 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData() 349 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; in onSetData() 356 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; in onSetData() 607 const SkVector& r0 = rrect.radii(SkRRect::kUpperLeft_Corner); in onSetData() 627 const SkVector& r1 = rrect.radii(SkRRect::kLowerRight_Corner); in onSetData() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrEllipseEffect.cpp | 29 auto radii = _outer.radii(); in emitCode() local 30 (void)radii; in emitCode() 70 auto radii = _outer.radii(); in onSetData() local 71 (void)radii; in onSetData() 77 if (radii != prevRadii || center != prevCenter) { in onSetData() 84 if (radii.fX > radii.fY) { in onSetData() 86 invRYSqd = (radii.fX * radii.fX) / (radii.fY * radii.fY); in onSetData() 87 pdman.set2f(scale, radii.fX, 1.f / radii.fX); in onSetData() 89 invRXSqd = (radii.fY * radii.fY) / (radii.fX * radii.fX); in onSetData() 91 pdman.set2f(scale, radii.fY, 1.f / radii.fY); in onSetData() [all …]
|
D | GrEllipseEffect.fp | 14 in float2 radii; 27 SkPoint radii, const GrShaderCaps& caps) { 28 // Small radii produce bad results on devices without full float. 29 if (!caps.floatIs32Bits() && (radii.fX < 0.5f || radii.fY < 0.5f)) { 33 if (!caps.floatIs32Bits() && (radii.fX > 255*radii.fY || radii.fY > 255*radii.fX)) { 37 if (!caps.floatIs32Bits() && (radii.fX > 16384 || radii.fY > 16384)) { 40 return std::unique_ptr<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); 47 if (radii != prevRadii || center != prevCenter) { 51 // radius as the scale factor. The inv radii need to be pre-adjusted by the scale 54 if (radii.fX > radii.fY) { [all …]
|
D | GrEllipseEffect.h | 22 const SkPoint& radii() const { return fRadii; } in radii() function 25 SkPoint radii, const GrShaderCaps& caps) { in Make() argument 27 if (!caps.floatIs32Bits() && (radii.fX < 0.5f || radii.fY < 0.5f)) { in Make() 31 if (!caps.floatIs32Bits() && (radii.fX > 255 * radii.fY || radii.fY > 255 * radii.fX)) { in Make() 35 if (!caps.floatIs32Bits() && (radii.fX > 16384 || radii.fY > 16384)) { in Make() 38 return std::unique_ptr<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); in Make() 45 GrEllipseEffect(GrClipEdgeType edgeType, SkPoint center, SkPoint radii) in GrEllipseEffect() argument 50 , fRadii(radii) {} in GrEllipseEffect()
|
D | GrRRectEffect.cpp | 307 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData() 314 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; in onSetData() 321 radius = rrect.radii(SkRRect::kLowerRight_Corner).fX; in onSetData() 328 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; in onSetData() 335 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData() 342 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData() 349 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; in onSetData() 356 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; in onSetData() 607 const SkVector& r0 = rrect.radii(SkRRect::kUpperLeft_Corner); in onSetData() 627 const SkVector& r1 = rrect.radii(SkRRect::kLowerRight_Corner); in onSetData() [all …]
|
/external/skia/gm/ |
D | rrect.cpp | 25 SkVector radii[4]; in inset0() local 27 radii[i] = src.radii((SkRRect::Corner)i); in inset0() 30 radii[i].fX -= dx; in inset0() 31 radii[i].fY -= dy; in inset0() 33 dst->setRectRadii(r, radii); in inset0() 45 SkVector radii[4]; in inset1() local 47 radii[i] = src.radii((SkRRect::Corner)i); in inset1() 49 dst->setRectRadii(r, radii); in inset1() 61 SkVector radii[4]; in inset2() local 63 radii[i] = src.radii((SkRRect::Corner)i); in inset2() [all …]
|
D | blurroundrect.cpp | 38 SkVector radii[4]; in onOnceBeforeDraw() local 39 radii[0].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw() 40 radii[1].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw() 41 radii[2].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw() 42 radii[3].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw() 44 fRRect.setRectRadii(r, radii); in onOnceBeforeDraw()
|
/external/skqp/gm/ |
D | rrect.cpp | 25 SkVector radii[4]; in inset0() local 27 radii[i] = src.radii((SkRRect::Corner)i); in inset0() 30 radii[i].fX -= dx; in inset0() 31 radii[i].fY -= dy; in inset0() 33 dst->setRectRadii(r, radii); in inset0() 45 SkVector radii[4]; in inset1() local 47 radii[i] = src.radii((SkRRect::Corner)i); in inset1() 49 dst->setRectRadii(r, radii); in inset1() 61 SkVector radii[4]; in inset2() local 63 radii[i] = src.radii((SkRRect::Corner)i); in inset2() [all …]
|
D | blurroundrect.cpp | 38 SkVector radii[4]; in onOnceBeforeDraw() local 39 radii[0].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw() 40 radii[1].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw() 41 radii[2].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw() 42 radii[3].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw() 44 fRRect.setRectRadii(r, radii); in onOnceBeforeDraw()
|
/external/skqp/samplecode/ |
D | SampleClock.cpp | 56 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; in onDrawContent() local 57 rrect.setRectRadii(rect, radii); in onDrawContent() 79 radii[0] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 80 radii[1] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 81 radii[2] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 82 radii[3] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 83 rrect.setRectRadii(rect, radii); in onDrawContent() 119 radii[0] = SkPoint::Make(7,7); in onDrawContent() 120 radii[1] = SkPoint::Make(7,7); in onDrawContent() 121 radii[2] = SkPoint::Make(7,7); in onDrawContent() [all …]
|
/external/skia/samplecode/ |
D | SampleClock.cpp | 56 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; in onDrawContent() local 57 rrect.setRectRadii(rect, radii); in onDrawContent() 79 radii[0] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 80 radii[1] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 81 radii[2] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 82 radii[3] = SkPoint::Make(2.5f,2.5f); in onDrawContent() 83 rrect.setRectRadii(rect, radii); in onDrawContent() 119 radii[0] = SkPoint::Make(7,7); in onDrawContent() 120 radii[1] = SkPoint::Make(7,7); in onDrawContent() 121 radii[2] = SkPoint::Make(7,7); in onDrawContent() [all …]
|
/external/skia/docs/ |
D | SkRRect_Reference.bmh | 45 void setRectRadii(const SkRect& rect, const SkVector radii[4]); 55 SkVector radii(Corner corner) const; 79 SkRRect describes a rounded rectangle with a bounds and a pair of radii for each corner. 80 The bounds and radii can be set so that SkRRect describes: a rectangle with sharp corners; 84 SkRRect may have up to eight different radii, one for each axis on each of its four 87 SkRRect may modify the provided parameters when initializing bounds and radii. 88 If either axis radii is zero or less: radii are stored as zero; corner is square. 89 If corner curves overlap, radii are proportionally reduced to fit within bounds. 95 #Line # creates with zeroed bounds and corner radii ## 117 #Line # copies bounds and corner radii ## [all …]
|
/external/skqp/docs/ |
D | SkRRect_Reference.bmh | 45 void setRectRadii(const SkRect& rect, const SkVector radii[4]); 55 SkVector radii(Corner corner) const; 79 SkRRect describes a rounded rectangle with a bounds and a pair of radii for each corner. 80 The bounds and radii can be set so that SkRRect describes: a rectangle with sharp corners; 84 SkRRect may have up to eight different radii, one for each axis on each of its four 87 SkRRect may modify the provided parameters when initializing bounds and radii. 88 If either axis radii is zero or less: radii are stored as zero; corner is square. 89 If corner curves overlap, radii are proportionally reduced to fit within bounds. 95 #Line # creates with zeroed bounds and corner radii ## 117 #Line # copies bounds and corner radii ## [all …]
|
/external/skia/tests/ |
D | RoundRectTest.cpp | 26 SkVector radii[4] = { in test_tricky_radii() local 30 rr.setRectRadii(r, radii); 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() 67 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; in test_empty() local 88 r.setRectRadii(oooRects[i], radii); in test_empty() 110 r.setRectRadii(emptyRects[i], radii); in test_empty() 162 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); in test_9patch_rrect() 166 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local 167 rr2.setRectRadii(rect, radii); in test_9patch_rrect() [all …]
|
D | RRectInPathTest.cpp | 188 SkVector radii[4] = { in test_tricky_radii() local 192 rr.setRectRadii(r, radii); in test_tricky_radii() 258 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local 259 rr2.setRectRadii(rect, radii); in test_9patch_rrect() 355 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_rects() local 358 rr2.setRectRadii(rect, radii); in test_round_rect_rects() 398 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; in test_round_rect_general() local 401 rr2.setRectRadii(rect, radii); in test_round_rect_general() 412 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; in test_round_rect_iffy_parameters() local 414 rr1.setRectRadii(rect, radii); in test_round_rect_iffy_parameters() [all …]
|
/external/skqp/tests/ |
D | RoundRectTest.cpp | 26 SkVector radii[4] = { in test_tricky_radii() local 30 rr.setRectRadii(r, radii); 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() 67 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; in test_empty() local 88 r.setRectRadii(oooRects[i], radii); in test_empty() 110 r.setRectRadii(emptyRects[i], radii); in test_empty() 162 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); in test_9patch_rrect() 166 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local 167 rr2.setRectRadii(rect, radii); in test_9patch_rrect() [all …]
|
D | RRectInPathTest.cpp | 188 SkVector radii[4] = { in test_tricky_radii() local 192 rr.setRectRadii(r, radii); in test_tricky_radii() 258 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local 259 rr2.setRectRadii(rect, radii); in test_9patch_rrect() 355 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_rects() local 358 rr2.setRectRadii(rect, radii); in test_round_rect_rects() 398 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; in test_round_rect_general() local 401 rr2.setRectRadii(rect, radii); in test_round_rect_general() 412 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; in test_round_rect_iffy_parameters() local 414 rr1.setRectRadii(rect, radii); in test_round_rect_iffy_parameters() [all …]
|
/external/skia/src/core/ |
D | SkRRect.cpp | 123 static bool clamp_to_zero(SkVector radii[4]) { in clamp_to_zero() 128 if (radii[i].fX <= 0 || radii[i].fY <= 0) { in clamp_to_zero() 133 radii[i].fX = 0; in clamp_to_zero() 134 radii[i].fY = 0; in clamp_to_zero() 143 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 148 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { in setRectRadii() 153 memcpy(fRadii, radii, sizeof(fRadii)); in setRectRadii() 319 static bool radii_are_nine_patch(const SkVector radii[4]) { in radii_are_nine_patch() 320 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch() 321 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch() [all …]
|
/external/skqp/src/core/ |
D | SkRRect.cpp | 123 static bool clamp_to_zero(SkVector radii[4]) { in clamp_to_zero() 128 if (radii[i].fX <= 0 || radii[i].fY <= 0) { in clamp_to_zero() 133 radii[i].fX = 0; in clamp_to_zero() 134 radii[i].fY = 0; in clamp_to_zero() 143 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 148 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { in setRectRadii() 153 memcpy(fRadii, radii, sizeof(fRadii)); in setRectRadii() 319 static bool radii_are_nine_patch(const SkVector radii[4]) { in radii_are_nine_patch() 320 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch() 321 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch() [all …]
|
/external/skqp/include/core/ |
D | SkRRect.h | 273 void setRectRadii(const SkRect& rect, const SkVector radii[4]); 300 SkVector radii(Corner corner) const { return fRadii[corner]; } in radii() function 502 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect() 504 , fRadii{radii[0], radii[1], radii[2], radii[3]} in SkRRect()
|
/external/skia/include/core/ |
D | SkRRect.h | 273 void setRectRadii(const SkRect& rect, const SkVector radii[4]); 300 SkVector radii(Corner corner) const { return fRadii[corner]; } in radii() function 502 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect() 504 , fRadii{radii[0], radii[1], radii[2], radii[3]} in SkRRect()
|
/external/skqp/site/user/api/ |
D | SkRRect_Reference.md | 47 …SkRect_Reference#Rect'>rect</a>, const <a href='SkPoint_Reference#SkVector'>SkVector</a> radii[4]); 57 …<a href='SkPoint_Reference#SkVector'>SkVector</a> <a href='#SkRRect_radii'>radii</a>(<a href='#SkR… 81 …RRect'>SkRRect</a> describes a rounded rectangle with a bounds and a pair of radii for each corner. 82 The bounds and radii can be set so that <a href='SkRRect_Reference#SkRRect'>SkRRect</a> describes: … 86 <a href='SkRRect_Reference#SkRRect'>SkRRect</a> may have up to eight different radii, one for each … 89 …ference#SkRRect'>SkRRect</a> may modify the provided parameters when initializing bounds and radii. 90 If either axis radii is zero or less: radii are stored as zero; corner is square. 91 If corner <a href='undocumented#Curve'>curves</a> overlap, radii are proportionally reduced to fit … 102 Initializes corner radii to (0, 0), and sets type of <a href='#SkRRect_kEmpty_Type'>kEmpty_Type</a>. 124 …itializes to copy of <a href='#SkRRect_copy_const_SkRRect_rrect'>rrect</a> bounds and corner radii. [all …]
|