/external/skia/gm/ |
D | convexpaths.cpp | 55 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, in makePaths() 56 0, 100 * SK_Scalar1); in makePaths() 59 fPaths.push_back().moveTo(0, 50 * SK_Scalar1); in makePaths() 60 fPaths.back().quadTo(50 * SK_Scalar1, 0, in makePaths() 61 100 * SK_Scalar1, 50 * SK_Scalar1); in makePaths() 62 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, in makePaths() 63 0, 50 * SK_Scalar1); in makePaths() 66 100 * SK_Scalar1, 100 * SK_Scalar1, in makePaths() 70 100 * SK_Scalar1, 100 * SK_Scalar1, in makePaths() 73 fPaths.push_back().addCircle(50 * SK_Scalar1, 50 * SK_Scalar1, in makePaths() [all …]
|
D | degeneratesegments.cpp | 38 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMove() 44 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveClose() 56 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLine() 63 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLineClose() 76 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenQuad() 83 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenQuadClose() 96 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenCubic() 103 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenCubicClose() 116 SkPoint endPt = startPt + SkPoint::Make(40*SK_Scalar1, 0); in AddLine() 122 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveLine() [all …]
|
D | quadpaths.cpp | 80 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw() 81 path.fPath.quadTo(50*SK_Scalar1, 20*SK_Scalar1, in onDraw() 82 75*SK_Scalar1, 10*SK_Scalar1); in onDraw() 89 titlePaint.setTextSize(15 * SK_Scalar1); in onDraw() 93 20 * SK_Scalar1, in onDraw() 94 20 * SK_Scalar1, in onDraw() 98 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw() 100 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw() 104 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw() 109 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw() [all …]
|
D | cubicpaths.cpp | 191 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); in onDraw() 192 path.fPath.cubicTo(40*SK_Scalar1, 20*SK_Scalar1, in onDraw() 193 60*SK_Scalar1, 20*SK_Scalar1, in onDraw() 194 75*SK_Scalar1, 10*SK_Scalar1); in onDraw() 201 titlePaint.setTextSize(15 * SK_Scalar1); in onDraw() 205 20 * SK_Scalar1, in onDraw() 206 20 * SK_Scalar1, in onDraw() 210 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in onDraw() 212 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw() 216 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw() [all …]
|
D | roundrects.cpp | 141 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw() 164 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw() 165 SK_Scalar1 / 4, in onDraw() 166 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw() 167 3 * SK_Scalar1 / 4); in onDraw() 192 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, in onDraw() 193 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4); in onDraw() 211 canvas->translate(kXStart + SK_Scalar1 * kXStep * 4 + SK_Scalar1 / 4, in onDraw() 212 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4 + in onDraw() 231 canvas->translate(kXStart + SK_Scalar1 * kXStep * 3.25f + SK_Scalar1 / 4, in onDraw() [all …]
|
D | ovals.cpp | 140 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw() 161 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw() 162 SK_Scalar1 / 4, in onDraw() 163 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw() 164 3 * SK_Scalar1 / 4); in onDraw() 186 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, in onDraw() 187 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4); in onDraw() 202 canvas->translate(kXStart + SK_Scalar1 * kXStep * 4 + SK_Scalar1 / 4, in onDraw() 203 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4 + in onDraw() 219 canvas->translate(kXStart + SK_Scalar1 * kXStep * 3.25f + SK_Scalar1 / 4, in onDraw() [all …]
|
D | bigmatrix.cpp | 18 m.setRotate(33 * SK_Scalar1); 19 m.postScale(3000 * SK_Scalar1, 3000 * SK_Scalar1); 20 m.postTranslate(6000 * SK_Scalar1, -5000 * SK_Scalar1); 33 SkPoint pt = {10 * SK_Scalar1, 10 * SK_Scalar1}; 34 SkScalar small = 1 / (500 * SK_Scalar1); 40 pt.set(30 * SK_Scalar1, 10 * SK_Scalar1); 53 pt.set(30 * SK_Scalar1, 30 * SK_Scalar1); 57 s.setScale(SK_Scalar1 / 1000, SK_Scalar1 / 1000);
|
D | linepaths.cpp | 66 path.fPath.moveTo(25*SK_Scalar1, 15*SK_Scalar1); in draw() 67 path.fPath.lineTo(75*SK_Scalar1, 15*SK_Scalar1); in draw() 79 titlePaint.setTextSize(15 * SK_Scalar1); in draw() 86 20 * SK_Scalar1, in draw() 87 20 * SK_Scalar1, in draw() 91 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); in draw() 93 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in draw() 97 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in draw() 102 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in draw() 107 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in draw() [all …]
|
D | drawbitmaprect.cpp | 61 SK_Scalar1 / 6, in makebm() 62 2 * SK_Scalar1 / 6, in makebm() 63 3 * SK_Scalar1 / 6, in makebm() 64 4 * SK_Scalar1 / 6, in makebm() 65 5 * SK_Scalar1 / 6, in makebm() 66 SK_Scalar1}; in makebm() 80 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); in makebm() 155 canvas->translate(SK_Scalar1 * kPadX / 2, in onDraw() 156 SK_Scalar1 * kPadY / 2); in onDraw() 158 SkScalar titleHeight = SK_Scalar1 * 24; in onDraw() [all …]
|
D | texteffects.cpp | 22 p.setStrokeWidth(SK_Scalar1); in r0() 37 p.setStrokeWidth(SK_Scalar1*2); in r1() 43 p.setStrokeWidth(SK_Scalar1*4); in r2() 47 p.setStrokeWidth(SK_Scalar1*3/2); in r2() 54 p.setStrokeWidth(SK_Scalar1*3); in r3() 69 rastBuilder->addLayer(p, SK_Scalar1*3/2, SK_Scalar1*3/2); in r4() 80 p.setPathEffect(SkDiscretePathEffect::Create(SK_Scalar1*4, SK_Scalar1*3))->unref(); in r5() 106 lattice.setScale(SK_Scalar1*6, SK_Scalar1*6, 0, 0); in r7() 107 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in r7() 108 p.setPathEffect(MakeDotEffect(SK_Scalar1*4, lattice))->unref(); in r7() [all …]
|
D | drawminibitmaprect.cpp | 37 SK_Scalar1 / 6, in makebm() 38 2 * SK_Scalar1 / 6, in makebm() 39 3 * SK_Scalar1 / 6, in makebm() 40 4 * SK_Scalar1 / 6, in makebm() 41 5 * SK_Scalar1 / 6, in makebm() 42 SK_Scalar1}; in makebm() 57 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); in makebm() 120 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 124 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
|
D | aaclip.cpp | 40 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 10 * SK_Scalar1)); in draw_square() 45 SkRect target (SkRect::MakeWH(1 * SK_Scalar1, 10 * SK_Scalar1)); in draw_column() 50 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 1 * SK_Scalar1)); in draw_bar() 87 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw() 91 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw() 95 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw() 99 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); in onDraw()
|
D | circles.cpp | 69 SkScalar pos[] = { 0, SK_ScalarHalf, SK_Scalar1 }; in makePaints() 168 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); in onDraw() 173 canvas->translate(SK_Scalar1 * 200 * (i % 5) + SK_Scalar1 / 4, in onDraw() 174 SK_Scalar1 * 200 * (i / 5) + 3 * SK_Scalar1 / 4); in onDraw() 188 canvas->translate(SK_Scalar1 * 200 * (i % 5) + SK_Scalar1 / 4, in onDraw() 189 SK_Scalar1 * 200 * (i / 5) + 3 * SK_Scalar1 / 4); in onDraw()
|
D | emptypath.cpp | 68 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()
|
/external/skia/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 | 15 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 …]
|
D | PathTest.cpp | 134 stroke.setStrokeStyle(2 * SK_Scalar1); in test_path_crbugskia2820() 655 matrix.setTranslate(SK_Scalar1, SK_Scalar1); in test_isfinite_after_transform() 713 if (size < SK_Scalar1) { in test_arb_round_rect_is_convex() 740 if (size < SK_Scalar1) { in test_arb_zero_rad_round_rect_is_rect() 773 { SK_Scalar1, 0 }, in test_rect_isfinite() 774 { 0, SK_Scalar1 }, in test_rect_isfinite() 804 path.moveTo(SK_Scalar1, 0); in test_path_isfinite() 913 rec.setStrokeStyle(SK_Scalar1, false); in test_strokerec() 916 rec.setStrokeStyle(SK_Scalar1, true); in test_strokerec() 1016 path.lineTo(110 * SK_Scalar1, -10 * SK_Scalar1); in test_direction() [all …]
|
/external/skia/src/core/ |
D | SkTextFormatParams.h | 17 #define kStdStrikeThru_Offset (-SK_Scalar1 * 6 / 21) 19 #define kStdUnderline_Offset (SK_Scalar1 / 9) 21 #define kStdUnderline_Thickness (SK_Scalar1 / 18) 28 SK_Scalar1*9, 29 SK_Scalar1*36, 32 SK_Scalar1/24, 33 SK_Scalar1/32,
|
/external/skia/samplecode/ |
D | SampleHairCurves.cpp | 36 canvas->scale(1000 * SK_Scalar1, 1000 * SK_Scalar1); in onDrawContent() 59 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent() 60 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent() 61 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent() 62 ctrlPts.addCircle(pts[6], pts[7], SK_Scalar1 / 200); in onDrawContent() 78 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent() 79 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent() 80 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); in onDrawContent() 99 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); in onDrawContent() 100 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); in onDrawContent() [all …]
|
D | SampleDegenerateTwoPtRadials.cpp | 17 SkScalar pos[] = { 0, 0.25f, 0.75f, SK_Scalar1 }; in draw_gradient2() 24 SkASSERT(0 == SkScalarMod(w, SK_Scalar1 * 5)); in draw_gradient2() 59 delta = delta - SK_Scalar1 * intPart; in onDrawContent() 61 delta = SK_Scalar1 - delta; in onDrawContent() 67 SkScalar w = SK_Scalar1 * 500; in onDrawContent() 68 SkScalar h = SK_Scalar1 * 500; in onDrawContent() 69 SkScalar l = SK_Scalar1 * 100; in onDrawContent() 70 SkScalar t = SK_Scalar1 * 100; in onDrawContent() 77 …canvas->drawText(txt.c_str(), txt.size(), l + w/2 + w*DELTA_SCALE*delta, t + h + SK_Scalar1 * 10, … in onDrawContent()
|
D | SampleSlides.cpp | 167 static const SkScalar gPos0[] = { 0, SK_Scalar1 }; 168 static const SkScalar gPos1[] = { SK_Scalar1/4, SK_Scalar1*3/4 }; 170 0, SK_Scalar1/8, SK_Scalar1/2, SK_Scalar1*7/8, SK_Scalar1 296 matrix.setScale(-SK_Scalar1, SK_Scalar1); in textonpath_slide() 301 matrix.setScale(SK_Scalar1, -SK_Scalar1); in textonpath_slide() 305 matrix.setScale(-SK_Scalar1, -SK_Scalar1); in textonpath_slide() 480 p.setStrokeWidth(SK_Scalar1); in r0() 496 p.setStrokeWidth(SK_Scalar1*2); in r1() 503 p.setStrokeWidth(SK_Scalar1*4); in r2() 507 p.setStrokeWidth(SK_Scalar1*3/2); in r2() [all …]
|
D | SampleAll.cpp | 88 p.setStrokeWidth(SK_Scalar1); in r0() 103 p.setStrokeWidth(SK_Scalar1*2); in r1() 109 p.setStrokeWidth(SK_Scalar1*4); in r2() 113 p.setStrokeWidth(SK_Scalar1*3/2); in r2() 120 p.setStrokeWidth(SK_Scalar1*3); in r3() 135 rastBuilder->addLayer(p, SK_Scalar1*3/2, SK_Scalar1*3/2); in r4() 144 p.setPathEffect(SkDiscretePathEffect::Create(SK_Scalar1*4, SK_Scalar1*3))->unref(); in r5() 185 lattice.setScale(SK_Scalar1*6, SK_Scalar1*6, 0, 0); in r7() 186 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in r7() 187 p.setPathEffect(new Dot2DPathEffect(SK_Scalar1*4, lattice))->unref(); in r7() [all …]
|
/external/skia/src/svg/parser/ |
D | SkSVGSVG.cpp | 41 height = SkScalarMulDiv(height, SK_Scalar1 * 72, SK_Scalar1 * 96); in translate() 44 width = SkScalarMulDiv(width, SK_Scalar1 * 72, SK_Scalar1 * 96); in translate() 49 box.fRight == SK_Scalar1 && box.fBottom == SK_Scalar1) in translate() 62 if (box.fRight != SK_Scalar1) { in translate() 67 if (box.fBottom != SK_Scalar1) { in translate()
|
/external/skia/bench/ |
D | DashBench.cpp | 146 path->moveTo(0, -SK_Scalar1); in make_unit_star() 165 path->quadTo(x0, y0 + 400 * SK_Scalar1, in make_quad() 166 x0 + 600 * SK_Scalar1, y0 + 400 * SK_Scalar1); in make_quad() 173 path->cubicTo(x0, y0 + 400 * SK_Scalar1, in make_cubic() 174 x0 + 600 * SK_Scalar1, y0 + 400 * SK_Scalar1, in make_cubic() 175 x0 + 600 * SK_Scalar1, y0); in make_cubic() 226 SkScalar vals[] = { SK_Scalar1, SK_Scalar1 }; in DashLineBench() 242 canvas->drawLine(10 * SK_Scalar1, 10 * SK_Scalar1, in onDraw() 243 640 * SK_Scalar1, 10 * SK_Scalar1, paint); in onDraw() 266 fPathEffect.reset(SkDashPathEffect::Create(vals, 2, SK_Scalar1)); in DrawPointsDashingBench() [all …]
|
/external/skia/src/utils/ |
D | SkMatrix22.cpp | 18 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()
|