Home
last modified time | relevance | path

Searched refs:SkScalarToFloat (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/animator/
DSkDrawRectangle.cpp58 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump()
59 SkScalarToFloat(fRect.fBottom)); in dump()
139SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump()
140 SkScalarToFloat(fRect.fBottom), SkScalarToFloat(rx), SkScalarToFloat(ry)); in dump()
DSkDrawMatrix.cpp106 SkDebugf("sx=\"%g\" ", SkScalarToFloat(result)); in dump()
109 SkDebugf("sy=\"%g\" ", SkScalarToFloat(result)); in dump()
112 SkDebugf("skew-x=\"%g\" ", SkScalarToFloat(result)); in dump()
115 SkDebugf("skew-y=\"%g\" ", SkScalarToFloat(result)); in dump()
118 SkDebugf("tx=\"%g\" ", SkScalarToFloat(result)); in dump()
121 SkDebugf("ty=\"%g\" ", SkScalarToFloat(result)); in dump()
124 SkDebugf("perspect-x=\"%g\" ", SkScalarToFloat(result)); in dump()
127 SkDebugf("perspect-y=\"%g\" ", SkScalarToFloat(result)); in dump()
DSkDisplayRandom.cpp39 SkDebugf("min=\"%g\" ", SkScalarToFloat(min)); in dump()
40 SkDebugf("max=\"%g\" ", SkScalarToFloat(max)); in dump()
41 SkDebugf("blend=\"%g\" ", SkScalarToFloat(blend)); in dump()
DSkAnimateField.cpp45 SkDebugf("dur=\"%g\" ", SkScalarToFloat(SkScalarDiv(dur,1000))); in dump()
47 SkDebugf("repeat=\"%g\" ", SkScalarToFloat(repeat)); in dump()
63 SkDebugf("%g", SkScalarToFloat(blend[i])); in dump()
DSkDisplayable.cpp209 SkDebugf("%g", SkScalarToFloat(op->fScalar)); in dumpAttrs()
315 …SkDebugf("%s=\"[%g,%g]\" ", info->fName, SkScalarToFloat(op.fScalar), SkScalarToFloat(op2.fScalar)… in dumpValues()
379 SkDebugf("%s=\"%g\" ", info->fName, SkScalarToFloat(op.fScalar)); in dumpValues()
393 SkDebugf(" %s=\"%g\" ", info->fName, SkScalarToFloat(SkScalarDiv(op.fS32, 1000))); in dumpValues()
DSkDisplayPost.cpp80 SkDebugf("delay=\"%g\" ", SkScalarToFloat(SkScalarDiv(delay, 1000))); in dump()
135 SkDebugf("float=\"%g\" ", SkScalarToFloat(scalar)); in dump()
DSkAnimateSet.cpp43 SkDebugf("dur=\"%g\" ", SkScalarToFloat(SkScalarDiv(dur,1000))); in dump()
/external/webkit/Source/WebKit/android/plugins/
DANPPaintInterface.cpp64 return SkScalarToFloat(paint->getStrokeWidth()); in anp_getStrokeWidth()
68 return SkScalarToFloat(paint->getStrokeMiter()); in anp_getStrokeMiter()
104 return SkScalarToFloat(paint->getTextSize()); in anp_getTextSize()
108 return SkScalarToFloat(paint->getTextScaleX()); in anp_getTextScaleX()
112 return SkScalarToFloat(paint->getTextSkewX()); in anp_getTextSkewX()
147 return SkScalarToFloat(w); in anp_measureText()
165 metrics->fTop = SkScalarToFloat(fm.fTop); in anp_getFontMetrics()
166 metrics->fAscent = SkScalarToFloat(fm.fAscent); in anp_getFontMetrics()
167 metrics->fDescent = SkScalarToFloat(fm.fDescent); in anp_getFontMetrics()
168 metrics->fBottom = SkScalarToFloat(fm.fBottom); in anp_getFontMetrics()
[all …]
DSkANP.cpp53 dst->left = SkScalarToFloat(src.fLeft); in SetRect()
54 dst->top = SkScalarToFloat(src.fTop); in SetRect()
55 dst->right = SkScalarToFloat(src.fRight); in SetRect()
56 dst->bottom = SkScalarToFloat(src.fBottom); in SetRect()
DANPMatrixInterface.cpp39 dst[i] = SkScalarToFloat(src[i]); in toFloat()
62 dst[i] = SkScalarToFloat(matrix->get(i)); in anp_get3x3()
/external/skia/src/utils/
DSkDumpCanvas.cpp24 SkScalarToFloat(r.fLeft), SkScalarToFloat(r.fTop), in toString()
25 SkScalarToFloat(r.width()), SkScalarToFloat(r.height())); in toString()
199 SkScalarToFloat(dx), SkScalarToFloat(dy)); in translate()
205 SkScalarToFloat(sx), SkScalarToFloat(sy)); in scale()
210 this->dump(kMatrix_Verb, NULL, "rotate(%g)", SkScalarToFloat(degrees)); in rotate()
216 SkScalarToFloat(sx), SkScalarToFloat(sy)); in skew()
293 SkScalarToFloat(x), SkScalarToFloat(y)); in drawBitmap()
336 byteLength, SkScalarToFloat(x), SkScalarToFloat(y)); in drawText()
344 str.c_str(), byteLength, SkScalarToFloat(pos[0].fX), in drawPosText()
345 SkScalarToFloat(pos[0].fY)); in drawPosText()
[all …]
DSkNinePatch.cpp182 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()), in DrawMesh()
184 SkScalarToFloat(stretchX), SkScalarToFloat(stretchY)); in DrawMesh()
/external/skia/src/core/
DSkPictureFlat.cpp56 "scaleX:%g ", SkScalarToFloat(scaleX)); in dump()
60 "scaleY:%g ", SkScalarToFloat(scaleY)); in dump()
64 "skewX:%g ", SkScalarToFloat(skewX)); in dump()
68 "skewY:%g ", SkScalarToFloat(skewY)); in dump()
72 "translateX:%g ", SkScalarToFloat(translateX)); in dump()
76 "translateY:%g ", SkScalarToFloat(translateY)); in dump()
132 "textSize:%g ", SkScalarToFloat(textSize)); in dump()
136 "textScaleX:%g ", SkScalarToFloat(textScaleX)); in dump()
140 "textSkewX:%g ", SkScalarToFloat(textSkewX)); in dump()
183 "strokeWidth:%g ", SkScalarToFloat(strokeWidth)); in dump()
[all …]
DSkPicturePlayback.cpp959 "{kScaleX, %g}, ", SkScalarToFloat(scaleX)); in dumpMatrix()
963 "{kScaleY, %g}, ", SkScalarToFloat(scaleY)); in dumpMatrix()
967 "{kSkewX, %g}, ", SkScalarToFloat(skewX)); in dumpMatrix()
971 "{kSkewY, %g}, ", SkScalarToFloat(skewY)); in dumpMatrix()
975 "{kTranslateX, %g}, ", SkScalarToFloat(translateX)); in dumpMatrix()
979 "{kTranslateY, %g}, ", SkScalarToFloat(translateY)); in dumpMatrix()
1036 "{kTextSize, %g}, ", SkScalarToFloat(textSize)); in dumpPaint()
1040 "{kTextScaleX, %g}, ", SkScalarToFloat(textScaleX)); in dumpPaint()
1044 "{kTextSkewX, %g}, ", SkScalarToFloat(textSkewX)); in dumpPaint()
1048 "{kStrokeWidth, %g}, ", SkScalarToFloat(strokeWidth)); in dumpPaint()
[all …]
DSkPath.cpp1627 SkScalarToFloat(pts[0].fX), SkScalarToFloat(pts[0].fY)); in dump()
1635 SkScalarToFloat(pts[1].fX), SkScalarToFloat(pts[1].fY)); in dump()
1643 SkScalarToFloat(pts[1].fX), SkScalarToFloat(pts[1].fY), in dump()
1644 SkScalarToFloat(pts[2].fX), SkScalarToFloat(pts[2].fY)); in dump()
1653 SkScalarToFloat(pts[1].fX), SkScalarToFloat(pts[1].fY), in dump()
1654 SkScalarToFloat(pts[2].fX), SkScalarToFloat(pts[2].fY), in dump()
1655 SkScalarToFloat(pts[3].fX), SkScalarToFloat(pts[3].fY)); in dump()
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
DFontDataAndroid.cpp52 float d = SkScalarToFloat(skiaFontMetrics.fDescent); in platformInit()
53 float s = SkScalarToFloat(skiaFontMetrics.fDescent - skiaFontMetrics.fAscent); in platformInit()
58 …m_fontMetrics.setXHeight(SkScalarToFloat(-skiaFontMetrics.fAscent) * 0.56f); // hack I stole fro… in platformInit()
59 float lineGap = SkScalarToFloat(skiaFontMetrics.fLeading); in platformInit()
140 advanceWidth = SkScalarToFloat(paint.measureText(&glyph, 2)); in platformWidthForGlyph()
/external/skia/samplecode/
DSampleTextOnPath.cpp80 SkScalarToFloat(r.fLeft), in test_measure()
81 SkScalarToFloat(r.fTop), in test_measure()
82 SkScalarToFloat(r.fRight), in test_measure()
83 SkScalarToFloat(r.fBottom), in test_measure()
84 SkScalarToFloat(bounds.fLeft), in test_measure()
85 SkScalarToFloat(bounds.fTop), in test_measure()
86 SkScalarToFloat(bounds.fRight), in test_measure()
87 SkScalarToFloat(bounds.fBottom)); in test_measure()
/external/webkit/Source/WebCore/platform/graphics/android/
DPathAndroid.cpp116 return FloatRect( SkScalarToFloat(r.fLeft), in boundingRect()
117 SkScalarToFloat(r.fTop), in boundingRect()
118 SkScalarToFloat(r.width()), in boundingRect()
119 SkScalarToFloat(r.height())); in boundingRect()
237 dst[i].setX(SkScalarToFloat(src[i].fX)); in setfpts()
238 dst[i].setY(SkScalarToFloat(src[i].fY)); in setfpts()
/external/skia/include/gpu/
DGrScalar.h38 #define GrScalarToFloat(a) SkScalarToFloat(a)
39 #define GrFloatToScalar(a) SkScalarToFloat(a)
/external/skia/src/ports/
DSkFontHost_mac_atsui.cpp129 fTransform = CGAffineTransformMake(SkScalarToFloat(m[SkMatrix::kMScaleX]), in SkScalerContext_Mac()
130 SkScalarToFloat(m[SkMatrix::kMSkewX]), in SkScalerContext_Mac()
131 SkScalarToFloat(m[SkMatrix::kMSkewY]), in SkScalerContext_Mac()
132 SkScalarToFloat(m[SkMatrix::kMScaleY]), in SkScalerContext_Mac()
133 SkScalarToFloat(m[SkMatrix::kMTransX]), in SkScalerContext_Mac()
134 SkScalarToFloat(m[SkMatrix::kMTransY])); in SkScalerContext_Mac()
/external/skia/src/views/
DSkEvent.cpp178 #ifndef SkScalarToFloat
179 #define SkScalarToFloat(x) ((x) / 65536.f) macro
213 SkDebugf("%f", SkScalarToFloat(values[0])); in dump()
215 SkDebugf(", %f", SkScalarToFloat(values[i])); in dump()
/external/webkit/Source/WebCore/platform/graphics/skia/
DImageSkia.cpp275 SkScalarToFloat(destRect.width()), in paintSkBitmap()
276 SkScalarToFloat(destRect.height())); in paintSkBitmap()
304 *destWidth = SkScalarToFloat((dest_points[1] - dest_points[0]).length()); in TransformDimensions()
305 *destHeight = SkScalarToFloat((dest_points[2] - dest_points[0]).length()); in TransformDimensions()
DPathSkia.cpp184 dst[i].setX(SkScalarToFloat(src[i].fX)); in convertPathPoints()
185 dst[i].setY(SkScalarToFloat(src[i].fY)); in convertPathPoints()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DSimpleFontDataLinux.cpp111 float lineGap = SkScalarToFloat(metrics.fLeading); in platformInit()
237 return round(SkScalarToFloat(width)); in platformWidthForGlyph()
/external/skia/src/effects/
DSkBlurImageFilter.cpp123 float pi = SkScalarToFloat(SK_ScalarPI); in getBox3Params()
124 int d = static_cast<int>(floorf(SkScalarToFloat(s) * 3.0f * sqrtf(2.0f * pi) / 4.0f + 0.5f)); in getBox3Params()

12