Home
last modified time | relevance | path

Searched refs:SkDoubleToScalar (Results 1 – 25 of 96) sorted by relevance

1234

/external/skia/gm/
Dcollapsepaths.cpp118 path.moveTo(SkDoubleToScalar( 13.25), SkDoubleToScalar(197.75)); in test_collapse9()
119 path.lineTo(SkDoubleToScalar( 34.75), SkDoubleToScalar(174.75)); in test_collapse9()
120 path.lineTo(SkDoubleToScalar( 99.0364), SkDoubleToScalar(140.364)); in test_collapse9()
121 path.lineTo(SkDoubleToScalar( 99.25), SkDoubleToScalar(140.25)); in test_collapse9()
122 path.lineTo(SkDoubleToScalar(100.167), SkDoubleToScalar(140.096)); in test_collapse9()
123 path.lineTo(SkDoubleToScalar(130.50), SkDoubleToScalar(135.00)); in test_collapse9()
124 path.moveTo(SkDoubleToScalar( 39.25), SkDoubleToScalar( 47.50)); in test_collapse9()
125 path.lineTo(SkDoubleToScalar(100.167), SkDoubleToScalar(140.096)); in test_collapse9()
126 path.lineTo(SkDoubleToScalar( 99.0364), SkDoubleToScalar(140.364)); in test_collapse9()
127 path.lineTo(SkDoubleToScalar( 94.25), SkDoubleToScalar(141.50)); in test_collapse9()
Dimagefilterstransformed.cpp103 canvas->scale(SkDoubleToScalar(0.8), SkDoubleToScalar(0.8)); in onDraw()
107 canvas->skew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2)); in onDraw()
110 canvas->drawOval(SkRect::MakeXYWH(0, size * SkDoubleToScalar(0.1), in onDraw()
111 size, size * SkDoubleToScalar(0.6)), paint); in onDraw()
Dmatriximagefilter.cpp52 matrix.setSkew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2));
/external/skqp/src/pathops/
DSkPathOpsTypes.h238 return AlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlps()
243 return AlmostEqualUlpsNoNormalCheck(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlpsNoNormalCheck()
248 return AlmostEqualUlps_Pin(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlps_Pin()
257 return NotAlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in NotAlmostEqualUlps()
262 return NotAlmostEqualUlps_Pin(SkDoubleToScalar(a), SkDoubleToScalar(b)); in NotAlmostEqualUlps_Pin()
267 return NotAlmostDequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in NotAlmostDequalUlps()
273 return AlmostBequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostBequalUlps()
278 return AlmostPequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostPequalUlps()
283 return RoughlyEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in RoughlyEqualUlps()
288 return AlmostLessUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostLessUlps()
[all …]
DSkPathOpsCurve.cpp68 bounds->set(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setConicBounds()
69 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setConicBounds()
78 bounds->set(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setCubicBounds()
79 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setCubicBounds()
88 bounds->set(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setQuadBounds()
89 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setQuadBounds()
DSkPathOpsBounds.h44 if (pt.fX < fLeft) fLeft = SkDoubleToScalar(pt.fX); in add()
45 if (pt.fY < fTop) fTop = SkDoubleToScalar(pt.fY); in add()
46 if (pt.fX > fRight) fRight = SkDoubleToScalar(pt.fX); in add()
47 if (pt.fY > fBottom) fBottom = SkDoubleToScalar(pt.fY); in add()
DSkPathOpsPoint.h51 SkVector v = {SkDoubleToScalar(fX), SkDoubleToScalar(fY)}; in asSkVector()
212 SkPoint pt = {SkDoubleToScalar(fX), SkDoubleToScalar(fY)}; in asSkPoint()
/external/skia/src/pathops/
DSkPathOpsTypes.h238 return AlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlps()
243 return AlmostEqualUlpsNoNormalCheck(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlpsNoNormalCheck()
248 return AlmostEqualUlps_Pin(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlps_Pin()
257 return NotAlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in NotAlmostEqualUlps()
262 return NotAlmostEqualUlps_Pin(SkDoubleToScalar(a), SkDoubleToScalar(b)); in NotAlmostEqualUlps_Pin()
267 return NotAlmostDequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in NotAlmostDequalUlps()
273 return AlmostBequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostBequalUlps()
278 return AlmostPequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostPequalUlps()
283 return RoughlyEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in RoughlyEqualUlps()
288 return AlmostLessUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostLessUlps()
[all …]
DSkPathOpsCurve.cpp68 bounds->setLTRB(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setConicBounds()
69 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setConicBounds()
78 bounds->setLTRB(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setCubicBounds()
79 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setCubicBounds()
88 bounds->setLTRB(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setQuadBounds()
89 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setQuadBounds()
DSkPathOpsBounds.h44 if (pt.fX < fLeft) fLeft = SkDoubleToScalar(pt.fX); in add()
45 if (pt.fY < fTop) fTop = SkDoubleToScalar(pt.fY); in add()
46 if (pt.fX > fRight) fRight = SkDoubleToScalar(pt.fX); in add()
47 if (pt.fY > fBottom) fBottom = SkDoubleToScalar(pt.fY); in add()
/external/skia/docs/examples/
Dbug767834.cpp1233 path.moveTo(SkDoubleToScalar(wedge.fMove[0]), SkDoubleToScalar(wedge.fMove[1])); in draw()
1234 path.lineTo(SkDoubleToScalar(wedge.fLine1[0]), SkDoubleToScalar(wedge.fLine1[1])); in draw()
1237 SkScalar start = SkDoubleToScalar(wedge.fArc1Angles[0] * 180.f / SK_ScalarPI); in draw()
1238 SkScalar end = SkDoubleToScalar(wedge.fArc1Angles[1] * 180.f / SK_ScalarPI); in draw()
1243 path.lineTo(SkDoubleToScalar(wedge.fLine2[0]), SkDoubleToScalar(wedge.fLine2[1])); in draw()
Dbug583299.cpp829 path.moveTo(SkDoubleToScalar(wedge.fMove[0]), SkDoubleToScalar(wedge.fMove[1])); in draw()
830 path.lineTo(SkDoubleToScalar(wedge.fLine1[0]), SkDoubleToScalar(wedge.fLine1[1])); in draw()
833 SkScalar start = SkDoubleToScalar(wedge.fArc1Angles[0] * 180.f / SK_ScalarPI); in draw()
834 SkScalar end = SkDoubleToScalar(wedge.fArc1Angles[1] * 180.f / SK_ScalarPI); in draw()
839 path.lineTo(SkDoubleToScalar(wedge.fLine2[0]), SkDoubleToScalar(wedge.fLine2[1])); in draw()
/external/skia/src/core/
DSkMatrix44.cpp520 inverse->fMat[0][0] = SkDoubleToScalar(invXScale); in invert()
526 inverse->fMat[1][1] = SkDoubleToScalar(invYScale); in invert()
532 inverse->fMat[2][2] = SkDoubleToScalar(invZScale); in invert()
535 inverse->fMat[3][0] = SkDoubleToScalar(-fMat[3][0] * invXScale); in invert()
536 inverse->fMat[3][1] = SkDoubleToScalar(-fMat[3][1] * invYScale); in invert()
537 inverse->fMat[3][2] = SkDoubleToScalar(-fMat[3][2] * invZScale); in invert()
610 inverse->fMat[0][0] = SkDoubleToScalar(a11 * b11 - a12 * b10); in invert()
611 inverse->fMat[0][1] = SkDoubleToScalar(a02 * b10 - a01 * b11); in invert()
612 inverse->fMat[0][2] = SkDoubleToScalar(b03); in invert()
614 inverse->fMat[1][0] = SkDoubleToScalar(a12 * b08 - a10 * b11); in invert()
[all …]
DSkM44.cpp300 SkDoubleToScalar(a11 * b11 - a12 * b10 + a13 * b09), in invert()
301 SkDoubleToScalar(a02 * b10 - a01 * b11 - a03 * b09), in invert()
302 SkDoubleToScalar(a31 * b05 - a32 * b04 + a33 * b03), in invert()
303 SkDoubleToScalar(a22 * b04 - a21 * b05 - a23 * b03), in invert()
304 SkDoubleToScalar(a12 * b08 - a10 * b11 - a13 * b07), in invert()
305 SkDoubleToScalar(a00 * b11 - a02 * b08 + a03 * b07), in invert()
306 SkDoubleToScalar(a32 * b02 - a30 * b05 - a33 * b01), in invert()
307 SkDoubleToScalar(a20 * b05 - a22 * b02 + a23 * b01), in invert()
308 SkDoubleToScalar(a10 * b10 - a11 * b08 + a13 * b06), in invert()
309 SkDoubleToScalar(a01 * b08 - a00 * b10 - a03 * b06), in invert()
[all …]
/external/skqp/gm/
Dimagefilterstransformed.cpp94 canvas->scale(SkDoubleToScalar(0.8), SkDoubleToScalar(0.8)); in onDraw()
98 canvas->skew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2)); in onDraw()
101 canvas->drawOval(SkRect::MakeXYWH(0, size * SkDoubleToScalar(0.1), in onDraw()
102 size, size * SkDoubleToScalar(0.6)), paint); in onDraw()
Dpoly2poly.cpp61 fPath.moveTo(SkDoubleToScalar(x), SkDoubleToScalar(y)); in moveTo()
65 fPath.lineTo(SkDoubleToScalar(x), SkDoubleToScalar(y)); in lineTo()
75 fStrokePaint.setStrokeWidth(SkDoubleToScalar(lineWidth)); in stroke()
80 fTarget->drawString(text, SkDoubleToScalar(x), SkDoubleToScalar(y), fFont, fFillPaint); in fillText()
Dmatriximagefilter.cpp44 matrix.setSkew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2));
/external/skqp/tests/
DPathOpsConicIntersectionTest.cpp130 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeDPng()
131 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeDPng()
136 canvas.translate(SkDoubleToScalar(-bounds.fLeft), SkDoubleToScalar(-bounds.fTop)); in writeDPng()
168 if (!conic.chopAt(SkDoubleToScalar(t), chopped)) { in chopBothWays()
268 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeFrames()
269 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeFrames()
274 canvas.translate(SkDoubleToScalar(-bounds.fLeft), SkDoubleToScalar(-bounds.fTop)); in writeFrames()
/external/skia/tests/
DPathOpsConicIntersectionTest.cpp129 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeDPng()
130 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeDPng()
135 canvas.translate(SkDoubleToScalar(-bounds.fLeft), SkDoubleToScalar(-bounds.fTop)); in writeDPng()
166 if (!conic.chopAt(SkDoubleToScalar(t), chopped)) { in chopBothWays()
266 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeFrames()
267 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeFrames()
272 canvas.translate(SkDoubleToScalar(-bounds.fLeft), SkDoubleToScalar(-bounds.fTop)); in writeFrames()
/external/skqp/tools/
Dusing_skia_and_harfbuzz.cpp138 font.setSize(SkDoubleToScalar(config->font_size.value)); in Placement()
156 SkDoubleToScalar(config->page_width.value), in WriteLine()
157 SkDoubleToScalar(config->page_height.value)); in WriteLine()
163 blob.get(), SkDoubleToScalar(current_x), in WriteLine()
164 SkDoubleToScalar(current_y), glyph_paint); in WriteLine()
/external/skia/tools/
Dusing_skia_and_harfbuzz.cpp138 font.setSize(SkDoubleToScalar(config->font_size.value)); in Placement()
156 SkDoubleToScalar(config->page_width.value), in WriteLine()
157 SkDoubleToScalar(config->page_height.value)); in WriteLine()
163 blob.get(), SkDoubleToScalar(current_x), in WriteLine()
164 SkDoubleToScalar(current_y), glyph_paint); in WriteLine()
/external/skqp/src/xps/
DSkXPSDocument.cpp44 const SkScalar kPointsPerMeter = SkDoubleToScalar(360000.0 / 127.0);
46 SkScalar pixelsPerMeterScale = SkDoubleToScalar(dpi * 5000.0 / 127.0);
/external/skia/src/xps/
DSkXPSDocument.cpp44 const SkScalar kPointsPerMeter = SkDoubleToScalar(360000.0 / 127.0);
46 SkScalar pixelsPerMeterScale = SkDoubleToScalar(dpi * 5000.0 / 127.0);
/external/skqp/tools/timer/
DSkAnimTimer.h120 return SkDoubleToScalar(value);
137 return SkDoubleToScalar(ends + (1.0 - diff / half) * (mid - ends)); in PingPong()
/external/skia/samplecode/
DSamplePathClip.cpp87 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
91 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
117 float y = SkDoubleToScalar(p0.fY + (bounds.left() - p0.fX) / dxdy);
123 float y = SkDoubleToScalar(p0.fY + (bounds.right() - p0.fX) / dxdy);

1234