Home
last modified time | relevance | path

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

1234

/external/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 …]
/external/skqp/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 …]
/external/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()
/external/skqp/samplecode/
DSampleStringArt.cpp32 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
34 SkPoint center = SkPoint::Make(SkScalarHalf(this->width()), SkScalarHalf(this->height())); in onDrawContent()
41 while (length < (SkScalarHalf(SkMinScalar(this->width(), this->height())) - 10.f)) in onDrawContent()
46 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()
198 canvas->translate(SkScalarHalf(size.width()), SkScalarHalf(size.height())); in drawTheImage()
201 … canvas->drawImage(fImage.get(), -SkScalarHalf(fImage->width()), -SkScalarHalf(fImage->height()), in drawTheImage()
226 canvas->translate(SkScalarHalf(fCell.width() - fImage->width()), in drawHere()
227 SkScalarHalf(fCell.height() - fImage->height())); in drawHere()
235 SkScalarHalf(fCell.width() - zoomed->width()), in drawHere()
236 SkScalarHalf(fCell.height() - zoomed->height())); in drawHere()
DSampleManyRects.cpp50 SkIntToScalar(x) + SkScalarHalf(rect.fRight), in onDrawContent()
51 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()
/external/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.cpp59 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
60 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
/external/skqp/gm/
Dstringart.cpp39 SkScalar angle = kAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDraw()
41 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw()
48 for (int i = 0; i < fNumSteps && length < (SkScalarHalf(size) - 10.f); ++i) { in onDraw()
52 length += angle / SkScalarHalf(SK_ScalarPI); in onDraw()
Dbigtileimagefilter.cpp23 canvas->drawCircle(SkScalarHalf(size), SkScalarHalf(size), SkScalarHalf(size), paint); in create_circle_texture()
Dfilterindiabox.cpp48 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
49 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
Dmultipicturedraw.cpp34 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide); in make_hex_path()
36 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
37 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
146 tri.rLineTo(SkScalarHalf(kTriSide), 1.5f * kTriSide / kRoot3); in make_tri_path()
153 SkPath tri = make_tri_path(SkScalarHalf(kTriSide), 0); in make_tri_picture()
192 canvas->translate(SkScalarHalf(kTriSide), 0); in make_sub_picture()
/external/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()
/external/skqp/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()
424 dst->fRadii[i].fX = SkScalarHalf(newRect.width()); in transform()
425 dst->fRadii[i].fY = SkScalarHalf(newRect.height()); in transform()
624 if (!SkScalarNearlyEqual(fRadii[i].fX, SkScalarHalf(fRect.width())) || in isValid()
625 !SkScalarNearlyEqual(fRadii[i].fY, SkScalarHalf(fRect.height()))) { in isValid()
DSkPathMeasure.cpp145 SkScalar dx = SkScalarHalf(pts[1].fX) - in quad_too_curvy()
146 SkScalarHalf(SkScalarHalf(pts[0].fX + pts[2].fX)); in quad_too_curvy()
147 SkScalar dy = SkScalarHalf(pts[1].fY) - in quad_too_curvy()
148 SkScalarHalf(SkScalarHalf(pts[0].fY + pts[2].fY)); in quad_too_curvy()
/external/skqp/bench/
DChartBench.cpp25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
26 yAvg + SkScalarHalf(ySpread)); in gen_data()
/external/skia/bench/
DChartBench.cpp25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
26 yAvg + SkScalarHalf(ySpread)); in gen_data()
/external/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()
/external/skqp/include/core/
DSkRRect.h214 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval()
215 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval()

1234