/external/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 63 src.set(SkIntToScalar(x) + SK_ScalarHalf, SkIntToScalar(y) + SK_ScalarHalf); in nextSpan() 97 src[0].set(SkIntToScalar(u) + SK_ScalarHalf, SkIntToScalar(v) + SK_ScalarHalf); in nextSpan() 98 src[1].set(SkIntToScalar(u+ucount) + SK_ScalarHalf, SkIntToScalar(v) + SK_ScalarHalf); in nextSpan()
|
/external/skqp/src/effects/ |
D | Sk2DPathEffect.cpp | 58 src.set(SkIntToScalar(x) + SK_ScalarHalf, SkIntToScalar(y) + SK_ScalarHalf); in nextSpan() 92 src[0].set(SkIntToScalar(u) + SK_ScalarHalf, SkIntToScalar(v) + SK_ScalarHalf); in nextSpan() 93 src[1].set(SkIntToScalar(u+ucount) + SK_ScalarHalf, SkIntToScalar(v) + SK_ScalarHalf); in nextSpan()
|
/external/skqp/gm/ |
D | mixedtextblobs.cpp | 63 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw() 64 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw() 120 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onDraw() 121 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onDraw() 122 const SkScalar boundsQuarterWidth = boundsHalfWidth * SK_ScalarHalf; in onDraw() 123 const SkScalar boundsQuarterHeight = boundsHalfHeight * SK_ScalarHalf; in onDraw()
|
D | localmatriximagefilter.cpp | 32 SkRect r = SkRect::MakeIWH(image->width(), image->height()).makeOutset(SK_ScalarHalf, in show_image() 33 SK_ScalarHalf); in show_image() 60 SkMatrix::MakeScale(SK_ScalarHalf, SK_ScalarHalf),
|
D | roundrects.cpp | 214 SK_ScalarHalf * kYStep); in onDraw() 252 SK_ScalarHalf * kYStep); in onDraw() 264 SkScalar pos[] = { 0, SK_ScalarHalf, SK_Scalar1 }; in onDraw() 273 SK_ScalarHalf * kYStep); in onDraw() 308 SK_ScalarHalf * kYStep); in onDraw() 329 SK_ScalarHalf * kYStep); in onDraw() 352 SK_ScalarHalf * kYStep); in onDraw()
|
D | imagefilterstransformed.cpp | 93 canvas->translate(size * SK_ScalarHalf, size * SK_ScalarHalf); in onDraw() 100 canvas->translate(-size * SK_ScalarHalf, -size * SK_ScalarHalf); in onDraw()
|
D | xfermodes.cpp | 130 m.postScale(SK_ScalarHalf, SK_ScalarHalf, x, y); in draw_mode() 176 m.postScale(SK_ScalarHalf, SK_ScalarHalf, x, y); in draw_mode() 255 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDraw()
|
D | coloremoji.cpp | 147 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onDraw() 148 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onDraw() 149 const SkScalar boundsQuarterWidth = boundsHalfWidth * SK_ScalarHalf; in onDraw() 150 const SkScalar boundsQuarterHeight = boundsHalfHeight * SK_ScalarHalf; in onDraw()
|
D | ovals.cpp | 205 SK_ScalarHalf * kYStep); in onDraw() 237 SK_ScalarHalf * kYStep); in onDraw() 249 SkScalar pos[] = { 0, SK_ScalarHalf, SK_Scalar1 }; in onDraw() 258 SK_ScalarHalf * kYStep); in onDraw() 279 SK_ScalarHalf * kYStep); in onDraw()
|
D | filltypespersp.cpp | 57 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in showFour() 85 SkScalar pos[] = {0, SK_ScalarHalf / 2, in onDraw() 86 3 * SK_ScalarHalf / 2, SK_Scalar1}; in onDraw()
|
D | offsetimagefilter.cpp | 118 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw() 127 canvas->drawRect(cr.rect().makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw()
|
D | conicpaths.cpp | 64 thinEllipse->conicTo(100, 100, 5, 0, SK_ScalarHalf); in onOnceBeforeDraw() 69 veryThinEllipse->conicTo(100, 100, 1, 0, SK_ScalarHalf); in onOnceBeforeDraw() 74 closedEllipse->conicTo(100, 100, 0, 0, SK_ScalarHalf); in onOnceBeforeDraw()
|
/external/skia/gm/ |
D | mixedtextblobs.cpp | 71 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw() 72 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw() 127 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onDraw() 128 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onDraw() 129 const SkScalar boundsQuarterWidth = boundsHalfWidth * SK_ScalarHalf; in onDraw() 130 const SkScalar boundsQuarterHeight = boundsHalfHeight * SK_ScalarHalf; in onDraw()
|
D | localmatriximagefilter.cpp | 39 SkRect r = SkRect::MakeIWH(image->width(), image->height()).makeOutset(SK_ScalarHalf, in show_image() 40 SK_ScalarHalf); in show_image() 62 SkMatrix::Scale(SK_ScalarHalf, SK_ScalarHalf),
|
D | roundrects.cpp | 221 SK_ScalarHalf * kYStep); in onDraw() 259 SK_ScalarHalf * kYStep); in onDraw() 271 SkScalar pos[] = { 0, SK_ScalarHalf, SK_Scalar1 }; in onDraw() 280 SK_ScalarHalf * kYStep); in onDraw() 315 SK_ScalarHalf * kYStep); in onDraw() 336 SK_ScalarHalf * kYStep); in onDraw() 359 SK_ScalarHalf * kYStep); in onDraw()
|
D | xfermodes.cpp | 145 m.postScale(SK_ScalarHalf, SK_ScalarHalf, x, y); in draw_mode() 191 m.postScale(SK_ScalarHalf, SK_ScalarHalf, x, y); in draw_mode() 270 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDraw()
|
D | coloremoji.cpp | 161 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onDraw() 162 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onDraw() 163 const SkScalar boundsQuarterWidth = boundsHalfWidth * SK_ScalarHalf; in onDraw() 164 const SkScalar boundsQuarterHeight = boundsHalfHeight * SK_ScalarHalf; in onDraw()
|
D | ovals.cpp | 212 SK_ScalarHalf * kYStep); in onDraw() 244 SK_ScalarHalf * kYStep); in onDraw() 256 SkScalar pos[] = { 0, SK_ScalarHalf, SK_Scalar1 }; in onDraw() 265 SK_ScalarHalf * kYStep); in onDraw() 286 SK_ScalarHalf * kYStep); in onDraw()
|
D | filltypespersp.cpp | 70 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in showFour() 98 SkScalar pos[] = {0, SK_ScalarHalf / 2, in onDraw() 99 3 * SK_ScalarHalf / 2, SK_Scalar1}; in onDraw()
|
D | offsetimagefilter.cpp | 123 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw() 132 SkRect cr = SkRect::Make(*cropR).makeInset(SK_ScalarHalf, SK_ScalarHalf); in doDraw()
|
/external/skqp/tests/ |
D | PathMeasureTest.cpp | 116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 119 -SK_ScalarHalf, in DEF_TEST() 141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 144 SK_ScalarHalf, in DEF_TEST() 177 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 180 SK_ScalarHalf, in DEF_TEST() 188 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
|
/external/skia/tests/ |
D | PathMeasureTest.cpp | 117 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 120 -SK_ScalarHalf, in DEF_TEST() 142 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 145 SK_ScalarHalf, in DEF_TEST() 178 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 181 SK_ScalarHalf, in DEF_TEST() 189 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
|
/external/skqp/src/gpu/ops/ |
D | GrOvalOpFactory.cpp | 963 SkScalar innerRadius = -SK_ScalarHalf; in CircleOp() 968 halfWidth = SK_ScalarHalf; in CircleOp() 983 outerRadius += SK_ScalarHalf; in CircleOp() 984 innerRadius -= SK_ScalarHalf; in CircleOp() 1405 halfWidth = SK_ScalarHalf; in ButtCapDashedCircleOp() 1417 outerRadius += SK_ScalarHalf; in ButtCapDashedCircleOp() 1418 innerRadius -= SK_ScalarHalf; in ButtCapDashedCircleOp() 1672 scaledStroke.set(SK_ScalarHalf, SK_ScalarHalf); in Make() 1674 scaledStroke.scale(SK_ScalarHalf); in Make() 1678 if (scaledStroke.length() > SK_ScalarHalf && in Make() [all …]
|
D | GrStrokeRectOp.cpp | 624 if (inset < SK_ScalarHalf) { in setup_scale() 625 *scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf)); in setup_scale() 652 inset = SK_ScalarHalf * SkMinScalar(inset, devOutside.fBottom - devInside.fBottom); in generateAAStrokeRectGeometry() 654 inset = SK_ScalarHalf * in generateAAStrokeRectGeometry() 661 inset = SK_ScalarHalf * in generateAAStrokeRectGeometry() 676 vertices.writeQuad(inset_fan(devOutside, -SK_ScalarHalf, -SK_ScalarHalf), in generateAAStrokeRectGeometry() 682 vertices.writeQuad(inset_fan(devOutsideAssist, -SK_ScalarHalf, -SK_ScalarHalf), in generateAAStrokeRectGeometry() 713 vertices.writeQuad(inset_fan(devInside, SK_ScalarHalf, SK_ScalarHalf), in generateAAStrokeRectGeometry()
|
/external/skia/src/gpu/ops/ |
D | GrOvalOpFactory.cpp | 1084 SkScalar innerRadius = -SK_ScalarHalf; in CircleOp() 1089 halfWidth = SK_ScalarHalf; in CircleOp() 1104 outerRadius += SK_ScalarHalf; in CircleOp() 1105 innerRadius -= SK_ScalarHalf; in CircleOp() 1570 halfWidth = SK_ScalarHalf; in ButtCapDashedCircleOp() 1582 outerRadius += SK_ScalarHalf; in ButtCapDashedCircleOp() 1583 innerRadius -= SK_ScalarHalf; in ButtCapDashedCircleOp() 1874 scaledStroke.set(SK_ScalarHalf, SK_ScalarHalf); in Make() 1876 scaledStroke.scale(SK_ScalarHalf); in Make() 1880 if (scaledStroke.length() > SK_ScalarHalf && in Make() [all …]
|