Home
last modified time | relevance | path

Searched refs:SK_ScalarHalf (Results 1 – 25 of 55) sorted by relevance

123

/third_party/skia/gm/
Dmixedtextblobs.cpp71 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()
Dlocalmatriximagefilter.cpp39 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),
Droundrects.cpp221 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()
Dxfermodes.cpp145 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()
Dcoloremoji.cpp161 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()
Dovals.cpp212 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()
Doffsetimagefilter.cpp123 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw()
132 SkRect cr = SkRect::Make(*cropR).makeInset(SK_ScalarHalf, SK_ScalarHalf); in doDraw()
Dfilltypespersp.cpp70 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()
Dhittestpath.cpp28 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()
Dconicpaths.cpp77 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()
Dimagefilterstransformed.cpp102 canvas->translate(size * SK_ScalarHalf, size * SK_ScalarHalf); in onDraw()
109 canvas->translate(-size * SK_ScalarHalf, -size * SK_ScalarHalf); in onDraw()
Dxfermodes2.cpp79 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDraw()
Dcoloremoji_blendmodes.cpp138 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDraw()
/third_party/skia/src/effects/
DSk2DPathEffect.cpp51 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/
DPathMeasureTest.cpp117 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()
DShaderImageFilterTest.cpp33 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in test_unscaled()
81 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in test_scaled()
DPDFPrimitivesTest.cpp115 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/
DSkDisplacementMapImageFilter.cpp208 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/
DSkScalar.h19 #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/
DGrOvalOpFactory.cpp1050 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/
DTileBench.cpp87 canvas->scale(SK_ScalarHalf, SK_ScalarHalf); in onDraw()
/third_party/skia/src/core/
DSkGlyphRunPainter.cpp400 return {SK_ScalarHalf, SK_ScalarHalf}; in HalfAxisSampleFreq()
404 return {SkPackedGlyphID::kSubpixelRound, SK_ScalarHalf}; in HalfAxisSampleFreq()
406 return {SK_ScalarHalf, SkPackedGlyphID::kSubpixelRound}; in HalfAxisSampleFreq()
DSkBitmapProcState.h160 SkIntToScalar(x) + SK_ScalarHalf,
161 SkIntToScalar(y) + SK_ScalarHalf, &pt);
/third_party/skia/samplecode/
DSampleXfermodesBlur.cpp125 r.inset(-SK_ScalarHalf, -SK_ScalarHalf); in onDrawContent()
DSampleFatBits.cpp181 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()

123