Home
last modified time | relevance | path

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

12

/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()
Doccludedrrectblur.cpp98 SkVector radii[4] = { { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f } }; in draw_45() local
99 radii[left] = SkVector::Make(kSize, kSize); in draw_45()
100 radii[right] = SkVector::Make(kSize, kSize); in draw_45()
104 radii); in draw_45()
110 radii); in draw_45()
209 SkVector radii[4] = { { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f } }; in draw_30_60() local
210 radii[left] = SkVector::Make(SkIntToScalar(kWidth), SkIntToScalar(kWidth)); in draw_30_60()
211 radii[right] = SkVector::Make(SkIntToScalar(kWidth), SkIntToScalar(kWidth)); in draw_30_60()
213 rr.setRectRadii(offset_center_to(r, center.fX + dist*v.fX, center.fY + dist*v.fY), radii); in draw_30_60()
217 occRR.setRectRadii(offset_center_to(r, center.fX + dist*v.fX, center.fY + dist*v.fY), radii); in draw_30_60()
Ddrrect.cpp34 SkVector radii[4] = { in onDraw() local
44 outers[3].setRectRadii(r, radii); in onDraw()
53 inners[4].setRectRadii(r, radii); in onDraw()
Dpathcontourstart.cpp64 const SkVector radii[4] = { {15, 15}, {15, 15}, {15, 15}, {15, 15}}; in onDraw() local
65 rrect.setRectRadii(rect, radii); in onDraw()
/external/skia/src/gpu/effects/
DGrEllipseEffect.cpp62 auto radii = _outer.radii(); in onSetData() local
63 (void)radii; in onSetData()
69 if (radii != prevRadii || center != prevCenter) { in onSetData()
74 if (radii.fX > radii.fY) { in onSetData()
76 invRYSqd = (radii.fX * radii.fX) / (radii.fY * radii.fY); in onSetData()
77 pdman.set2f(scale, radii.fX, 1.f / radii.fX); in onSetData()
79 invRXSqd = (radii.fY * radii.fY) / (radii.fX * radii.fX); in onSetData()
81 pdman.set2f(scale, radii.fY, 1.f / radii.fY); in onSetData()
84 invRXSqd = 1.f / (radii.fX * radii.fX); in onSetData()
85 invRYSqd = 1.f / (radii.fY * radii.fY); in onSetData()
[all …]
DGrEllipseEffect.fp10 in vec2 radii;
24 if (radii != prevRadii || center != prevCenter) {
28 // as the scale factor. The inv radii need to be pre-adjusted by the scale factor.
30 if (radii.fX > radii.fY) {
32 invRYSqd = (radii.fX * radii.fX) /
33 (radii.fY * radii.fY);
34 pdman.set2f(scale, radii.fX, 1.f / radii.fX);
36 invRXSqd = (radii.fY * radii.fY) /
37 (radii.fX * radii.fX);
39 pdman.set2f(scale, radii.fY, 1.f / radii.fY);
[all …]
DGrEllipseEffect.h23 SkPoint radii() const { return fRadii; } in radii() function
24 static sk_sp<GrFragmentProcessor> Make(int edgeType, SkPoint center, SkPoint radii) { in Make() argument
25 return sk_sp<GrFragmentProcessor>(new GrEllipseEffect(edgeType, center, radii)); in Make()
30 GrEllipseEffect(int edgeType, SkPoint center, SkPoint radii) in GrEllipseEffect() argument
34 , 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()
610 const SkVector& r0 = rrect.radii(SkRRect::kUpperLeft_Corner); in onSetData()
630 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 …]
DSamplePathFuzz.cpp355 SkVector radii[4]; in makeRRect() local
356 makeVectorArray(SK_ARRAY_COUNT(radii), radii); in makeRRect()
357 rrect.setRectRadii(rect, radii); in makeRRect()
391 SkScalar radii[8]; in makePath() local
392 makeScalarArray(SK_ARRAY_COUNT(radii), radii); in makePath()
394 path.addRoundRect(rect, radii, dir); in makePath()
/external/skia/tools/
Dsk_tool_utils.cpp490 SkVector radii = rr.radii(SkRRect::kUpperLeft_Corner); in compute_central_occluder() local
491 if (!radii.isZero()) { in compute_central_occluder()
492 SkPoint p = intersection(radii.fX, radii.fY); in compute_central_occluder()
494 newL = SkTMax(newL, r.fLeft + radii.fX - p.fX); in compute_central_occluder()
495 newT = SkTMax(newT, r.fTop + radii.fY - p.fY); in compute_central_occluder()
498 radii = rr.radii(SkRRect::kUpperRight_Corner); in compute_central_occluder()
499 if (!radii.isZero()) { in compute_central_occluder()
500 SkPoint p = intersection(radii.fX, radii.fY); in compute_central_occluder()
502 newR = SkTMin(newR, r.fRight + p.fX - radii.fX); in compute_central_occluder()
503 newT = SkTMax(newT, r.fTop + radii.fY - p.fY); in compute_central_occluder()
[all …]
/external/skia/tests/
DRoundRectTest.cpp25 SkVector radii[4] = { in test_tricky_radii() local
29 rr.setRectRadii(r, radii); in test_tricky_radii()
31 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii()
32 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii()
66 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; in test_empty() local
83 r.setRectRadii(oooRects[i], radii); in test_empty()
100 r.setRectRadii(emptyRects[i], radii); in test_empty()
146 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); in test_9patch_rrect()
150 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local
151 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 …]
DDrawPathTest.cpp322 SkVector radii[4] = { in test_crbug_472147_simple() local
326 rr.setRectRadii(r, radii); in test_crbug_472147_simple()
337 SkVector radii[4] = { in test_crbug_472147_actual() local
341 rr.setRectRadii(r, radii); in test_crbug_472147_actual()
/external/skia/src/core/
DSkRRect.cpp124 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii()
133 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { in setRectRadii()
138 memcpy(fRadii, radii, sizeof(fRadii)); in setRectRadii()
282 static bool radii_are_nine_patch(const SkVector radii[4]) { in radii_are_nine_patch()
283 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch()
284 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch()
285 radii[SkRRect::kUpperRight_Corner].fX == radii[SkRRect::kLowerRight_Corner].fX && in radii_are_nine_patch()
286 radii[SkRRect::kLowerLeft_Corner].fY == radii[SkRRect::kLowerRight_Corner].fY; in radii_are_nine_patch()
443 SkVector radii[4]; in inset() local
444 memcpy(radii, fRadii, sizeof(radii)); in inset()
[all …]
/external/skia/include/core/
DSkRRect.h209 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
220 const SkVector& radii(Corner corner) const { return fRadii[corner]; } in radii() function
332 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
334 , 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 …]
/external/skia/src/utils/
DSkDumpCanvas.cpp49 SkVector radii[4] = { in toString() local
50 rrect.radii(SkRRect::kUpperLeft_Corner), in toString()
51 rrect.radii(SkRRect::kUpperRight_Corner), in toString()
52 rrect.radii(SkRRect::kLowerRight_Corner), in toString()
53 rrect.radii(SkRRect::kLowerLeft_Corner), in toString()
56 radii[0].x(), radii[0].y(), in toString()
57 radii[1].x(), radii[1].y(), in toString()
58 radii[2].x(), radii[2].y(), in toString()
59 radii[3].x(), radii[3].y()); in toString()
DSkParsePath.cpp166 SkPoint radii; in FromSVGString() local
168 if ((data = find_points(data, &radii, 1, false, nullptr)) in FromSVGString()
177 path.arcTo(radii, angle, (SkPath::ArcSize) SkToBool(largeArc), in FromSVGString()
/external/skia/src/effects/
DSkRRectsGaussianEdgeMaskFilter.cpp67 const SkVector& radii = rr.getSimpleRadii(); in compute_rrect_normalized_dist() local
68 SkASSERT(SkScalarNearlyEqual(radii.fX, radii.fY)); in compute_rrect_normalized_dist()
91 SkScalar insetDist = SkTMin(SkTMax(rad, radii.fX), SkTMin(halfW, halfH)); in compute_rrect_normalized_dist()
100 SkVector cornerTop = { halfW - radii.fX - coneBottom.fX, halfH - coneBottom.fY }; in compute_rrect_normalized_dist()
101 SkVector cornerRight = { halfW - coneBottom.fX, halfH - radii.fY - coneBottom.fY }; in compute_rrect_normalized_dist()
114 SkVector cornerCenterInConeSpace = { insetDist - radii.fX, insetDist - radii.fY }; in compute_rrect_normalized_dist()
122 SkScalar c = connectingVec.dot(connectingVec) - radii.fX * radii.fY; in compute_rrect_normalized_dist()
DSkBlurMaskFilter.cpp208 const SkVector& devRadiiUL = devRRect.radii(SkRRect::kUpperLeft_Corner); in ComputeBlurredRRectParams()
209 const SkVector& devRadiiUR = devRRect.radii(SkRRect::kUpperRight_Corner); in ComputeBlurredRRectParams()
210 const SkVector& devRadiiLR = devRRect.radii(SkRRect::kLowerRight_Corner); in ComputeBlurredRRectParams()
211 const SkVector& devRadiiLL = devRRect.radii(SkRRect::kLowerLeft_Corner); in ComputeBlurredRRectParams()
224 const SkVector& srcRadiiUL = srcRRect.radii(SkRRect::kUpperLeft_Corner); in ComputeBlurredRRectParams()
225 const SkVector& srcRadiiUR = srcRRect.radii(SkRRect::kUpperRight_Corner); in ComputeBlurredRRectParams()
226 const SkVector& srcRadiiLR = srcRRect.radii(SkRRect::kLowerRight_Corner); in ComputeBlurredRRectParams()
227 const SkVector& srcRadiiLL = srcRRect.radii(SkRRect::kLowerLeft_Corner); in ComputeBlurredRRectParams()
526 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner); in filterRRectToNine()
527 const SkVector& UR = rrect.radii(SkRRect::kUpperRight_Corner); in filterRRectToNine()
[all …]
/external/skia/tools/lua/
Dclassify_rrect_clips.lua8 local x, y = rrect:radii(0)
21 local x, y = rrect:radii(i-1)
59 local x, y = rrect:radii(0)
/external/skia/src/gpu/instanced/
DInstancedOp.cpp53 const SkVector& radii = rrect.getSimpleRadii(); in appendRRectParams() local
54 this->appendParamsTexel(radii.x(), radii.y(), rrect.width(), rrect.height()); in appendRRectParams()
60 const SkVector& radiiTL = rrect.radii(SkRRect::kUpperLeft_Corner); in appendRRectParams()
61 const SkVector& radiiBR = rrect.radii(SkRRect::kLowerRight_Corner); in appendRRectParams()
82 const SkVector& radiiTL = rrect.radii(SkRRect::kUpperLeft_Corner); in appendRRectParams()
83 const SkVector& radiiTR = rrect.radii(SkRRect::kUpperRight_Corner); in appendRRectParams()
84 const SkVector& radiiBR = rrect.radii(SkRRect::kLowerRight_Corner); in appendRRectParams()
85 const SkVector& radiiBL = rrect.radii(SkRRect::kLowerLeft_Corner); in appendRRectParams()
/external/skia/tools/debugger/
DSkObjectParser.cpp306 const SkVector& radii = rrect.radii((SkRRect::Corner) i); in RRectToString() local
307 mRRect->appendScalar(radii.fX); in RRectToString()
309 mRRect->appendScalar(radii.fY); in RRectToString()

12