/external/skia/gm/ |
convexpaths.cpp | 55 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, 56 0, 100 * SK_Scalar1); 59 fPaths.push_back().moveTo(0, 50 * SK_Scalar1); 60 fPaths.back().quadTo(50 * SK_Scalar1, 0, 61 100 * SK_Scalar1, 50 * SK_Scalar1); 62 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, 63 0, 50 * SK_Scalar1); [all...] |
quadpaths.cpp | 80 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); 81 path.fPath.quadTo(50*SK_Scalar1, 20*SK_Scalar1, 82 75*SK_Scalar1, 10*SK_Scalar1); 89 titlePaint.setTextSize(15 * SK_Scalar1); 93 20 * SK_Scalar1, 94 20 * SK_Scalar1, 98 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1) [all...] |
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); [all...] |
ovals.cpp | 140 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); 161 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + 162 SK_Scalar1 / 4, 163 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + 164 3 * SK_Scalar1 / 4); 186 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, 187 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4) [all...] |
roundrects.cpp | 141 canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); 164 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + 165 SK_Scalar1 / 4, 166 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + 167 3 * SK_Scalar1 / 4); 192 canvas->translate(kXStart + SK_Scalar1 * kXStep * 2.55f + SK_Scalar1 / 4, 193 kYStart + SK_Scalar1 * kYStep * i + 3 * SK_Scalar1 / 4) [all...] |
cubicpaths.cpp | 191 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); 192 path.fPath.cubicTo(40*SK_Scalar1, 20*SK_Scalar1, 193 60*SK_Scalar1, 20*SK_Scalar1, 194 75*SK_Scalar1, 10*SK_Scalar1); 201 titlePaint.setTextSize(15 * SK_Scalar1); 205 20 * SK_Scalar1, [all...] |
degeneratesegments.cpp | 38 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 44 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 56 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 63 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 76 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 83 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 96 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 103 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); 116 SkPoint endPt = startPt + SkPoint::Make(40*SK_Scalar1, 0); 122 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); [all...] |
linepaths.cpp | 66 path.fPath.moveTo(25*SK_Scalar1, 15*SK_Scalar1); 67 path.fPath.lineTo(75*SK_Scalar1, 15*SK_Scalar1); 79 titlePaint.setTextSize(15 * SK_Scalar1); 86 20 * SK_Scalar1, 87 20 * SK_Scalar1, 91 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); 93 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1) [all...] |
drawbitmaprect.cpp | 61 SK_Scalar1 / 6, 62 2 * SK_Scalar1 / 6, 63 3 * SK_Scalar1 / 6, 64 4 * SK_Scalar1 / 6, 65 5 * SK_Scalar1 / 6, 66 SK_Scalar1}; 80 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); 155 canvas->translate(SK_Scalar1 * kPadX / 2, 156 SK_Scalar1 * kPadY / 2) [all...] |
drawminibitmaprect.cpp | 37 SK_Scalar1 / 6, 38 2 * SK_Scalar1 / 6, 39 3 * SK_Scalar1 / 6, 40 4 * SK_Scalar1 / 6, 41 5 * SK_Scalar1 / 6, 42 SK_Scalar1}; 57 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); 120 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 124 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY) [all...] |
aaclip.cpp | 40 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 10 * SK_Scalar1)); 45 SkRect target (SkRect::MakeWH(1 * SK_Scalar1, 10 * SK_Scalar1)); 50 SkRect target (SkRect::MakeWH(10 * SK_Scalar1, 1 * SK_Scalar1)); 87 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); 91 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5) [all...] |
cmykjpeg.cpp | 55 canvas->translate(20*SK_Scalar1, 20*SK_Scalar1);
|
/external/skia/src/core/ |
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/tests/ |
PathMeasureTest.cpp | 51 { SK_Scalar1, SK_Scalar1 }, 80 path.lineTo(SK_Scalar1, 0); 81 path.lineTo(SK_Scalar1, SK_Scalar1); 82 path.lineTo(0, SK_Scalar1); 86 SkASSERT(length == SK_Scalar1*4); 90 path.lineTo(SK_Scalar1*3, SK_Scalar1*4); 93 REPORTER_ASSERT(reporter, length == SK_Scalar1*5) [all...] |
MatrixTest.cpp | 15 const SkScalar tolerance = SK_Scalar1 / 200000; 117 src.set(0, 0, SK_Scalar1*10, SK_Scalar1*10); 123 dst.offset(SK_Scalar1, SK_Scalar1); 128 dst.fRight += SK_Scalar1; 167 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMinScale()); 168 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxScale()); 170 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]) [all...] |
/external/skia/src/utils/ |
SkMatrix22.cpp | 18 c = SkScalarCopySign(SK_Scalar1, a); 23 s = -SkScalarCopySign(SK_Scalar1, b); 27 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), b); 28 s = -SK_Scalar1 / u; 33 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), a); 34 c = SK_Scalar1 / u;
|
/external/skia/src/svg/parser/ |
SkSVGSVG.cpp | 41 height = SkScalarMulDiv(height, SK_Scalar1 * 72, SK_Scalar1 * 96); 44 width = SkScalarMulDiv(width, SK_Scalar1 * 72, SK_Scalar1 * 96); 49 box.fRight == SK_Scalar1 && box.fBottom == SK_Scalar1) 62 if (box.fRight != SK_Scalar1) { 67 if (box.fBottom != SK_Scalar1) {
|
/external/skia/samplecode/ |
SampleHairCurves.cpp | 36 canvas->scale(1000 * SK_Scalar1, 1000 * SK_Scalar1); 59 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); 60 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); 61 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); 62 ctrlPts.addCircle(pts[6], pts[7], SK_Scalar1 / 200); 78 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200); 79 ctrlPts.addCircle(pts[2], pts[3], SK_Scalar1 / 200); 80 ctrlPts.addCircle(pts[4], pts[5], SK_Scalar1 / 200); 99 ctrlPts.addCircle(pts[0], pts[1], SK_Scalar1 / 200) [all...] |
SampleDegenerateTwoPtRadials.cpp | 17 SkScalar pos[] = { 0, 0.25f, 0.75f, SK_Scalar1 }; 24 SkASSERT(0 == SkScalarMod(w, SK_Scalar1 * 5)); 59 delta = delta - SK_Scalar1 * intPart; 61 delta = SK_Scalar1 - delta; 67 SkScalar w = SK_Scalar1 * 500; 68 SkScalar h = SK_Scalar1 * 500; 69 SkScalar l = SK_Scalar1 * 100; 70 SkScalar t = SK_Scalar1 * 100; 77 canvas->drawText(txt.c_str(), txt.size(), l + w/2 + w*DELTA_SCALE*delta, t + h + SK_Scalar1 * 10, paint);
|
SampleEmboss.cpp | 32 fLight.fDirection[0] = SK_Scalar1; 33 fLight.fDirection[1] = SK_Scalar1; 34 fLight.fDirection[2] = SK_Scalar1;
|
SampleAnimBlur.cpp | 56 canvas->drawCircle(200 * SK_Scalar1 + 400 * (i % 2) * SK_Scalar1, 57 200 * SK_Scalar1 + i / 2 * 400 * SK_Scalar1,
|
SampleClamp.cpp | 17 SkPoint pts[] = { 0, 0, SK_Scalar1/500, SK_Scalar1/500 };
|
/external/skia/bench/ |
DashBench.cpp | 146 path->moveTo(0, -SK_Scalar1); 165 path->quadTo(x0, y0 + 400 * SK_Scalar1, 166 x0 + 600 * SK_Scalar1, y0 + 400 * SK_Scalar1); 173 path->cubicTo(x0, y0 + 400 * SK_Scalar1, 174 x0 + 600 * SK_Scalar1, y0 + 400 * SK_Scalar1, 175 x0 + 600 * SK_Scalar1, y0); 226 SkScalar vals[] = { SK_Scalar1, SK_Scalar1 }; [all...] |
LineBench.cpp | 63 DEF_BENCH(return new LineBench(SK_Scalar1, false);) 65 DEF_BENCH(return new LineBench(SK_Scalar1/2, true);) 66 DEF_BENCH(return new LineBench(SK_Scalar1, true);)
|
/external/skia/src/gpu/gl/ |
GrGLPathRendering.h | 100 combined.setAll(SkIntToScalar(2) / fRenderTargetSize.fWidth, 0, -SK_Scalar1, 101 0, -SkIntToScalar(2) / fRenderTargetSize.fHeight, SK_Scalar1, 104 combined.setAll(SkIntToScalar(2) / fRenderTargetSize.fWidth, 0, -SK_Scalar1, 105 0, SkIntToScalar(2) / fRenderTargetSize.fHeight, -SK_Scalar1,
|