Home
last modified time | relevance | path

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

12345678910>>...18

/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 …]
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 …]
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 …]
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);
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()
95 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
97 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
101 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
106 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
111 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
117 gFills[fill].fFill, SK_Scalar1*10); in onDraw()
211 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); 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()
207 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
209 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
213 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
218 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
223 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
229 gFills[fill].fFill, SK_Scalar1*10); in onDraw()
[all …]
Ddrawbitmaprect.cpp56 SK_Scalar1 / 6, in makebm()
57 2 * SK_Scalar1 / 6, in makebm()
58 3 * SK_Scalar1 / 6, in makebm()
59 4 * SK_Scalar1 / 6, in makebm()
60 5 * SK_Scalar1 / 6, in makebm()
61 SK_Scalar1}; in makebm()
75 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); in makebm()
168 canvas->translate(SK_Scalar1 * kPadX / 2, in onDraw()
169 SK_Scalar1 * kPadY / 2); in onDraw()
171 SkScalar titleHeight = SK_Scalar1 * 24; in onDraw()
[all …]
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()
90 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in draw()
92 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in draw()
96 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in draw()
101 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in draw()
106 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in draw()
112 gFills[fill].fFill, SK_Scalar1*10); in draw()
/external/skqp/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 …]
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 …]
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 …]
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);
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()
95 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
97 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
101 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
106 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
111 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
117 gFills[fill].fFill, SK_Scalar1*10); in onDraw()
211 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); 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()
207 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw()
209 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
213 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
218 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
223 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
229 gFills[fill].fFill, SK_Scalar1*10); in onDraw()
[all …]
Ddrawbitmaprect.cpp56 SK_Scalar1 / 6, in makebm()
57 2 * SK_Scalar1 / 6, in makebm()
58 3 * SK_Scalar1 / 6, in makebm()
59 4 * SK_Scalar1 / 6, in makebm()
60 5 * SK_Scalar1 / 6, in makebm()
61 SK_Scalar1}; in makebm()
75 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); in makebm()
168 canvas->translate(SK_Scalar1 * kPadX / 2, in onDraw()
169 SK_Scalar1 * kPadY / 2); in onDraw()
171 SkScalar titleHeight = SK_Scalar1 * 24; in onDraw()
[all …]
/external/skqp/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.cpp16 const SkScalar tolerance = SK_Scalar1 / 200000; in nearly_equal_scalar()
124 src.set(0, 0, SK_Scalar1*10, SK_Scalar1*10); in test_matrix_recttorect()
130 dst.offset(SK_Scalar1, SK_Scalar1); in test_matrix_recttorect()
135 dst.fRight += SK_Scalar1; in test_matrix_recttorect()
174 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMinScale()); in test_matrix_min_max_scale()
175 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxScale()); in test_matrix_min_max_scale()
177 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
180 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4); in test_matrix_min_max_scale()
181 REPORTER_ASSERT(reporter, SK_Scalar1 * 2 == scale.getMinScale()); in test_matrix_min_max_scale()
182 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxScale()); in test_matrix_min_max_scale()
[all …]
/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.cpp16 const SkScalar tolerance = SK_Scalar1 / 200000; in nearly_equal_scalar()
124 src.set(0, 0, SK_Scalar1*10, SK_Scalar1*10); in test_matrix_recttorect()
130 dst.offset(SK_Scalar1, SK_Scalar1); in test_matrix_recttorect()
135 dst.fRight += SK_Scalar1; in test_matrix_recttorect()
174 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMinScale()); in test_matrix_min_max_scale()
175 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxScale()); in test_matrix_min_max_scale()
177 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
180 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4); in test_matrix_min_max_scale()
181 REPORTER_ASSERT(reporter, SK_Scalar1 * 2 == scale.getMinScale()); in test_matrix_min_max_scale()
182 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxScale()); in test_matrix_min_max_scale()
[all …]
/external/skia/samplecode/
DSampleHairCurves.cpp33 canvas->scale(1000 * SK_Scalar1, 1000 * SK_Scalar1); in onDrawContent()
56 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
57 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
58 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent()
59 ctrlPts.addCircle(pts[6], pts[7], SK_Scalar1 / 200); in onDrawContent()
75 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
76 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
77 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent()
96 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
97 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
[all …]
/external/skqp/samplecode/
DSampleHairCurves.cpp33 canvas->scale(1000 * SK_Scalar1, 1000 * SK_Scalar1); in onDrawContent()
56 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
57 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
58 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent()
59 ctrlPts.addCircle(pts[6], pts[7], SK_Scalar1 / 200); in onDrawContent()
75 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
76 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
77 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent()
96 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent()
97 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent()
[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/skqp/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,

12345678910>>...18