/external/skia/src/effects/ |
D | SkDashPathEffect.cpp | 49 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/ |
D | SkDashPathEffect.cpp | 49 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/ |
D | SampleStringArt.cpp | 26 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()
|
D | SampleManyRects.cpp | 44 SkIntToScalar(x) + SkScalarHalf(rect.fRight), in onDrawContent() 45 SkIntToScalar(y) + SkScalarHalf(rect.fBottom)); in onDrawContent()
|
D | SampleChart.cpp | 19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data() 20 yAvg + SkScalarHalf(ySpread)); in gen_data()
|
/external/skqp/samplecode/ |
D | SampleStringArt.cpp | 32 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()
|
D | SampleFilterQuality.cpp | 69 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()
|
D | SampleManyRects.cpp | 50 SkIntToScalar(x) + SkScalarHalf(rect.fRight), in onDrawContent() 51 SkIntToScalar(y) + SkScalarHalf(rect.fBottom)); in onDrawContent()
|
D | SampleChart.cpp | 19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data() 20 yAvg + SkScalarHalf(ySpread)); in gen_data()
|
/external/skia/gm/ |
D | stringart.cpp | 45 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()
|
D | bigtileimagefilter.cpp | 35 canvas->drawCircle(SkScalarHalf(size), SkScalarHalf(size), SkScalarHalf(size), paint); in create_circle_texture()
|
D | filterindiabox.cpp | 59 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw() 60 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
|
/external/skqp/gm/ |
D | stringart.cpp | 39 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()
|
D | bigtileimagefilter.cpp | 23 canvas->drawCircle(SkScalarHalf(size), SkScalarHalf(size), SkScalarHalf(size), paint); in create_circle_texture()
|
D | filterindiabox.cpp | 48 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw() 49 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
|
D | multipicturedraw.cpp | 34 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/ |
D | SkRectPriv.h | 64 return SkScalarHalf(r.fRight) - SkScalarHalf(r.fLeft); in HalfWidth() 68 return SkScalarHalf(r.fBottom) - SkScalarHalf(r.fTop); in HalfHeight()
|
D | SkRRect.cpp | 71 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()
|
D | SkContourMeasure.cpp | 140 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/ |
D | SkRRect.cpp | 47 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()
|
D | SkPathMeasure.cpp | 145 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/ |
D | ChartBench.cpp | 25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data() 26 yAvg + SkScalarHalf(ySpread)); in gen_data()
|
/external/skia/bench/ |
D | ChartBench.cpp | 25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data() 26 yAvg + SkScalarHalf(ySpread)); in gen_data()
|
/external/skia/tests/ |
D | ClipperTest.cpp | 81 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/ |
D | SkRRect.h | 214 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval() 215 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval()
|