/third_party/skia/docs/examples/ |
D | mapradius.cpp | 19 canvas->drawLine(40, 240, 40 + minorAxis.length(), 240, paint); in draw() 20 canvas->drawLine(42 + minorAxis.length(), 240, 42 + minorAxis.length() + majorAxis.length(), in draw() 23 canvas->drawLine(center.fX, center.fY, center.fX + mappedRadius, center.fY, paint); in draw() 24 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + mappedRadius, paint); in draw() 25 canvas->drawLine(40, 220, 40 + mappedRadius, 220, paint); in draw() 26 canvas->drawLine(42 + mappedRadius, 220, 42 + mappedRadius * 2, 220, paint); in draw() 30 canvas->drawLine(center.fX, center.fY, center.fX + circleRadius, center.fY, paint); in draw() 31 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + circleRadius, paint); in draw()
|
D | SkPath_cubicTo_example_parametric_animated.cpp | 58 canvas->drawLine(ab, bc, paint); in draw() 59 canvas->drawLine(bc, cd, paint); in draw() 60 canvas->drawLine(abc, bcd, paint); in draw() 63 canvas->drawLine(a, b, paint); in draw() 64 canvas->drawLine(b, c, paint); in draw() 65 canvas->drawLine(c, d, paint); in draw()
|
D | Canvas_drawRRect.cpp | 15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in draw() 17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw() 19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw() 21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, in draw()
|
D | RRect_Corner.cpp | 15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
|
D | RRect_setNinePatch.cpp | 14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
|
D | Path_arcTo_2_a.cpp | 21 canvas->drawLine(pts[0], pts[1], tangentPaint); 22 canvas->drawLine(pts[1], pts[2], tangentPaint); 29 canvas->drawLine(lastPt, center, tangentPaint); 33 canvas->drawLine(center, arcStart, tangentPaint);
|
D | Path_arcTo_2_b.cpp | 21 canvas->drawLine(pts[0], pts[1], tangentPaint); 22 canvas->drawLine(pts[1], pts[2], tangentPaint); 28 canvas->drawLine(lastPt, center, tangentPaint); 32 canvas->drawLine(center, arcStart, tangentPaint);
|
D | Matrix_mapRadius.cpp | 31 canvas->drawLine(center.fX, center.fY, center.fX + mappedRadius, center.fY, paint); 32 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + mappedRadius, paint); 37 canvas->drawLine(center.fX, center.fY, center.fX + circleRadius, center.fY, paint); 38 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + circleRadius, paint);
|
D | Point_normalize_2.cpp | 12 canvas->drawLine(line[0], line[1], paint); in draw() 17 canvas->drawLine(line[0] - rotate90, line[0] + rotate90, paint); in draw() 18 canvas->drawLine(line[1] - rotate90, line[1] + rotate90, paint); in draw()
|
D | Point_Normalize.cpp | 13 canvas->drawLine(line[0], line[1], paint); 18 canvas->drawLine(line[0] - rotate90, line[0] + rotate90, paint); 19 canvas->drawLine(line[1] - rotate90, line[1] + rotate90, paint);
|
D | Canvas_drawLine_2.cpp | 12 canvas->drawLine({32, 96}, {32, 160}, paint); in draw() 14 canvas->drawLine({288, 96}, {288, 160}, paint); in draw()
|
D | Canvas_drawLine.cpp | 12 canvas->drawLine(32, 96, 32, 160, paint); in draw() 14 canvas->drawLine(288, 96, 288, 160, paint); in draw()
|
D | Canvas_rotate.cpp | 13 canvas->drawLine(0, 0, 0, -50, paint); in draw() 16 canvas->drawLine(0, 0, 0, -30, paint); in draw()
|
D | Stroke_Width.cpp | 13 canvas->drawLine(10 + offset, 10, 20 + offset, 60, paint); in draw() 14 canvas->drawLine(10 + offset, 110, 60 + offset, 160, paint); in draw()
|
D | State_Stack_a.cpp | 15 canvas->drawLine(20, 20, 150, 150, paint); // line below 100 is not drawn in draw() 17 canvas->drawLine(150, 20, 50, 120, paint); // line below 100 is drawn in draw()
|
D | Point_setLength.cpp | 15 canvas->drawLine(origin, point, paint); in draw() 20 canvas->drawLine(origin, normal, paint); in draw()
|
D | Quad_a.cpp | 11 canvas->drawLine(quadPts[0], quadPts[1], paint); in draw() 12 canvas->drawLine(quadPts[1], quadPts[2], paint); in draw()
|
D | Point_setNormalize.cpp | 15 canvas->drawLine(origin, point, paint); in draw() 21 canvas->drawLine(origin, normal, paint); in draw()
|
D | Point_setLength_2.cpp | 15 canvas->drawLine(origin, point, paint); in draw() 20 canvas->drawLine(origin, normal, paint); in draw()
|
/third_party/skia/experimental/sktext/samples/ |
D | Text.cpp | 46 void drawLine(SkCanvas* canvas, SkScalar w, SkScalar h, in drawLine() function in __anon41345caf0111::TextSample_Align_Dir 99 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kLtr); in onDrawContent() 101 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kLtr); in onDrawContent() 103 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kLtr); in onDrawContent() 105 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kLtr); in onDrawContent() 108 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kRtl); in onDrawContent() 110 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kRtl); in onDrawContent() 112 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kRtl); in onDrawContent() 114 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kRtl); in onDrawContent()
|
/third_party/skia/gm/ |
D | crop_imagefilter.cpp | 132 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint); in make_image() 134 surf->getCanvas()->drawLine({0.f, 3.f*h/8.f}, {w, 3.f*h/8.f}, paint); in make_image() 136 surf->getCanvas()->drawLine({0.f, 5.f*h/8.f}, {w, 5.f*h/8.f}, paint); in make_image() 138 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint); in make_image() 143 surf->getCanvas()->drawLine({1.f*w/4.f, 0.f}, {1.f*h/4.f, h}, paint); in make_image() 145 surf->getCanvas()->drawLine({3.f*w/8.f, 0.f}, {3.f*h/8.f, h}, paint); in make_image() 147 surf->getCanvas()->drawLine({5.f*w/8.f, 0.f}, {5.f*h/8.f, h}, paint); in make_image() 149 surf->getCanvas()->drawLine({3.f*w/4.f, 0.f}, {3.f*h/4.f, h}, paint); in make_image() 269 canvas->drawLine({kPaddedTileBounds.fLeft + 0.5f, kPaddedTileBounds.centerY() - 0.5f}, in draw_example_tile() 272 canvas->drawLine({kPaddedTileBounds.centerX() - 0.5f, kPaddedTileBounds.fTop + 0.5f}, in draw_example_tile() [all …]
|
D | pixelsnap.cpp | 83 canvas->drawLine(0.5f, in onDraw() 88 canvas->drawLine(i * SkIntToScalar(kTrans) + 0.5f, in onDraw() 134 canvas->drawLine(1, 1, 4, 1, paint); in drawElement() 135 canvas->drawLine(6, 1, 6, 4, paint); in drawElement()
|
D | gpu_blur_utils.cpp | 157 surf->getCanvas()->drawLine({0.f, 1.f*h/8.f}, {w, 1.f*h/8.f}, paint); in make_src_image() 159 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint); in make_src_image() 161 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint); in make_src_image() 163 surf->getCanvas()->drawLine({0.f, 7.f*h/8.f}, {w, 7.f*h/8.f}, paint); in make_src_image() 168 surf->getCanvas()->drawLine({1.f*w/8.f, 0.f}, {1.f*h/8.f, h}, paint); in make_src_image() 170 surf->getCanvas()->drawLine({1.f*w/4.f, 0.f}, {1.f*h/4.f, h}, paint); in make_src_image() 172 surf->getCanvas()->drawLine({3.f*w/4.f, 0.f}, {3.f*h/4.f, h}, paint); in make_src_image() 174 surf->getCanvas()->drawLine({7.f*w/8.f, 0.f}, {7.f*h/8.f, h}, paint); in make_src_image()
|
/third_party/skia/samplecode/ |
D | SamplePath.cpp | 488 canvas->drawLine(loc - tan, loc + tan, paint); in onDrawContent() 491 canvas->drawLine(fPts[0], fPts[3], paint); in onDrawContent() 609 canvas->drawLine(prev[i], prev[i+1], paint); in showFrame() 633 canvas->drawLine(fPts[0], fPts[3], paint); in showFlattness() 634 canvas->drawLine(fQuad[0], fQuad[2], paint); in showFlattness() 640 canvas->drawLine(pts[0], pts[1], paint); in showFlattness() 653 canvas->drawLine(anchor, anchor + v, paint2); in showFlattness() 654 canvas->drawLine(anchor, anchor + v0, paint); in showFlattness() 657 canvas->drawLine(anchor, anchor + v, paint2); in showFlattness() 659 canvas->drawLine(anchor, anchor + v1, paint); in showFlattness() [all …]
|
D | SampleArc.cpp | 89 canvas->drawLine(r.fLeft, r.fTop, r.fRight, r.fBottom, p); in DrawRectWithLines() 90 canvas->drawLine(r.fLeft, r.fBottom, r.fRight, r.fTop, p); in DrawRectWithLines() 91 canvas->drawLine(r.fLeft, r.centerY(), r.fRight, r.centerY(), p); in DrawRectWithLines() 92 canvas->drawLine(r.centerX(), r.fTop, r.centerX(), r.fBottom, p); in DrawRectWithLines()
|