/third_party/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 | 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()
|
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 | hittestpath.cpp | 28 for (SkScalar y = r.fTop + SK_ScalarHalf - MARGIN; y < r.fBottom + MARGIN; y += SK_Scalar1) { in test_hittest() 29 … for (SkScalar x = r.fLeft + SK_ScalarHalf - MARGIN; x < r.fRight + MARGIN; x += SK_Scalar1) { in test_hittest()
|
D | conicpaths.cpp | 77 thinEllipse->conicTo(100, 100, 5, 0, SK_ScalarHalf); in onOnceBeforeDraw() 82 veryThinEllipse->conicTo(100, 100, 1, 0, SK_ScalarHalf); in onOnceBeforeDraw() 87 closedEllipse->conicTo(100, 100, 0, 0, SK_ScalarHalf); in onOnceBeforeDraw()
|
D | imagefilterstransformed.cpp | 102 canvas->translate(size * SK_ScalarHalf, size * SK_ScalarHalf); in onDraw() 109 canvas->translate(-size * SK_ScalarHalf, -size * SK_ScalarHalf); in onDraw()
|
D | xfermodes2.cpp | 79 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDraw()
|
D | coloremoji_blendmodes.cpp | 138 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDraw()
|
/third_party/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 51 src.set(SkIntToScalar(x) + SK_ScalarHalf, SkIntToScalar(y) + SK_ScalarHalf); in nextSpan() 130 src[0].set(SkIntToScalar(u) + SK_ScalarHalf, SkIntToScalar(v) + SK_ScalarHalf); in nextSpan() 131 src[1].set(SkIntToScalar(u+ucount) + SK_ScalarHalf, SkIntToScalar(v) + SK_ScalarHalf); in nextSpan()
|
/third_party/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()
|
D | ShaderImageFilterTest.cpp | 33 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in test_unscaled() 81 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in test_scaled()
|
D | PDFPrimitivesTest.cpp | 115 assert_emit_eq_number(reporter, SK_ScalarHalf); in TestPDFUnion() 162 array->appendScalar(SK_ScalarHalf); in TestPDFArray() 207 dict->insertScalar("n2", SK_ScalarHalf); in TestPDFDict() 224 dict->insertScalar("n3", SK_ScalarHalf); in TestPDFDict()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkDisplacementMapImageFilter.cpp | 208 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in compute_displacement() 209 SK_ScalarHalf - scale.fY * SK_ScalarHalf); in compute_displacement() 374 bounds.outset(SkScalarAbs(fScale) * SK_ScalarHalf, SkScalarAbs(fScale) * SK_ScalarHalf); in computeFastBounds() 382 return src.makeOutset(SkScalarCeilToInt(SkScalarAbs(scale.fX) * SK_ScalarHalf), in onFilterNodeBounds() 383 SkScalarCeilToInt(SkScalarAbs(scale.fY) * SK_ScalarHalf)); in onFilterNodeBounds()
|
/third_party/skia/include/core/ |
D | SkScalar.h | 19 #define SK_ScalarHalf 0.5f macro 109 #define SkScalarAve(a, b) (((a) + (b)) * SK_ScalarHalf) 110 #define SkScalarHalf(a) ((a) * SK_ScalarHalf)
|
/third_party/skia/src/gpu/ops/ |
D | GrOvalOpFactory.cpp | 1050 SkScalar innerRadius = -SK_ScalarHalf; in CircleOp() 1055 halfWidth = SK_ScalarHalf; in CircleOp() 1070 outerRadius += SK_ScalarHalf; in CircleOp() 1071 innerRadius -= SK_ScalarHalf; in CircleOp() 1546 halfWidth = SK_ScalarHalf; in ButtCapDashedCircleOp() 1558 outerRadius += SK_ScalarHalf; in ButtCapDashedCircleOp() 1559 innerRadius -= SK_ScalarHalf; in ButtCapDashedCircleOp() 1860 scaledStroke.set(SK_ScalarHalf, SK_ScalarHalf); in Make() 1862 scaledStroke.scale(SK_ScalarHalf); in Make() 1866 if (scaledStroke.length() > SK_ScalarHalf && in Make() [all …]
|
/third_party/skia/bench/ |
D | TileBench.cpp | 87 canvas->scale(SK_ScalarHalf, SK_ScalarHalf); in onDraw()
|
/third_party/skia/src/core/ |
D | SkGlyphRunPainter.cpp | 400 return {SK_ScalarHalf, SK_ScalarHalf}; in HalfAxisSampleFreq() 404 return {SkPackedGlyphID::kSubpixelRound, SK_ScalarHalf}; in HalfAxisSampleFreq() 406 return {SK_ScalarHalf, SkPackedGlyphID::kSubpixelRound}; in HalfAxisSampleFreq()
|
D | SkBitmapProcState.h | 160 SkIntToScalar(x) + SK_ScalarHalf, 161 SkIntToScalar(y) + SK_ScalarHalf, &pt);
|
/third_party/skia/samplecode/ |
D | SampleXfermodesBlur.cpp | 125 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDrawContent()
|
D | SampleFatBits.cpp | 181 canvas->drawLine(0, y - SK_ScalarHalf, 999, y - SK_ScalarHalf, paint); in copyMinToMax() 185 canvas->drawLine(x - SK_ScalarHalf, 0, x - SK_ScalarHalf, 999, paint); in copyMinToMax()
|