Home
last modified time | relevance | path

Searched refs:SkScalarHalf (Results 1 – 25 of 78) sorted by relevance

1234

/third_party/skia/src/effects/
DSkDashPathEffect.cpp49 SkScalar radius = SkScalarHalf(rec.getWidth()); in outset_for_stroke()
219 results->fSize.set(SkScalarHalf(fIntervals[0]), SkScalarHalf(rec.getWidth())); in onAsPoints()
222 results->fSize.set(SkScalarHalf(rec.getWidth()), SkScalarHalf(fIntervals[0])); in onAsPoints()
288 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
289 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
292 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
293 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
295 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
296 halfHeight = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
318 distance += SkScalarHalf(fIntervals[0]); in onAsPoints()
[all …]
/third_party/flutter/skia/src/effects/
DSkDashPathEffect.cpp49 SkScalar radius = SkScalarHalf(rec.getWidth()); in outset_for_stroke()
219 results->fSize.set(SkScalarHalf(fIntervals[0]), SkScalarHalf(rec.getWidth())); in onAsPoints()
222 results->fSize.set(SkScalarHalf(rec.getWidth()), SkScalarHalf(fIntervals[0])); in onAsPoints()
288 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
289 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
292 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
293 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
295 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
296 halfHeight = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
318 distance += SkScalarHalf(fIntervals[0]); in onAsPoints()
[all …]
/third_party/flutter/skia/samplecode/
DSampleStringArt.cpp26 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
28 SkPoint center = SkPoint::Make(SkScalarHalf(this->width()), SkScalarHalf(this->height())); in onDrawContent()
35 while (length < (SkScalarHalf(SkMinScalar(this->width(), this->height())) - 10.f)) in onDrawContent()
40 length += angle / SkScalarHalf(SK_ScalarPI); in onDrawContent()
DSampleFilterQuality.cpp69 canvas->translate(-SkScalarHalf(orig->width()) * (S - D) / S, in zoom_up()
70 -SkScalarHalf(orig->height()) * (S - D) / S); in zoom_up()
193 canvas->translate(SkScalarHalf(size.width()), SkScalarHalf(size.height())); in drawTheImage()
196 … canvas->drawImage(fImage.get(), -SkScalarHalf(fImage->width()), -SkScalarHalf(fImage->height()), in drawTheImage()
221 canvas->translate(SkScalarHalf(fCell.width() - fImage->width()), in drawHere()
222 SkScalarHalf(fCell.height() - fImage->height())); in drawHere()
230 SkScalarHalf(fCell.width() - zoomed->width()), in drawHere()
231 SkScalarHalf(fCell.height() - zoomed->height())); in drawHere()
DSampleManyRects.cpp44 SkIntToScalar(x) + SkScalarHalf(rect.fRight), in onDrawContent()
45 SkIntToScalar(y) + SkScalarHalf(rect.fBottom)); in onDrawContent()
DSampleChart.cpp19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
20 yAvg + SkScalarHalf(ySpread)); in gen_data()
/third_party/skia/samplecode/
DSampleStringArt.cpp26 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
28 SkPoint center = SkPoint::Make(SkScalarHalf(this->width()), SkScalarHalf(this->height())); in onDrawContent()
35 while (length < (SkScalarHalf(std::min(this->width(), this->height())) - 10.f)) in onDrawContent()
40 length += angle / SkScalarHalf(SK_ScalarPI); in onDrawContent()
DSampleManyRects.cpp44 SkIntToScalar(x) + SkScalarHalf(rect.fRight), in onDrawContent()
45 SkIntToScalar(y) + SkScalarHalf(rect.fBottom)); in onDrawContent()
DSampleChart.cpp19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
20 yAvg + SkScalarHalf(ySpread)); in gen_data()
/third_party/skia/gm/
Dstringart.cpp45 SkScalar angle = kAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDraw()
47 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw()
54 for (int i = 0; i < fNumSteps && length < (SkScalarHalf(size) - 10.f); ++i) { in onDraw()
58 length += angle / SkScalarHalf(SK_ScalarPI); in onDraw()
Dbigtileimagefilter.cpp35 canvas->drawCircle(SkScalarHalf(size), SkScalarHalf(size), SkScalarHalf(size), paint); in create_circle_texture()
Dfilterindiabox.cpp58 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
59 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
/third_party/flutter/skia/gm/
Dstringart.cpp45 SkScalar angle = kAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDraw()
47 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw()
54 for (int i = 0; i < fNumSteps && length < (SkScalarHalf(size) - 10.f); ++i) { in onDraw()
58 length += angle / SkScalarHalf(SK_ScalarPI); in onDraw()
Dbigtileimagefilter.cpp35 canvas->drawCircle(SkScalarHalf(size), SkScalarHalf(size), SkScalarHalf(size), paint); in create_circle_texture()
Dfilterindiabox.cpp60 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
61 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
Dmultipicturedraw.cpp49 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide); in make_hex_path()
51 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
52 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
161 tri.rLineTo(SkScalarHalf(kTriSide), 1.5f * kTriSide / kRoot3); in make_tri_path()
168 SkPath tri = make_tri_path(SkScalarHalf(kTriSide), 0); in make_tri_picture()
207 canvas->translate(SkScalarHalf(kTriSide), 0); in make_sub_picture()
/third_party/skia/src/core/
DSkRectPriv.h64 return SkScalarHalf(r.fRight) - SkScalarHalf(r.fLeft); in HalfWidth()
68 return SkScalarHalf(r.fBottom) - SkScalarHalf(r.fTop); in HalfHeight()
DSkRRect.cpp71 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
112 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
399 if (fRadii[0].fX >= SkScalarHalf(fRect.width()) && in computeType()
400 fRadii[0].fY >= SkScalarHalf(fRect.height())) { in computeType()
466 dst->fRadii[i].fX = SkScalarHalf(newRect.width()); in transform()
467 dst->fRadii[i].fY = SkScalarHalf(newRect.height()); in transform()
DSkContourMeasure.cpp140 SkScalar dx = SkScalarHalf(pts[1].fX) - in quad_too_curvy()
141 SkScalarHalf(SkScalarHalf(pts[0].fX + pts[2].fX)); in quad_too_curvy()
142 SkScalar dy = SkScalarHalf(pts[1].fY) - in quad_too_curvy()
143 SkScalarHalf(SkScalarHalf(pts[0].fY + pts[2].fY)); in quad_too_curvy()
/third_party/flutter/skia/src/core/
DSkRRect.cpp47 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
88 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
359 if (fRadii[0].fX >= SkScalarHalf(fRect.width()) && in computeType()
360 fRadii[0].fY >= SkScalarHalf(fRect.height())) { in computeType()
422 dst->fRadii[i].fX = SkScalarHalf(newRect.width()); in transform()
423 dst->fRadii[i].fY = SkScalarHalf(newRect.height()); in transform()
648 if (!SkScalarNearlyEqual(fRadii[i].fX, SkScalarHalf(fRect.width())) || in isValid()
649 !SkScalarNearlyEqual(fRadii[i].fY, SkScalarHalf(fRect.height()))) { in isValid()
DSkContourMeasure.cpp135 SkScalar dx = SkScalarHalf(pts[1].fX) - in quad_too_curvy()
136 SkScalarHalf(SkScalarHalf(pts[0].fX + pts[2].fX)); in quad_too_curvy()
137 SkScalar dy = SkScalarHalf(pts[1].fY) - in quad_too_curvy()
138 SkScalarHalf(SkScalarHalf(pts[0].fY + pts[2].fY)); in quad_too_curvy()
/third_party/flutter/skia/bench/
DChartBench.cpp25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
26 yAvg + SkScalarHalf(ySpread)); in gen_data()
/third_party/skia/bench/
DChartBench.cpp25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
26 yAvg + SkScalarHalf(ySpread)); in gen_data()
/third_party/flutter/skia/tests/
DClipperTest.cpp81 static const SkScalar CX = SkScalarHalf(L + R); in test_intersectline()
82 static const SkScalar CY = SkScalarHalf(T + B); in test_intersectline()
/third_party/skia/tests/
DClipperTest.cpp81 static const SkScalar CX = SkScalarHalf(L + R); in test_intersectline()
82 static const SkScalar CY = SkScalarHalf(T + B); in test_intersectline()

1234