Home
last modified time | relevance | path

Searched refs:SK_Scalar1 (Results 1 – 25 of 240) sorted by relevance

12345678910

/external/skia/gm/
Dconvexpaths.cpp54 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, in makePaths()
55 0, 100 * SK_Scalar1); in makePaths()
58 fPaths.push_back().moveTo(0, 50 * SK_Scalar1); in makePaths()
59 fPaths.back().quadTo(50 * SK_Scalar1, 0, in makePaths()
60 100 * SK_Scalar1, 50 * SK_Scalar1); in makePaths()
61 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, in makePaths()
62 0, 50 * SK_Scalar1); in makePaths()
65 100 * SK_Scalar1, 100 * SK_Scalar1, in makePaths()
69 100 * SK_Scalar1, 100 * SK_Scalar1, in makePaths()
72 fPaths.push_back().addCircle(50 * SK_Scalar1, 50 * SK_Scalar1, in makePaths()
[all …]
Ddegeneratesegments.cpp39 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMove()
45 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveClose()
57 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLine()
64 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLineClose()
77 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenQuad()
84 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenQuadClose()
97 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenCubic()
104 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenCubicClose()
117 SkPoint endPt = startPt + SkPoint::Make(40*SK_Scalar1, 0); in AddLine()
123 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveLine()
[all …]
Dquadpaths.cpp81 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw()
82 path.fPath.quadTo(50*SK_Scalar1, 20*SK_Scalar1, in onDraw()
83 75*SK_Scalar1, 10*SK_Scalar1); in onDraw()
90 titlePaint.setTextSize(15 * SK_Scalar1); in onDraw()
94 20 * SK_Scalar1, in onDraw()
95 20 * SK_Scalar1, in onDraw()
99 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
101 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
105 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
110 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
[all …]
Droundrects.cpp142 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw()
165 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw()
166 SK_Scalar1 / 4, in onDraw()
167 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw()
168 3 * SK_Scalar1 / 4); in onDraw()
193 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, in onDraw()
194 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4); in onDraw()
212 canvas->translate(kXStart + SK_Scalar1 * kXStep * 4 + SK_Scalar1 / 4, in onDraw()
213 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4 + in onDraw()
232 canvas->translate(kXStart + SK_Scalar1 * kXStep * 3.25f + SK_Scalar1 / 4, in onDraw()
[all …]
Dcubicpaths.cpp192 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw()
193 path.fPath.cubicTo(40*SK_Scalar1, 20*SK_Scalar1, in onDraw()
194 60*SK_Scalar1, 20*SK_Scalar1, in onDraw()
195 75*SK_Scalar1, 10*SK_Scalar1); in onDraw()
202 titlePaint.setTextSize(15 * SK_Scalar1); in onDraw()
206 20 * SK_Scalar1, in onDraw()
207 20 * SK_Scalar1, in onDraw()
211 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
213 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
217 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
[all …]
Dovals.cpp141 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw()
162 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw()
163 SK_Scalar1 / 4, in onDraw()
164 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw()
165 3 * SK_Scalar1 / 4); in onDraw()
187 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, in onDraw()
188 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4); in onDraw()
203 canvas->translate(kXStart + SK_Scalar1 * kXStep * 4 + SK_Scalar1 / 4, in onDraw()
204 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4 + in onDraw()
220 canvas->translate(kXStart + SK_Scalar1 * kXStep * 3.25f + SK_Scalar1 / 4, in onDraw()
[all …]
Dbigmatrix.cpp19 m.setRotate(33 * SK_Scalar1);
20 m.postScale(3000 * SK_Scalar1, 3000 * SK_Scalar1);
21 m.postTranslate(6000 * SK_Scalar1, -5000 * SK_Scalar1);
34 SkPoint pt = {10 * SK_Scalar1, 10 * SK_Scalar1};
35 SkScalar small = 1 / (500 * SK_Scalar1);
41 pt.set(30 * SK_Scalar1, 10 * SK_Scalar1);
54 pt.set(30 * SK_Scalar1, 30 * SK_Scalar1);
58 s.setScale(SK_Scalar1 / 1000, SK_Scalar1 / 1000);
Dlinepaths.cpp67 path.fPath.moveTo(25*SK_Scalar1, 15*SK_Scalar1); in draw()
68 path.fPath.lineTo(75*SK_Scalar1, 15*SK_Scalar1); in draw()
80 titlePaint.setTextSize(15 * SK_Scalar1); in draw()
87 20 * SK_Scalar1, in draw()
88 20 * SK_Scalar1, in draw()
92 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in draw()
94 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in draw()
98 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in draw()
103 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in draw()
108 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in draw()
[all …]
Ddrawbitmaprect.cpp62 SK_Scalar1 / 6, in makebm()
63 2 * SK_Scalar1 / 6, in makebm()
64 3 * SK_Scalar1 / 6, in makebm()
65 4 * SK_Scalar1 / 6, in makebm()
66 5 * SK_Scalar1 / 6, in makebm()
67 SK_Scalar1}; in makebm()
81 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); in makebm()
174 canvas->translate(SK_Scalar1 * kPadX / 2, in onDraw()
175 SK_Scalar1 * kPadY / 2); in onDraw()
177 SkScalar titleHeight = SK_Scalar1 * 24; in onDraw()
[all …]
Ddrawminibitmaprect.cpp38 SK_Scalar1 / 6, in makebm()
39 2 * SK_Scalar1 / 6, in makebm()
40 3 * SK_Scalar1 / 6, in makebm()
41 4 * SK_Scalar1 / 6, in makebm()
42 5 * SK_Scalar1 / 6, in makebm()
43 SK_Scalar1}; in makebm()
58 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); in makebm()
121 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
125 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
Dcircles.cpp68 SkScalar pos[] = { 0, SK_ScalarHalf, SK_Scalar1 }; in makePaints()
156 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw()
161 canvas->translate(SK_Scalar1 * 200 * (i % 5) + SK_Scalar1 / 4, in onDraw()
162 SK_Scalar1 * 200 * (i / 5) + 3 * SK_Scalar1 / 4); in onDraw()
176 canvas->translate(SK_Scalar1 * 200 * (i % 5) + SK_Scalar1 / 4, in onDraw()
177 SK_Scalar1 * 200 * (i / 5) + 3 * SK_Scalar1 / 4); in onDraw()
Daaclip.cpp100 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 10 * SK_Scalar1)); in draw_square()
105 SkRect target (SkRect::MakeWH(1 * SK_Scalar1, 10 * SK_Scalar1)); in draw_column()
110 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 1 * SK_Scalar1)); in draw_bar()
147 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw()
151 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw()
155 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw()
159 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw()
Dtexteffects.cpp24 p.setStrokeWidth(SK_Scalar1); in r0()
39 p.setStrokeWidth(SK_Scalar1*2); in r1()
45 p.setStrokeWidth(SK_Scalar1*4); in r2()
49 p.setStrokeWidth(SK_Scalar1*3/2); in r2()
56 p.setStrokeWidth(SK_Scalar1*3); in r3()
71 rastBuilder->addLayer(p, SK_Scalar1*3/2, SK_Scalar1*3/2); in r4()
82 p.setPathEffect(SkDiscretePathEffect::Make(SK_Scalar1*4, SK_Scalar1*3)); in r5()
108 lattice.setScale(SK_Scalar1*6, SK_Scalar1*6, 0, 0); in r7()
109 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in r7()
110 p.setPathEffect(MakeDotEffect(SK_Scalar1*4, lattice)); in r7()
[all …]
Demptypath.cpp68 titlePaint.setTextSize(15 * SK_Scalar1); in onDraw()
72 20 * SK_Scalar1, in onDraw()
73 20 * SK_Scalar1, in onDraw()
77 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
80 canvas->translate(10 * SK_Scalar1, 0); in onDraw()
86 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
89 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
111 labelPaint.setTextSize(12 * SK_Scalar1); in onDraw()
114 0, rect.height() + 15 * SK_Scalar1, in onDraw()
118 0, rect.height() + 28 * SK_Scalar1, in onDraw()
Dfilltypespersp.cpp57 SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; in showFour()
86 3 * SK_ScalarHalf / 2, SK_Scalar1}; in onDraw()
97 mat.setPerspY(SK_Scalar1 / 1000); in onDraw()
105 persp.setPerspX(-SK_Scalar1 / 1800); in onDraw()
106 persp.setPerspY(SK_Scalar1 / 500); in onDraw()
112 showFour(canvas, SK_Scalar1, false); in onDraw()
117 showFour(canvas, SK_Scalar1, true); in onDraw()
/external/skia/tests/
DPathMeasureTest.cpp51 { SK_Scalar1, SK_Scalar1 }, in test_small_segment()
80 path.lineTo(SK_Scalar1, 0); in DEF_TEST()
81 path.lineTo(SK_Scalar1, SK_Scalar1); in DEF_TEST()
82 path.lineTo(0, SK_Scalar1); in DEF_TEST()
86 SkASSERT(length == SK_Scalar1*4); in DEF_TEST()
90 path.lineTo(SK_Scalar1*3, SK_Scalar1*4); in DEF_TEST()
93 REPORTER_ASSERT(reporter, length == SK_Scalar1*5); in DEF_TEST()
96 path.addCircle(0, 0, SK_Scalar1); in DEF_TEST()
103 path.lineTo(SK_Scalar1, 0); in DEF_TEST()
104 path.lineTo(SK_Scalar1, SK_Scalar1); in DEF_TEST()
[all …]
DMatrixTest.cpp15 const SkScalar tolerance = SK_Scalar1 / 200000; in nearly_equal_scalar()
117 src.set(0, 0, SK_Scalar1*10, SK_Scalar1*10); in test_matrix_recttorect()
123 dst.offset(SK_Scalar1, SK_Scalar1); in test_matrix_recttorect()
128 dst.fRight += SK_Scalar1; in test_matrix_recttorect()
167 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMinScale()); in test_matrix_min_max_scale()
168 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxScale()); in test_matrix_min_max_scale()
170 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
173 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4); in test_matrix_min_max_scale()
174 REPORTER_ASSERT(reporter, SK_Scalar1 * 2 == scale.getMinScale()); in test_matrix_min_max_scale()
175 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxScale()); in test_matrix_min_max_scale()
[all …]
DPathTest.cpp255 stroke.setStrokeStyle(2 * SK_Scalar1); in test_path_crbugskia2820()
811 matrix.setTranslate(SK_Scalar1, SK_Scalar1); in test_isfinite_after_transform()
869 if (size < SK_Scalar1) { in test_arb_round_rect_is_convex()
896 if (size < SK_Scalar1) { in test_arb_zero_rad_round_rect_is_rect()
929 { SK_Scalar1, 0 }, in test_rect_isfinite()
930 { 0, SK_Scalar1 }, in test_rect_isfinite()
960 path.moveTo(SK_Scalar1, 0); in test_path_isfinite()
1069 rec.setStrokeStyle(SK_Scalar1, false); in test_strokerec()
1072 rec.setStrokeStyle(SK_Scalar1, true); in test_strokerec()
1172 path.lineTo(110 * SK_Scalar1, -10 * SK_Scalar1); in test_direction()
[all …]
/external/skia/samplecode/
DSampleHairCurves.cpp35 canvas->scale(1000 * SK_Scalar1, 1000 * SK_Scalar1); in onDrawContent()
58 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
59 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
60 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent()
61 ctrlPts.addCircle(pts[6], pts[7], SK_Scalar1 / 200); in onDrawContent()
77 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
78 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
79 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent()
98 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
99 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
[all …]
DSampleDegenerateTwoPtRadials.cpp17 SkScalar pos[] = { 0, 0.25f, 0.75f, SK_Scalar1 }; in draw_gradient2()
24 SkASSERT(0 == SkScalarMod(w, SK_Scalar1 * 5)); in draw_gradient2()
57 delta = delta - SK_Scalar1 * intPart; in onDrawContent()
59 delta = SK_Scalar1 - delta; in onDrawContent()
65 SkScalar w = SK_Scalar1 * 500; in onDrawContent()
66 SkScalar h = SK_Scalar1 * 500; in onDrawContent()
67 SkScalar l = SK_Scalar1 * 100; in onDrawContent()
68 SkScalar t = SK_Scalar1 * 100; in onDrawContent()
75 …canvas->drawText(txt.c_str(), txt.size(), l + w/2 + w*DELTA_SCALE*delta, t + h + SK_Scalar1 * 10, … in onDrawContent()
DSampleAll.cpp86 p.setStrokeWidth(SK_Scalar1); in r0()
101 p.setStrokeWidth(SK_Scalar1*2); in r1()
107 p.setStrokeWidth(SK_Scalar1*4); in r2()
111 p.setStrokeWidth(SK_Scalar1*3/2); in r2()
118 p.setStrokeWidth(SK_Scalar1*3); in r3()
133 rastBuilder->addLayer(p, SK_Scalar1*3/2, SK_Scalar1*3/2); in r4()
142 p.setPathEffect(SkDiscretePathEffect::Make(SK_Scalar1*4, SK_Scalar1*3)); in r5()
183 lattice.setScale(SK_Scalar1*6, SK_Scalar1*6, 0, 0); in r7()
184 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in r7()
185 p.setPathEffect(sk_make_sp<Dot2DPathEffect>(SK_Scalar1*4, lattice)); in r7()
[all …]
DSampleSlides.cpp165 static const SkScalar gPos0[] = { 0, SK_Scalar1 };
166 static const SkScalar gPos1[] = { SK_Scalar1/4, SK_Scalar1*3/4 };
168 0, SK_Scalar1/8, SK_Scalar1/2, SK_Scalar1*7/8, SK_Scalar1
291 matrix.setScale(-SK_Scalar1, SK_Scalar1); in textonpath_slide()
296 matrix.setScale(SK_Scalar1, -SK_Scalar1); in textonpath_slide()
300 matrix.setScale(-SK_Scalar1, -SK_Scalar1); in textonpath_slide()
472 p.setStrokeWidth(SK_Scalar1); in r0()
488 p.setStrokeWidth(SK_Scalar1*2); in r1()
495 p.setStrokeWidth(SK_Scalar1*4); in r2()
499 p.setStrokeWidth(SK_Scalar1*3/2); in r2()
[all …]
/external/skia/src/core/
DSkTextFormatParams.h16 #define kStdStrikeThru_Offset (-SK_Scalar1 * 6 / 21)
18 #define kStdUnderline_Offset (SK_Scalar1 / 9)
20 #define kStdUnderline_Thickness (SK_Scalar1 / 18)
27 SK_Scalar1*9,
28 SK_Scalar1*36,
31 SK_Scalar1/24,
32 SK_Scalar1/32,
/external/skia/bench/
DDashBench.cpp144 path->moveTo(0, -SK_Scalar1); in make_unit_star()
163 path->quadTo(x0, y0 + 400 * SK_Scalar1, in make_quad()
164 x0 + 600 * SK_Scalar1, y0 + 400 * SK_Scalar1); in make_quad()
171 path->cubicTo(x0, y0 + 400 * SK_Scalar1, in make_cubic()
172 x0 + 600 * SK_Scalar1, y0 + 400 * SK_Scalar1, in make_cubic()
173 x0 + 600 * SK_Scalar1, y0); in make_cubic()
224 SkScalar vals[] = { SK_Scalar1, SK_Scalar1 }; in DashLineBench()
240 canvas->drawLine(10 * SK_Scalar1, 10 * SK_Scalar1, in onDraw()
241 640 * SK_Scalar1, 10 * SK_Scalar1, paint); in onDraw()
264 fPathEffect = SkDashPathEffect::Make(vals, 2, SK_Scalar1); in DrawPointsDashingBench()
[all …]
/external/skia/src/utils/
DSkMatrix22.cpp18 c = SkScalarCopySign(SK_Scalar1, a); in SkComputeGivensRotation()
23 s = -SkScalarCopySign(SK_Scalar1, b); in SkComputeGivensRotation()
27 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), b); in SkComputeGivensRotation()
28 s = -SK_Scalar1 / u; in SkComputeGivensRotation()
33 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), a); in SkComputeGivensRotation()
34 c = SK_Scalar1 / u; in SkComputeGivensRotation()

12345678910