Home
last modified time | relevance | path

Searched refs:SkFloatToScalar (Results 1 – 25 of 42) sorted by relevance

12

/external/skia/tests/
DTriangulationTest.cpp53 if (SkFloatToScalar(*r) != *t) in CompareTriangleList()
69 { SkFloatToScalar(110), SkFloatToScalar( 20) },
70 { SkFloatToScalar(100), SkFloatToScalar( 50) },
71 { SkFloatToScalar(130), SkFloatToScalar( 80) },
72 { SkFloatToScalar( 90), SkFloatToScalar( 80) },
73 { SkFloatToScalar( 70), SkFloatToScalar(120) },
74 { SkFloatToScalar( 50), SkFloatToScalar( 80) },
75 { SkFloatToScalar( 10), SkFloatToScalar( 80) },
76 { SkFloatToScalar( 40), SkFloatToScalar( 50) },
77 { SkFloatToScalar( 30), SkFloatToScalar( 20) },
[all …]
DParsePathTest.cpp31 { SkFloatToScalar(-5.5f), SkFloatToScalar(-0.5f), in TestParsePath()
32 SkFloatToScalar(6), SkFloatToScalar(6.5f) } } in TestParsePath()
47 r.set(0, 0, SkFloatToScalar(10), SkFloatToScalar(10.5)); in TestParsePath()
53 p.addRoundRect(r, SkFloatToScalar(4), SkFloatToScalar(4.5)); in TestParsePath()
DClipCubicTest.cpp22 if (SkScalarAbs(c0[i].fX - c1[i].fX) > SkFloatToScalar(tol) || in CurvesAreEqual()
23 SkScalarAbs(c0[i].fY - c1[i].fY) > SkFloatToScalar(tol) in CurvesAreEqual()
39 crv[0].fX = SkFloatToScalar(x0); crv[0].fY = SkFloatToScalar(y0); in SetCurve()
40 crv[1].fX = SkFloatToScalar(x1); crv[1].fY = SkFloatToScalar(y1); in SetCurve()
41 crv[2].fX = SkFloatToScalar(x2); crv[2].fY = SkFloatToScalar(y2); in SetCurve()
42 crv[3].fX = SkFloatToScalar(x3); crv[3].fY = SkFloatToScalar(y3); in SetCurve()
59 const float tol = SkFloatToScalar(1e-4); in TestCubicClipping()
/external/skia/samplecode/
Dvertexdump.cpp6 verts[0].set(SkFloatToScalar(107), SkFloatToScalar(189)); in setup_vertexbug()
7 texs[0].set(SkFloatToScalar(0), SkFloatToScalar(0)); in setup_vertexbug()
8 verts[1].set(SkFloatToScalar(116), SkFloatToScalar(189)); in setup_vertexbug()
9 texs[1].set(SkFloatToScalar(9), SkFloatToScalar(0)); in setup_vertexbug()
10 verts[2].set(SkFloatToScalar(203), SkFloatToScalar(189)); in setup_vertexbug()
11 texs[2].set(SkFloatToScalar(35), SkFloatToScalar(0)); in setup_vertexbug()
12 verts[3].set(SkFloatToScalar(212), SkFloatToScalar(189)); in setup_vertexbug()
13 texs[3].set(SkFloatToScalar(44), SkFloatToScalar(0)); in setup_vertexbug()
14 verts[4].set(SkFloatToScalar(107), SkFloatToScalar(198)); in setup_vertexbug()
15 texs[4].set(SkFloatToScalar(0), SkFloatToScalar(9)); in setup_vertexbug()
[all …]
DSampleAARects.cpp81 rect = SkRect::MakeLTRB(SkFloatToScalar(0.f), in onDrawContent()
82 SkFloatToScalar(0.f), in onDrawContent()
83 SkFloatToScalar(40.f), in onDrawContent()
84 SkFloatToScalar(40.f)); in onDrawContent()
88 rect = SkRect::MakeLTRB(SkFloatToScalar(0.5f), in onDrawContent()
89 SkFloatToScalar(0.5f), in onDrawContent()
90 SkFloatToScalar(40.5f), in onDrawContent()
91 SkFloatToScalar(40.5f)); in onDrawContent()
95 rect = SkRect::MakeLTRB(SkFloatToScalar(0.5f), in onDrawContent()
96 SkFloatToScalar(0.5f), in onDrawContent()
[all …]
DSamplePolyToPoly.cpp38 … 0, 0, 0, SkFloatToScalar(427), SkFloatToScalar(316), SkFloatToScalar(427), SkFloatToScalar(316), 0 in PolyToPolyView()
41SkFloatToScalar(158), SkFloatToScalar(177.5f), SkFloatToScalar(158), SkFloatToScalar(249.5f), in PolyToPolyView()
42SkFloatToScalar(158), SkFloatToScalar(604.5f), SkFloatToScalar(158), SkFloatToScalar(-177.5f) in PolyToPolyView()
DSampleHairline.cpp35 SkPoint pt0 = { SkFloatToScalar(799.33374f), SkFloatToScalar(1.2360189f) }; in test_chromium_9005()
36 SkPoint pt1 = { SkFloatToScalar(808.49969f), SkFloatToScalar(-7.4338055f) }; in test_chromium_9005()
DSampleArc.cpp21 r.set(0, 0, SkFloatToScalar(10), SkFloatToScalar(10.5)); in testparse()
/external/webkit/Source/WebKit/android/plugins/
DANPPathInterface.cpp59 path->moveTo(SkFloatToScalar(x), SkFloatToScalar(y)); in anp_moveTo()
63 path->lineTo(SkFloatToScalar(x), SkFloatToScalar(y)); in anp_lineTo()
67 path->quadTo(SkFloatToScalar(x0), SkFloatToScalar(y0), in anp_quadTo()
68 SkFloatToScalar(x1), SkFloatToScalar(y1)); in anp_quadTo()
73 path->cubicTo(SkFloatToScalar(x0), SkFloatToScalar(y0), in anp_cubicTo()
74 SkFloatToScalar(x1), SkFloatToScalar(y1), in anp_cubicTo()
75 SkFloatToScalar(x2), SkFloatToScalar(y2)); in anp_cubicTo()
83 path->offset(SkFloatToScalar(dx), SkFloatToScalar(dy), dst); in anp_offset()
DANPMatrixInterface.cpp33 dst[i] = SkFloatToScalar(src[i]); in fromFloat()
68 matrix->set(i, SkFloatToScalar(src[i])); in anp_set3x3()
77 matrix->preTranslate(SkFloatToScalar(tx), SkFloatToScalar(ty)); in anp_preTranslate()
81 matrix->postTranslate(SkFloatToScalar(tx), SkFloatToScalar(ty)); in anp_postTranslate()
85 matrix->preScale(SkFloatToScalar(sx), SkFloatToScalar(sy)); in anp_preScale()
89 matrix->postScale(SkFloatToScalar(sx), SkFloatToScalar(sy)); in anp_postScale()
93 matrix->preSkew(SkFloatToScalar(kx), SkFloatToScalar(ky)); in anp_preSkew()
97 matrix->postSkew(SkFloatToScalar(kx), SkFloatToScalar(ky)); in anp_postSkew()
101 matrix->preRotate(SkFloatToScalar(degrees)); in anp_preRotate()
105 matrix->postRotate(SkFloatToScalar(degrees)); in anp_postRotate()
DANPCanvasInterface.cpp48 canvas->skcanvas->translate(SkFloatToScalar(tx), SkFloatToScalar(ty)); in anp_translate()
52 canvas->skcanvas->scale(SkFloatToScalar(sx), SkFloatToScalar(sy)); in anp_scale()
56 canvas->skcanvas->rotate(SkFloatToScalar(degrees)); in anp_rotate()
60 canvas->skcanvas->skew(SkFloatToScalar(kx), SkFloatToScalar(ky)); in anp_skew()
110 canvas->skcanvas->drawLine(SkFloatToScalar(x0), SkFloatToScalar(y0), in anp_drawLine()
111 SkFloatToScalar(x1), SkFloatToScalar(y1), *paint); in anp_drawLine()
134 SkFloatToScalar(x), SkFloatToScalar(y), in anp_drawText()
148 SkFloatToScalar(x), SkFloatToScalar(y), in anp_drawBitmap()
DSkANP.cpp32 dst->set(SkFloatToScalar(src.left), in SetRect()
33 SkFloatToScalar(src.top), in SetRect()
34 SkFloatToScalar(src.right), in SetRect()
35 SkFloatToScalar(src.bottom)); in SetRect()
DANPPaintInterface.cpp80 paint->setStrokeWidth(SkFloatToScalar(width)); in anp_setStrokeWidth()
84 paint->setStrokeMiter(SkFloatToScalar(miter)); in anp_setStrokeMiter()
128 paint->setTextSize(SkFloatToScalar(textSize)); in anp_setTextSize()
132 paint->setTextScaleX(SkFloatToScalar(scaleX)); in anp_setTextScaleX()
136 paint->setTextSkewX(SkFloatToScalar(skewX)); in anp_setTextSkewX()
/external/webkit/Source/WebCore/platform/graphics/android/
DPathAndroid.cpp110 m_path->offset(SkFloatToScalar(size.width()), SkFloatToScalar(size.height())); in translate()
124 m_path->moveTo(SkFloatToScalar(point.x()), SkFloatToScalar(point.y())); in moveTo()
129 m_path->lineTo(SkFloatToScalar(p.x()), SkFloatToScalar(p.y())); in addLineTo()
134 m_path->quadTo( SkFloatToScalar(cp.x()), SkFloatToScalar(cp.y()), in addQuadCurveTo()
135 SkFloatToScalar(ep.x()), SkFloatToScalar(ep.y())); in addQuadCurveTo()
140 m_path->cubicTo(SkFloatToScalar(p1.x()), SkFloatToScalar(p1.y()), in addBezierCurveTo()
141 SkFloatToScalar(p2.x()), SkFloatToScalar(p2.y()), in addBezierCurveTo()
142 SkFloatToScalar(ep.x()), SkFloatToScalar(ep.y())); in addBezierCurveTo()
147 m_path->arcTo(SkFloatToScalar(p1.x()), SkFloatToScalar(p1.y()), in addArcTo()
148 SkFloatToScalar(p2.x()), SkFloatToScalar(p2.y()), in addArcTo()
[all …]
DImageAndroid.cpp160 dst->set(SkScalarRound(SkFloatToScalar(src.x())), in round()
161 SkScalarRound(SkFloatToScalar(src.y())), in round()
162 SkScalarRound(SkFloatToScalar((src.x() + src.width()))), in round()
163 SkScalarRound(SkFloatToScalar((src.y() + src.height())))); in round()
169 dst->set(SkScalarRound(SkFloatToScalar(src.x() * sx)), in round_scaled()
170 SkScalarRound(SkFloatToScalar(src.y() * sy)), in round_scaled()
171 SkScalarRound(SkFloatToScalar((src.x() + src.width()) * sx)), in round_scaled()
172 SkScalarRound(SkFloatToScalar((src.y() + src.height()) * sy))); in round_scaled()
310 matrix.preScale(SkFloatToScalar(scaleX), SkFloatToScalar(scaleY)); in drawPattern()
318 matrix.postTranslate(SkFloatToScalar(tx), SkFloatToScalar(ty)); in drawPattern()
DGradientAndroid.cpp85 pos[i] = SkFloatToScalar(iter->stop); in getShader()
94 SkFloatToScalar(m_r0), in getShader()
96 SkFloatToScalar(m_r1), in getShader()
DGraphicsContextAndroid.cpp329 paint->setStrokeWidth(SkFloatToScalar(width)); in setupPaintStroke()
332 paint->setStrokeMiter(SkFloatToScalar(m_state->miterLimit)); in setupPaintStroke()
711 paint.setStrokeWidth(SkFloatToScalar(this->strokeThickness())); in strokeArc()
735 path.moveTo(SkFloatToScalar(points[0].x()), SkFloatToScalar(points[0].y())); in drawConvexPolygon()
737 path.lineTo(SkFloatToScalar(points[i].x()), SkFloatToScalar(points[i].y())); in drawConvexPolygon()
1050 paint.setStrokeWidth(SkFloatToScalar(lineWidth)); in strokeRect()
1086 intervals[i] = SkFloatToScalar(dashes[i % dashLength]); in setLineDash()
1089 *effectPtr = new SkDashPathEffect(intervals, count, SkFloatToScalar(dashOffset)); in setLineDash()
1117 GC2CANVAS(this)->scale(SkFloatToScalar(size.width()), SkFloatToScalar(size.height())); in scale()
1124 GC2CANVAS(this)->rotate(SkFloatToScalar(angleInRadians * (180.0f / 3.14159265f))); in rotate()
[all …]
DFontAndroid.cpp182 SkScalar x = SkFloatToScalar(point.x()); in drawGlyphs()
183 SkScalar y = SkFloatToScalar(point.y()); in drawGlyphs()
215 x += SkFloatToScalar(adv[i].width()); in drawGlyphs()
216 y += SkFloatToScalar(adv[i].height()); in drawGlyphs()
226 x += SkFloatToScalar(adv[i].width()); in drawGlyphs()
227 y += SkFloatToScalar(adv[i].height()); in drawGlyphs()
272 SkFloatToScalar(point.x()), SkFloatToScalar(point.y()), in drawComplexText()
/external/skia/src/utils/
DSkColorMatrix.cpp103 static const SkScalar kHueR = SkFloatToScalar(0.213f);
104 static const SkScalar kHueG = SkFloatToScalar(0.715f);
105 static const SkScalar kHueB = SkFloatToScalar(0.072f);
120 static const SkScalar kR2Y = SkFloatToScalar(0.299f);
121 static const SkScalar kG2Y = SkFloatToScalar(0.587f);
122 static const SkScalar kB2Y = SkFloatToScalar(0.114f);
124 static const SkScalar kR2U = SkFloatToScalar(-0.16874f);
125 static const SkScalar kG2U = SkFloatToScalar(-0.33126f);
126 static const SkScalar kB2U = SkFloatToScalar(0.5f);
128 static const SkScalar kR2V = SkFloatToScalar(0.5f);
[all …]
/external/skia/src/ports/
DSkFontHost_mac_atsui.cpp32 SkPoint sp = { SkFloatToScalar(p.x), SkFloatToScalar(p.y) }; in F32PtToSkPoint()
297 dst->fTop = -SkFloatToScalar(src.ascent);
298 dst->fAscent = -SkFloatToScalar(src.ascent);
299 dst->fDescent = SkFloatToScalar(src.descent);
300 dst->fBottom = SkFloatToScalar(src.descent);
301 dst->fLeading = SkFloatToScalar(src.leading);
383 pts[0].set(0, -SkFloatToScalar(metrics.ascent)); in generateFontMetrics()
384 pts[1].set(0, -SkFloatToScalar(metrics.ascent)); in generateFontMetrics()
385 pts[2].set(0, -SkFloatToScalar(metrics.descent)); in generateFontMetrics()
386 pts[3].set(0, -SkFloatToScalar(metrics.descent)); in generateFontMetrics()
[all …]
/external/webkit/Source/WebCore/platform/graphics/skia/
DPlatformContextSkia.cpp284 SkRect bounds = { SkFloatToScalar(rect.x()), SkFloatToScalar(rect.y()), in beginLayerClippedToImage()
285 SkFloatToScalar(rect.maxX()), SkFloatToScalar(rect.maxY()) }; in beginLayerClippedToImage()
404 paint->setStrokeWidth(SkFloatToScalar(width)); in setupPaintForStroking()
407 paint->setStrokeMiter(SkFloatToScalar(m_state->m_miterLimit)); in setupPaintForStroking()
654 m_canvas->drawBitmap(imageBuffer, SkFloatToScalar(rect.x()), SkFloatToScalar(rect.y()), &paint); in applyClipFromImage()
DImageSkia.cpp296 src_points[1].set(SkFloatToScalar(srcWidth), 0); in TransformDimensions()
297 src_points[2].set(0, SkFloatToScalar(srcHeight)); in TransformDimensions()
422 matrix.postTranslate(SkFloatToScalar(adjustedX), in drawPattern()
423 SkFloatToScalar(adjustedY)); in drawPattern()
DSkiaUtils.h57 return SkFloatToScalar(isfinite(f) ? f : 0); in WebCoreFloatToSkScalar()
DSkiaUtils.cpp215 SkScalar fX = SkFloatToScalar(point.x()); in SkPathContainsPoint()
216 SkScalar fY = SkFloatToScalar(point.y()); in SkPathContainsPoint()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DFontLinux.cpp86 SkScalar x = SkFloatToScalar(point.x()); in drawGlyphs()
87 SkScalar y = SkFloatToScalar(point.y()); in drawGlyphs()
103 SkScalar myWidth = SkFloatToScalar(adv[i].width()); in drawGlyphs()
110 y += SkFloatToScalar(adv[i].height()); in drawGlyphs()

12