Home
last modified time | relevance | path

Searched refs:radii (Results 1 – 25 of 95) sorted by relevance

1234

/external/skqp/gm/
Drrect.cpp25 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 …]
Dblurroundrect.cpp39 SkVector radii[4]; in onOnceBeforeDraw() local
40 radii[0].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw()
41 radii[1].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw()
42 radii[2].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw()
43 radii[3].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw()
45 fRRect.setRectRadii(r, radii); in onOnceBeforeDraw()
/external/skia/gm/
Drrect.cpp25 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 …]
Dblurroundrect.cpp39 SkVector radii[4]; in onOnceBeforeDraw() local
40 radii[0].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw()
41 radii[1].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw()
42 radii[2].set(SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw()
43 radii[3].set(SkIntToScalar(10), SkIntToScalar(10)); in onOnceBeforeDraw()
45 fRRect.setRectRadii(r, radii); in onOnceBeforeDraw()
/external/skqp/src/gpu/effects/
DGrEllipseEffect.cpp30 auto radii = _outer.radii(); in emitCode() local
31 (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 …]
DGrEllipseEffect.fp14 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 …]
DGrEllipseEffect.h23 SkPoint radii() const { return fRadii; } in radii() function
26 SkPoint radii, const GrShaderCaps& caps) { in Make() argument
28 if (!caps.floatIs32Bits() && (radii.fX < 0.5f || radii.fY < 0.5f)) { in Make()
31 return std::unique_ptr<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); in Make()
38 GrEllipseEffect(GrClipEdgeType edgeType, SkPoint center, SkPoint radii) in GrEllipseEffect() argument
43 , fRadii(radii) {} in GrEllipseEffect()
DGrRRectEffect.cpp307 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/
DGrEllipseEffect.cpp30 auto radii = _outer.radii(); in emitCode() local
31 (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 …]
DGrEllipseEffect.fp14 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 …]
DGrEllipseEffect.h23 SkPoint radii() const { return fRadii; } in radii() function
26 SkPoint radii, const GrShaderCaps& caps) { in Make() argument
28 if (!caps.floatIs32Bits() && (radii.fX < 0.5f || radii.fY < 0.5f)) { in Make()
31 return std::unique_ptr<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); in Make()
38 GrEllipseEffect(GrClipEdgeType edgeType, SkPoint center, SkPoint radii) in GrEllipseEffect() argument
43 , fRadii(radii) {} in GrEllipseEffect()
DGrRRectEffect.cpp307 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/samplecode/
DSampleClock.cpp57 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; in onDrawContent() local
58 rrect.setRectRadii(rect, radii); in onDrawContent()
80 radii[0] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
81 radii[1] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
82 radii[2] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
83 radii[3] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
84 rrect.setRectRadii(rect, radii); in onDrawContent()
120 radii[0] = SkPoint::Make(7,7); in onDrawContent()
121 radii[1] = SkPoint::Make(7,7); in onDrawContent()
122 radii[2] = SkPoint::Make(7,7); in onDrawContent()
[all …]
/external/skqp/samplecode/
DSampleClock.cpp57 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; in onDrawContent() local
58 rrect.setRectRadii(rect, radii); in onDrawContent()
80 radii[0] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
81 radii[1] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
82 radii[2] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
83 radii[3] = SkPoint::Make(2.5f,2.5f); in onDrawContent()
84 rrect.setRectRadii(rect, radii); in onDrawContent()
120 radii[0] = SkPoint::Make(7,7); in onDrawContent()
121 radii[1] = SkPoint::Make(7,7); in onDrawContent()
122 radii[2] = SkPoint::Make(7,7); in onDrawContent()
[all …]
/external/skia/tools/
Dsk_tool_utils.cpp274 SkVector radii = rr.radii(SkRRect::kUpperLeft_Corner); in compute_central_occluder() local
275 if (!radii.isZero()) { in compute_central_occluder()
276 SkPoint p = intersection(radii.fX, radii.fY); in compute_central_occluder()
278 newL = SkTMax(newL, r.fLeft + radii.fX - p.fX); in compute_central_occluder()
279 newT = SkTMax(newT, r.fTop + radii.fY - p.fY); in compute_central_occluder()
282 radii = rr.radii(SkRRect::kUpperRight_Corner); in compute_central_occluder()
283 if (!radii.isZero()) { in compute_central_occluder()
284 SkPoint p = intersection(radii.fX, radii.fY); in compute_central_occluder()
286 newR = SkTMin(newR, r.fRight + p.fX - radii.fX); in compute_central_occluder()
287 newT = SkTMax(newT, r.fTop + radii.fY - p.fY); in compute_central_occluder()
[all …]
/external/skqp/tools/
Dsk_tool_utils.cpp334 SkVector radii = rr.radii(SkRRect::kUpperLeft_Corner); in compute_central_occluder() local
335 if (!radii.isZero()) { in compute_central_occluder()
336 SkPoint p = intersection(radii.fX, radii.fY); in compute_central_occluder()
338 newL = SkTMax(newL, r.fLeft + radii.fX - p.fX); in compute_central_occluder()
339 newT = SkTMax(newT, r.fTop + radii.fY - p.fY); in compute_central_occluder()
342 radii = rr.radii(SkRRect::kUpperRight_Corner); in compute_central_occluder()
343 if (!radii.isZero()) { in compute_central_occluder()
344 SkPoint p = intersection(radii.fX, radii.fY); in compute_central_occluder()
346 newR = SkTMin(newR, r.fRight + p.fX - radii.fX); in compute_central_occluder()
347 newT = SkTMax(newT, r.fTop + radii.fY - p.fY); in compute_central_occluder()
[all …]
/external/skqp/tests/
DRoundRectTest.cpp26 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 …]
DRRectInPathTest.cpp188 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/tests/
DRoundRectTest.cpp26 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 …]
DRRectInPathTest.cpp188 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/src/core/
DSkRRect.cpp119 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii()
124 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { in setRectRadii()
129 memcpy(fRadii, radii, sizeof(fRadii)); in setRectRadii()
288 static bool radii_are_nine_patch(const SkVector radii[4]) { in radii_are_nine_patch()
289 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch()
290 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch()
291 radii[SkRRect::kUpperRight_Corner].fX == radii[SkRRect::kLowerRight_Corner].fX && in radii_are_nine_patch()
292 radii[SkRRect::kLowerLeft_Corner].fY == radii[SkRRect::kLowerRight_Corner].fY; in radii_are_nine_patch()
473 SkVector radii[4]; in inset() local
474 memcpy(radii, fRadii, sizeof(radii)); in inset()
[all …]
/external/skia/src/core/
DSkRRect.cpp119 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii()
124 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { in setRectRadii()
129 memcpy(fRadii, radii, sizeof(fRadii)); in setRectRadii()
288 static bool radii_are_nine_patch(const SkVector radii[4]) { in radii_are_nine_patch()
289 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch()
290 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch()
291 radii[SkRRect::kUpperRight_Corner].fX == radii[SkRRect::kLowerRight_Corner].fX && in radii_are_nine_patch()
292 radii[SkRRect::kLowerLeft_Corner].fY == radii[SkRRect::kLowerRight_Corner].fY; in radii_are_nine_patch()
473 SkVector radii[4]; in inset() local
474 memcpy(radii, fRadii, sizeof(radii)); in inset()
[all …]
/external/skia/include/core/
DSkRRect.h197 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
208 SkVector radii(Corner corner) const { return fRadii[corner]; } in radii() function
317 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
319 , fRadii{radii[0], radii[1], radii[2], radii[3]} in SkRRect()
/external/skqp/include/core/
DSkRRect.h198 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
209 const SkVector& radii(Corner corner) const { return fRadii[corner]; } in radii() function
326 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
328 , fRadii{radii[0], radii[1], radii[2], radii[3]} in SkRRect()
/external/ImageMagick/MagickCore/
Dpaint.c561 gradient->radii.x=(double) MagickMax(image->columns,image->rows)/2.0; in GradientImage()
562 gradient->radii.y=gradient->radii.x; in GradientImage()
568 gradient->radii.x=(double) MagickMax(image->columns,image->rows)/2.0; in GradientImage()
569 gradient->radii.y=gradient->radii.x; in GradientImage()
573 gradient->radii.x=(double) (sqrt(image->columns*image->columns+ in GradientImage()
575 gradient->radii.y=gradient->radii.x; in GradientImage()
579 gradient->radii.x=(double) image->columns/2.0; in GradientImage()
580 gradient->radii.y=(double) image->rows/2.0; in GradientImage()
584 gradient->radii.x=(double) MagickMax(image->columns,image->rows)/2.0; in GradientImage()
585 gradient->radii.y=gradient->radii.x; in GradientImage()
[all …]

1234