Home
last modified time | relevance | path

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

12345

/external/skia/src/effects/
DSk2DPathEffect.cpp63 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/
DSk2DPathEffect.cpp58 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/
Dmixedtextblobs.cpp63 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()
Dlocalmatriximagefilter.cpp32 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),
Droundrects.cpp214 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()
Dimagefilterstransformed.cpp93 canvas->translate(size * SK_ScalarHalf, size * SK_ScalarHalf); in onDraw()
100 canvas->translate(-size * SK_ScalarHalf, -size * SK_ScalarHalf); in onDraw()
Dxfermodes.cpp130 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()
Dcoloremoji.cpp147 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()
Dovals.cpp205 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()
Dfilltypespersp.cpp57 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()
Doffsetimagefilter.cpp118 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw()
127 canvas->drawRect(cr.rect().makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw()
Dconicpaths.cpp64 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/
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()
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()
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()
/external/skqp/tests/
DPathMeasureTest.cpp116 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/
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()
/external/skqp/src/gpu/ops/
DGrOvalOpFactory.cpp963 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 …]
DGrStrokeRectOp.cpp624 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/
DGrOvalOpFactory.cpp1084 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 …]

12345