/external/skqp/gm/ |
D | convexpaths.cpp | 54 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 …]
|
D | roundrects.cpp | 142 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 …]
|
D | degeneratesegments.cpp | 39 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 …]
|
D | ovals.cpp | 141 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 …]
|
D | bigmatrix.cpp | 19 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);
|
D | quadpaths.cpp | 81 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 …]
|
D | cubicpaths.cpp | 192 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 …]
|
D | linepaths.cpp | 67 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()
|
D | drawbitmaprect.cpp | 56 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/ |
D | PathMeasureTest.cpp | 51 { 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 …]
|
D | MatrixTest.cpp | 16 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/ |
D | PathMeasureTest.cpp | 52 { SK_Scalar1, SK_Scalar1 }, in test_small_segment() 81 path.lineTo(SK_Scalar1, 0); in DEF_TEST() 82 path.lineTo(SK_Scalar1, SK_Scalar1); in DEF_TEST() 83 path.lineTo(0, SK_Scalar1); in DEF_TEST() 87 SkASSERT(length == SK_Scalar1*4); in DEF_TEST() 91 path.lineTo(SK_Scalar1*3, SK_Scalar1*4); in DEF_TEST() 94 REPORTER_ASSERT(reporter, length == SK_Scalar1*5); in DEF_TEST() 97 path.addCircle(0, 0, SK_Scalar1); in DEF_TEST() 104 path.lineTo(SK_Scalar1, 0); in DEF_TEST() 105 path.lineTo(SK_Scalar1, SK_Scalar1); in DEF_TEST() [all …]
|
/external/skia/gm/ |
D | roundrects.cpp | 149 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw() 172 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw() 173 SK_Scalar1 / 4, in onDraw() 174 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw() 175 3 * SK_Scalar1 / 4); in onDraw() 200 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, in onDraw() 201 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4); in onDraw() 219 canvas->translate(kXStart + SK_Scalar1 * kXStep * 4 + SK_Scalar1 / 4, in onDraw() 220 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4 + in onDraw() 239 canvas->translate(kXStart + SK_Scalar1 * kXStep * 3.25f + SK_Scalar1 / 4, in onDraw() [all …]
|
D | degeneratesegments.cpp | 43 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMove() 49 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveClose() 61 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLine() 68 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLineClose() 81 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenQuad() 88 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenQuadClose() 101 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenCubic() 108 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenCubicClose() 121 SkPoint endPt = startPt + SkPoint::Make(40*SK_Scalar1, 0); in AddLine() 127 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveLine() [all …]
|
D | ovals.cpp | 148 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw() 169 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw() 170 SK_Scalar1 / 4, in onDraw() 171 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw() 172 3 * SK_Scalar1 / 4); in onDraw() 194 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, in onDraw() 195 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4); in onDraw() 210 canvas->translate(kXStart + SK_Scalar1 * kXStep * 4 + SK_Scalar1 / 4, in onDraw() 211 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4 + in onDraw() 227 canvas->translate(kXStart + SK_Scalar1 * kXStep * 3.25f + SK_Scalar1 / 4, in onDraw() [all …]
|
D | bigmatrix.cpp | 28 m.setRotate(33 * SK_Scalar1); 29 m.postScale(3000 * SK_Scalar1, 3000 * SK_Scalar1); 30 m.postTranslate(6000 * SK_Scalar1, -5000 * SK_Scalar1); 41 SkPoint pt = {10 * SK_Scalar1, 10 * SK_Scalar1}; 42 SkScalar small = 1 / (500 * SK_Scalar1); 47 pt.set(30 * SK_Scalar1, 10 * SK_Scalar1); 59 pt.set(30 * SK_Scalar1, 30 * SK_Scalar1); 63 s.setScale(SK_Scalar1 / 1000, SK_Scalar1 / 1000);
|
D | quadpaths.cpp | 89 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw() 90 path.fPath.quadTo(50*SK_Scalar1, 20*SK_Scalar1, in onDraw() 91 75*SK_Scalar1, 10*SK_Scalar1); in onDraw() 103 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw() 105 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw() 109 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw() 114 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw() 119 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw() 125 gFills[fill].fFill, SK_Scalar1*10); in onDraw() 219 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw() [all …]
|
D | cubicpaths.cpp | 178 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw() 179 path.fPath.cubicTo(40*SK_Scalar1, 20*SK_Scalar1, in onDraw() 180 60*SK_Scalar1, 20*SK_Scalar1, in onDraw() 181 75*SK_Scalar1, 10*SK_Scalar1); in onDraw() 193 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw() 195 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw() 199 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw() 204 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw() 209 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw() 215 gFills[fill].fFill, SK_Scalar1*10); in onDraw() [all …]
|
D | linepaths.cpp | 73 path.fPath.moveTo(25*SK_Scalar1, 15*SK_Scalar1); in draw() 74 path.fPath.lineTo(75*SK_Scalar1, 15*SK_Scalar1); in draw() 96 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in draw() 98 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in draw() 102 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in draw() 107 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in draw() 112 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in draw() 118 gFills[fill].fFill, SK_Scalar1*10); in draw()
|
D | aaclip.cpp | 51 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 10 * SK_Scalar1)); in draw_square() 56 SkRect target (SkRect::MakeWH(1 * SK_Scalar1, 10 * SK_Scalar1)); in draw_column() 61 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 1 * SK_Scalar1)); in draw_bar() 82 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); 86 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); 90 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); 94 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5);
|
/external/skia/samplecode/ |
D | SampleHairCurves.cpp | 26 canvas->scale(1000 * SK_Scalar1, 1000 * SK_Scalar1); in onDrawContent() 49 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent() 50 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent() 51 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent() 52 ctrlPts.addCircle(pts[6], pts[7], SK_Scalar1 / 200); in onDrawContent() 68 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent() 69 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent() 70 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent() 89 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent() 90 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent() [all …]
|
D | SampleDegenerateTwoPtRadials.cpp | 16 SkScalar pos[] = { 0, 0.25f, 0.75f, SK_Scalar1 }; in draw_gradient2() 23 SkASSERT(0 == SkScalarMod(w, SK_Scalar1 * 5)); in draw_gradient2() 50 delta = delta - SK_Scalar1 * intPart; in onDrawContent() 52 delta = SK_Scalar1 - delta; in onDrawContent() 58 SkScalar w = SK_Scalar1 * 500; in onDrawContent() 59 SkScalar h = SK_Scalar1 * 500; in onDrawContent() 60 SkScalar l = SK_Scalar1 * 100; in onDrawContent() 61 SkScalar t = SK_Scalar1 * 100; in onDrawContent() 65 canvas->drawString(txt, l + w / 2 + w * DELTA_SCALE * delta, t + h + SK_Scalar1 * 10, in onDrawContent()
|
/external/skqp/src/core/ |
D | SkTextFormatParams.h | 16 #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/src/core/ |
D | SkTextFormatParams.h | 16 #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/samplecode/ |
D | SampleHairCurves.cpp | 33 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 …]
|