Home
last modified time | relevance | path

Searched refs:SkIntToScalar (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/external/skia/gm/
Dconcavepaths.cpp19 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in test_concave()
20 path.lineTo(SkIntToScalar(80), SkIntToScalar(20)); in test_concave()
21 path.lineTo(SkIntToScalar(30), SkIntToScalar(30)); in test_concave()
22 path.lineTo(SkIntToScalar(20), SkIntToScalar(80)); in test_concave()
31 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in test_reverse_concave()
32 path.lineTo(SkIntToScalar(20), SkIntToScalar(80)); in test_reverse_concave()
33 path.lineTo(SkIntToScalar(30), SkIntToScalar(30)); in test_reverse_concave()
34 path.lineTo(SkIntToScalar(80), SkIntToScalar(20)); in test_reverse_concave()
44 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in test_bowtie()
45 path.lineTo(SkIntToScalar(80), SkIntToScalar(80)); in test_bowtie()
[all …]
Dcomplexclip.cpp45 path.moveTo(SkIntToScalar(0), SkIntToScalar(50)); in onDraw()
46 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0)); in onDraw()
47 path.lineTo(SkIntToScalar(175), SkIntToScalar(0)); in onDraw()
48 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25)); in onDraw()
49 path.lineTo(SkIntToScalar(200), SkIntToScalar(150)); in onDraw()
50 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200)); in onDraw()
51 path.lineTo(SkIntToScalar(0), SkIntToScalar(200)); in onDraw()
53 path.moveTo(SkIntToScalar(50), SkIntToScalar(50)); in onDraw()
54 path.lineTo(SkIntToScalar(150), SkIntToScalar(50)); in onDraw()
55 path.lineTo(SkIntToScalar(150), SkIntToScalar(125)); in onDraw()
[all …]
Dpathfill.cpp13 SkRect r = { SkIntToScalar(10), SkIntToScalar(10), in make_frame()
14 SkIntToScalar(630), SkIntToScalar(470) }; in make_frame()
15 path->addRoundRect(r, SkIntToScalar(15), SkIntToScalar(15)); in make_frame()
19 paint.setStrokeWidth(SkIntToScalar(5)); in make_frame()
21 return SkIntToScalar(15); in make_frame()
28 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle()
29 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle()
30 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle()
32 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle()
33 return SkIntToScalar(30); in make_triangle()
[all …]
Dstrokefill.cpp36 canvas->drawText(text, len, x, y + SkIntToScalar(120), p); in show_bold()
40 SkScalar x = SkIntToScalar(100); in onDraw()
41 SkScalar y = SkIntToScalar(88); in onDraw()
45 paint.setTextSize(SkIntToScalar(100)); in onDraw()
46 paint.setStrokeWidth(SkIntToScalar(5)); in onDraw()
53 show_bold(canvas, hyphen, SK_ARRAY_COUNT(hyphen), x + SkIntToScalar(300), y, paint); in onDraw()
59 path.addCircle(x, y + SkIntToScalar(200), SkIntToScalar(50), SkPath::kCW_Direction); in onDraw()
60 path.addCircle(x, y + SkIntToScalar(200), SkIntToScalar(40), SkPath::kCCW_Direction); in onDraw()
65 …path2.addCircle(x + SkIntToScalar(120), y + SkIntToScalar(200), SkIntToScalar(50), SkPath::kCCW_Di… in onDraw()
66 …path2.addCircle(x + SkIntToScalar(120), y + SkIntToScalar(200), SkIntToScalar(40), SkPath::kCW_Dir… in onDraw()
[all …]
Dshadows.cpp34 fCirclePath.addCircle(SkIntToScalar(20), SkIntToScalar(20), SkIntToScalar(10) ); in onOnceBeforeDraw()
35 fRect.set(SkIntToScalar(10), SkIntToScalar(10), in onOnceBeforeDraw()
36 SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw()
51 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), in onDraw()
52 SkIntToScalar(5), SkIntToScalar(10), in onDraw()
59 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), in onDraw()
60 SkIntToScalar(5), SkIntToScalar(10), in onDraw()
66 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), in onDraw()
67 SkIntToScalar(5), in onDraw()
68 SkIntToScalar(10), in onDraw()
[all …]
Dimagefiltersscaled.cpp23 #define RESIZE_FACTOR SkIntToScalar(4)
44 SkScalar x = SkIntToScalar(width / 2); in make_gradient_circle()
45 SkScalar y = SkIntToScalar(height / 2); in make_gradient_circle()
46 SkScalar radius = SkScalarMul(SkMinScalar(x, y), SkIntToScalar(4) / SkIntToScalar(5)); in make_gradient_circle()
78 SkPoint3 pointLocation(0, 0, SkIntToScalar(10)); in onDraw()
79 SkPoint3 spotLocation(SkIntToScalar(-10), SkIntToScalar(-10), SkIntToScalar(20)); in onDraw()
80 SkPoint3 spotTarget(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
82 SkScalar cutoffAngle = SkIntToScalar(15); in onDraw()
83 SkScalar kd = SkIntToScalar(2); in onDraw()
84 SkScalar surfaceScale = SkIntToScalar(1); in onDraw()
[all …]
Dhairlines.cpp32 SkScalar angle = SK_ScalarPI * SkIntToScalar(i) / kNumAngles; in onOnceBeforeDraw()
43 kindaTightQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -10 * SK_Scalar1, 0); in onOnceBeforeDraw()
49 tightQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -5 * SK_Scalar1, 0); in onOnceBeforeDraw()
55 tighterQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -2 * SK_Scalar1, 0); in onOnceBeforeDraw()
62 p.set(-2 * SK_Scalar1 + 3 * SkIntToScalar(102) / 4, SkIntToScalar(75)); in onOnceBeforeDraw()
63 unevenTighterQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), p.fX, p.fY); in onOnceBeforeDraw()
69 reallyTightQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -1 * SK_Scalar1, 0); in onOnceBeforeDraw()
75 closedQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), 0, 0); in onOnceBeforeDraw()
81 unevenClosedQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), in onOnceBeforeDraw()
82 SkIntToScalar(75), SkIntToScalar(75)); in onOnceBeforeDraw()
[all …]
Ddashing.cpp14 SkScalar finalX = SkIntToScalar(600), SkScalar finalY = SkIntToScalar(0), in drawline()
15 SkScalar phase = SkIntToScalar(0), in drawline()
16 SkScalar startX = SkIntToScalar(0), SkScalar startY = SkIntToScalar(0)) { in drawline()
20 SkIntToScalar(on), in drawline()
21 SkIntToScalar(off), in drawline()
34 drawline(canvas, 1, 1, paint, SkIntToScalar(20 * 1000)); in show_giant_dash()
40 drawline(canvas, 2, 2, paint, SkIntToScalar(0)); in show_zero_len_dash()
42 paint.setStrokeWidth(SkIntToScalar(2)); in show_zero_len_dash()
43 canvas->translate(0, SkIntToScalar(20)); in show_zero_len_dash()
44 drawline(canvas, 4, 4, paint, SkIntToScalar(0)); in show_zero_len_dash()
[all …]
Dcircles.cpp57 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), in makePaints()
67 SkPoint center = SkPoint::Make(SkIntToScalar(40), SkIntToScalar(40)); in makePaints()
71 SkIntToScalar(20), in makePaints()
86 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), in makePaints()
87 SkIntToScalar(5), SkIntToScalar(10), in makePaints()
101 p.setStrokeWidth(SkIntToScalar(3)); in makePaints()
118 p.setStrokeWidth(SkIntToScalar(2)); in makePaints()
126 m.setScale(SkIntToScalar(2), SkIntToScalar(3)); in makeMatrices()
132 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices()
138 m.setSkew(SkIntToScalar(2), SkIntToScalar(3)); in makeMatrices()
[all …]
Dfilltypespersp.cpp20 const SkScalar radius = SkIntToScalar(45); in makePath()
21 fPath.addCircle(SkIntToScalar(50), SkIntToScalar(50), radius); in makePath()
22 fPath.addCircle(SkIntToScalar(100), SkIntToScalar(100), radius); in makePath()
38 const SkRect r = { 0, 0, SkIntToScalar(150), SkIntToScalar(150) }; in showPath()
41 canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); in showPath()
54 SkPoint center = SkPoint::Make(SkIntToScalar(100), SkIntToScalar(100)); in showFour()
58 SkIntToScalar(100), in showFour()
81 SkPoint center = SkPoint::Make(SkIntToScalar(100), in onDraw()
82 SkIntToScalar(100)); in onDraw()
88 SkIntToScalar(1000), in onDraw()
[all …]
Dblurroundrect.cpp28 SkRect r = SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)); in BlurRoundRectGM()
29 fRRect.setRectXY(r, SkIntToScalar(radius), SkIntToScalar(radius)); in BlurRoundRectGM()
37 radii[0].set(SkIntToScalar(30), SkIntToScalar(30)); in BlurRoundRectGM()
38 radii[1].set(SkIntToScalar(10), SkIntToScalar(10)); in BlurRoundRectGM()
39 radii[2].set(SkIntToScalar(30), SkIntToScalar(30)); in BlurRoundRectGM()
40 radii[3].set(SkIntToScalar(10), SkIntToScalar(10)); in BlurRoundRectGM()
41 SkRect r = SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)); in BlurRoundRectGM()
61 info.fOffset = SkPoint::Make(SkIntToScalar(-1), SkIntToScalar(0)); in onDraw()
102 { SkIntToScalar(100), SkIntToScalar(100) } in MakeRadial()
113 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeRadial()
[all …]
Drecordopts.cpp59 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_rect_restore_sequence()
83 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(7), SkIntToScalar(7)), p); in draw_save_layer_draw_bitmap_restore_sequence()
87 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_bitmap_restore_sequence()
93 canvas->drawBitmap(bitmap, SkIntToScalar(0), SkIntToScalar(0), &drawPaint); in draw_save_layer_draw_bitmap_restore_sequence()
102 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_svg_opacity_and_filter_layer_sequence()
106 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kTestRectSize + 2), in draw_svg_opacity_and_filter_layer_sequence()
107 SkIntToScalar(kTestRectSize + 2)); in draw_svg_opacity_and_filter_layer_sequence()
158 canvas->translate(SkIntToScalar(kTestRectSize) + SkIntToScalar(1), SkIntToScalar(0));
161 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize),
162 SkIntToScalar(kTestRectSize)),
[all …]
Dbitmapcopy.cpp33 canvas->drawRectCoords(SkIntToScalar(0), SkIntToScalar(0), in draw_checks()
34 SkIntToScalar(width / 2), SkIntToScalar(height / 2), paint); in draw_checks()
36 canvas->drawRectCoords(SkIntToScalar(width / 2), SkIntToScalar(0), in draw_checks()
37 SkIntToScalar(width), SkIntToScalar(height / 2), paint); in draw_checks()
39 canvas->drawRectCoords(SkIntToScalar(0), SkIntToScalar(height / 2), in draw_checks()
40 SkIntToScalar(width / 2), SkIntToScalar(height), paint); in draw_checks()
42 canvas->drawRectCoords(SkIntToScalar(width / 2), SkIntToScalar(height / 2), in draw_checks()
43 SkIntToScalar(width), SkIntToScalar(height), paint); in draw_checks()
82 SkScalar width = SkIntToScalar(40); in onDraw()
83 SkScalar height = SkIntToScalar(40); in onDraw()
[all …]
/external/skia/samplecode/
DSampleConcavePaths.cpp52 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in onDrawContent()
53 path.lineTo(SkIntToScalar(80), SkIntToScalar(20)); in onDrawContent()
54 path.lineTo(SkIntToScalar(30), SkIntToScalar(30)); in onDrawContent()
55 path.lineTo(SkIntToScalar(20), SkIntToScalar(80)); in onDrawContent()
63 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in onDrawContent()
64 path.lineTo(SkIntToScalar(20), SkIntToScalar(80)); in onDrawContent()
65 path.lineTo(SkIntToScalar(30), SkIntToScalar(30)); in onDrawContent()
66 path.lineTo(SkIntToScalar(80), SkIntToScalar(20)); in onDrawContent()
75 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in onDrawContent()
76 path.lineTo(SkIntToScalar(80), SkIntToScalar(80)); in onDrawContent()
[all …]
DSampleComplexClip.cpp31 path.moveTo(SkIntToScalar(0), SkIntToScalar(50)); in onDrawContent()
32 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0)); in onDrawContent()
33 path.lineTo(SkIntToScalar(175), SkIntToScalar(0)); in onDrawContent()
34 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25)); in onDrawContent()
35 path.lineTo(SkIntToScalar(200), SkIntToScalar(150)); in onDrawContent()
36 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200)); in onDrawContent()
37 path.lineTo(SkIntToScalar(0), SkIntToScalar(200)); in onDrawContent()
39 path.moveTo(SkIntToScalar(50), SkIntToScalar(50)); in onDrawContent()
40 path.lineTo(SkIntToScalar(150), SkIntToScalar(50)); in onDrawContent()
41 path.lineTo(SkIntToScalar(150), SkIntToScalar(125)); in onDrawContent()
[all …]
DSampleLayers.cpp69 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(100)); in test_fade()
72 r.fBottom = SkIntToScalar(20); in test_fade()
75 r.fTop = SkIntToScalar(80); in test_fade()
76 r.fBottom = SkIntToScalar(100); in test_fade()
82 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(100)); in test_fade()
95 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(100)); in test_fade()
110 m.postTranslate(0, SkIntToScalar(100)); in test_fade()
114 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(20)); in test_fade()
118 r.fTop = SkIntToScalar(80); in test_fade()
119 r.fBottom = SkIntToScalar(100); in test_fade()
[all …]
DSamplePathEffects.cpp32 return SkCornerPathEffect::Create(SkIntToScalar(CORNER_RADIUS)); in make_pe()
35 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_pe()
37 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_pe()
39 path.offset(SkIntToScalar(-6), 0); in make_pe()
47 SkPathEffect* inner = SkCornerPathEffect::Create(SkIntToScalar(CORNER_RADIUS)); in make_pe()
57 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_warp_pe()
59 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_warp_pe()
61 path.offset(SkIntToScalar(-6), 0); in make_warp_pe()
65 SkPathEffect* inner = SkCornerPathEffect::Create(SkIntToScalar(CORNER_RADIUS)); in make_warp_pe()
85 this->addLayer(paint, SkIntToScalar(4), SkIntToScalar(4)); in TestRastBuilder()
[all …]
DSamplePolyToPoly.cpp55 { SkIntToScalar(1), SkIntToScalar(0) }, in PolyToPolyView()
56 { SkIntToScalar(4), SkIntToScalar(7) }, in PolyToPolyView()
57 { SkIntToScalar(10), SkIntToScalar(2) } in PolyToPolyView()
60 { SkIntToScalar(4), SkIntToScalar(2) }, in PolyToPolyView()
61 { SkIntToScalar(45), SkIntToScalar(26) }, in PolyToPolyView()
62 { SkIntToScalar(32), SkIntToScalar(17) } in PolyToPolyView()
91 src[i].set(SkIntToScalar(isrc[2*i+0]), SkIntToScalar(isrc[2*i+1])); in doDraw()
92 dst[i].set(SkIntToScalar(idst[2*i+0]), SkIntToScalar(idst[2*i+1])); in doDraw()
101 const SkScalar D = SkIntToScalar(64); in doDraw()
124 paint.setStrokeWidth(SkIntToScalar(4)); in onDrawContent()
[all …]
DSampleAll.cpp84 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(3)), in r0()
86 rastBuilder->addLayer(p, SkIntToScalar(3), SkIntToScalar(3)); in r0()
133 rastBuilder->addLayer(p, SkIntToScalar(3), SkIntToScalar(3)); in r4()
215 lattice.postRotate(SkIntToScalar(30), 0, 0); in r9()
257 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(3)), dir, in apply_shader()
258 SK_Scalar1/4, SkIntToScalar(4)))->unref(); in apply_shader()
282 path.addCircle(SkIntToScalar(20), SkIntToScalar(20), SkIntToScalar(20), in makePath()
289 x += SkIntToScalar(20); in makePath()
290 y += SkIntToScalar(20); in makePath()
312 canvas->translate(0, SkIntToScalar(120)); in onDrawContent()
[all …]
DSamplePicture.cpp53 canvas->drawCircle(SkIntToScalar(r), SkIntToScalar(r), SkIntToScalar(r), in drawCircle()
77 canvas->translate(SkIntToScalar(50), 0); in PictureView()
79 canvas->translate(0, SkIntToScalar(50)); in PictureView()
81 canvas->translate(SkIntToScalar(-50), 0); in PictureView()
117 canvas->drawCircle(SkIntToScalar(50), SkIntToScalar(50), in drawSomething()
118 SkIntToScalar(40), paint); in drawSomething()
120 paint.setTextSize(SkIntToScalar(40)); in drawSomething()
121 canvas->drawText("Picture", 7, SkIntToScalar(50), SkIntToScalar(62), in drawSomething()
134 canvas->translate(SkIntToScalar(300), SkIntToScalar(50)); in onDrawContent()
136 canvas->translate(-SkIntToScalar(100), -SkIntToScalar(50)); in onDrawContent()
[all …]
DSampleLines.cpp49 canvas->scale(SkIntToScalar(1)/2, SkIntToScalar(1)/2); in drawRings()
52 SkScalar x = SkIntToScalar(10); in drawRings()
53 SkScalar y = SkIntToScalar(10); in drawRings()
54 r.set(x, y, x + SkIntToScalar(100), y + SkIntToScalar(100)); in drawRings()
59 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in drawRings()
80 SkScalar x = SkIntToScalar(10); in onDrawContent()
81 SkScalar y = SkIntToScalar(10); in onDrawContent()
82 r.set(x, y, x + SkIntToScalar(100), y + SkIntToScalar(100)); in onDrawContent()
88 paint.setStrokeWidth(SkIntToScalar(2)); in onDrawContent()
92 canvas->drawLine(x, y, x + SkIntToScalar(90), y + SkIntToScalar(90), paint); in onDrawContent()
[all …]
DSampleTextOnPath.cpp23 canvas->scale(SkIntToScalar(250),SkIntToScalar(250)); in textStrokePath()
28 path.addArc(rect, SkIntToScalar(280), SkIntToScalar(350)); in textStrokePath()
56 path.moveTo(SkIntToScalar(050), SkIntToScalar(200)); in textPathMatrix()
57 path.quadTo(SkIntToScalar(250), SkIntToScalar(000), in textPathMatrix()
58 SkIntToScalar(450), SkIntToScalar(200)); in textPathMatrix()
65 paint.setTextSize(SkIntToScalar(48)); in textPathMatrix()
99 r.set(SkIntToScalar(100), SkIntToScalar(100), in onOnceBeforeDraw()
100 SkIntToScalar(300), SkIntToScalar(300)); in onOnceBeforeDraw()
102 fPath.offset(SkIntToScalar(-50), SkIntToScalar(-50)); in onOnceBeforeDraw()
104 fHOffset = SkIntToScalar(50); in onOnceBeforeDraw()
[all …]
/external/skia/bench/
DBlurRectBench.cpp16 #define SMALL SkIntToScalar(2)
18 static const SkScalar kMedium = SkIntToScalar(5);
19 #define BIG SkIntToScalar(10)
20 static const SkScalar kMedBig = SkIntToScalar(20);
32 if (fRadius > SkIntToScalar(25)) { in BlurRectBench()
34 } else if (fRadius > SkIntToScalar(5)) { in BlurRectBench()
208 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(1));)
209 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(2));)
210 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(3));)
211 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(4));)
[all …]
DHairlinePathBench.cpp38 fPaint.setStrokeWidth(SkIntToScalar(0)); in HairlinePathBench()
62 const SkMatrix m = SkMatrix::MakeScale(SkIntToScalar(3), SkIntToScalar(3)); in onDraw()
100 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
101 SkIntToScalar(points[base1+1] + yTrans)); in makePath()
102 path->lineTo(SkIntToScalar(points[base2] + xTrans), in makePath()
103 SkIntToScalar(points[base2+1] + yTrans)); in makePath()
104 path->lineTo(SkIntToScalar(points[base3] + xTrans), in makePath()
105 SkIntToScalar(points[base3+1] + yTrans)); in makePath()
132 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
133 SkIntToScalar(points[base1+1] + yTrans)); in makePath()
[all …]
/external/skia/src/gpu/
DGrTestUtils.cpp22 gMatrices[1].setTranslate(SkIntToScalar(-100), SkIntToScalar(100)); in test_matrix()
23 gMatrices[2].setRotate(SkIntToScalar(17)); in test_matrix()
24 gMatrices[3].setRotate(SkIntToScalar(185)); in test_matrix()
25 gMatrices[3].postTranslate(SkIntToScalar(66), SkIntToScalar(-33)); in test_matrix()
26 gMatrices[3].postScale(SkIntToScalar(2), SK_ScalarHalf); in test_matrix()
29 gMatrices[4].setRotate(SkIntToScalar(215)); in test_matrix()
53 gMatrices[1].setTranslate(SkIntToScalar(-100), SkIntToScalar(100)); in TestMatrixPreservesRightAngles()
55 gMatrices[2].setScale(SkIntToScalar(17), SkIntToScalar(17)); in TestMatrixPreservesRightAngles()
57 gMatrices[3].setScale(SkIntToScalar(-17), SkIntToScalar(-17)); in TestMatrixPreservesRightAngles()
58 gMatrices[3].postTranslate(SkIntToScalar(66), SkIntToScalar(-33)); in TestMatrixPreservesRightAngles()
[all …]

12345678910>>...19