/external/skia/docs/examples/ |
D | fivearcs.cpp | 13 SkRect oval = {8, 8, 56, 56}; in draw() local 15 canvas->drawOval(oval, ovalPaint); in draw() 17 arcPath.arcTo(oval, 0, 90, false); in draw() 21 canvas->drawOval(oval, ovalPaint); in draw() 22 canvas->drawArc(oval, 0, 90, false, arcPaint); in draw() 25 canvas->drawOval(oval, ovalPaint); in draw() 27 arcPath.addArc(oval, 0, 90); in draw() 31 canvas->drawOval(oval, ovalPaint); in draw() 38 canvas->drawOval(oval, ovalPaint); in draw()
|
D | Path_conicTo_2.cpp | 10 SkRect oval = {0, 20, 120, 140}; in draw() local 13 path.moveTo(oval.centerX(), oval.fTop); in draw() 14 path.arcTo(oval, -90, 90 - 20 * i, false); in draw() 15 oval.inset(15, 15); in draw()
|
D | Arc.cpp | 8 SkRect oval = {8, 8, 56, 56}; 20 canvas->drawOval(oval, ovalPaint); 25 path.arcTo(oval, 0, 90, false); 28 canvas->drawArc(oval, 0, 90, false, arcPaint); 31 path.addArc(oval, 0, 90);
|
D | shapes.cpp | 17 SkRRect oval; in draw() local 18 oval.setOval(rect); in draw() 19 oval.offset(40, 80); in draw() 21 canvas->drawRRect(oval, paint); in draw()
|
D | shapes_with_motion.cpp | 19 SkRRect oval; in draw() local 20 oval.setOval(rect); in draw() 21 oval.offset(40, p * 80); in draw() 23 canvas->drawRRect(oval, paint); in draw()
|
D | skcanvas_paint.cpp | 16 SkRRect oval; in draw() local 17 oval.setOval(rect); in draw() 18 oval.offset(40, 60); in draw() 20 canvas->drawRRect(oval, paint); in draw()
|
D | Path_addOval.cpp | 8 SkPath oval; in draw() local 9 oval.addOval({20, 20, 160, 80}); in draw() 10 canvas->drawPath(oval, paint); in draw()
|
D | Canvas_clipRRect.cpp | 11 SkRRect oval; in draw() local 12 oval.setOval({10, 20, 90, 100}); in draw() 13 canvas->clipRRect(oval, SkClipOp::kIntersect, true); in draw()
|
D | SkPath_arcTo_example.cpp | 13 SkRect oval = {64, 64, 448, 448}; in draw() local 14 canvas->drawOval(oval, paint); in draw() 19 arc.arcTo(oval, startAngle, sweepAngle, false); in draw()
|
D | RRect_contains.cpp | 10 SkRRect oval = SkRRect::MakeOval(test); 15 canvas->drawString(oval.contains(test) ? "contains" : "does not contain", 185, 100, paint); 20 canvas->drawRRect(oval, paint);
|
D | Canvas_clipRRect_3.cpp | 9 auto oval = SkRRect::MakeRectXY({10, 20, 90, 100}, 9, 13); in draw() local 10 canvas->clipRRect(oval, true); in draw()
|
/external/skqp/src/gpu/effects/ |
D | GrOvalEffect.cpp | 14 std::unique_ptr<GrFragmentProcessor> GrOvalEffect::Make(GrClipEdgeType edgeType, const SkRect& oval, in Make() argument 19 SkScalar w = oval.width(); in Make() 20 SkScalar h = oval.height(); in Make() 23 return GrCircleEffect::Make(edgeType, SkPoint::Make(oval.fLeft + w, oval.fTop + w), in Make() 28 return GrEllipseEffect::Make(edgeType, SkPoint::Make(oval.fLeft + w, oval.fTop + h), in Make()
|
/external/skia/src/gpu/effects/ |
D | GrOvalEffect.cpp | 15 const SkRect& oval, const GrShaderCaps& caps) { in Make() argument 16 SkScalar w = oval.width(); in Make() 17 SkScalar h = oval.height(); in Make() 21 SkPoint::Make(oval.fLeft + w, oval.fTop + w), w); in Make() 26 SkPoint::Make(oval.fLeft + w, oval.fTop + h), in Make()
|
/external/skia/gm/ |
D | arcto.cpp | 74 SkRect oval = SkRect::MakeXYWH(100, 100, 100, 100); variable 79 SkScalar ovalHeight = oval.height() / oHeight; 80 svgArc.moveTo(oval.fLeft, oval.fTop); 81 svgArc.arcTo({oval.width() / 2, ovalHeight}, angle, SkPathBuilder::kSmall_ArcSize, 82 SkPathDirection::kCW, {oval.right(), oval.bottom()}); 85 svgArc.moveTo(oval.fLeft + 100, oval.fTop + 100); 86 svgArc.arcTo({oval.width() / 2, ovalHeight}, angle, SkPathBuilder::kLarge_ArcSize, 87 SkPathDirection::kCCW, {oval.right(), oval.bottom() + 100}); 89 oval.offset(50, 0); 205 SkRect oval = SkRect::MakeXYWH(-radius, yOffset - radius, 2 * radius, 2 * radius); variable [all …]
|
D | ovals.cpp | 149 SkRect oval = SkRect::MakeLTRB(-20, -30, 20, 30); in onDraw() local 178 canvas->drawRect(oval, rectPaint); in onDraw() 179 canvas->drawOval(oval, fPaints[i]); in onDraw() 191 SkRect oval = SkRect::MakeLTRB(-20, -60, 20, 60); in onDraw() local 200 canvas->drawRect(oval, rectPaint); in onDraw() 201 canvas->drawOval(oval, fPaints[i]); in onDraw() 207 SkRect oval = SkRect::MakeLTRB(-80, -30, 80, 30); in onDraw() local 217 canvas->drawRect(oval, rectPaint); in onDraw() 218 canvas->drawOval(oval, fPaints[i]); in onDraw() 224 SkRect oval = SkRect::MakeLTRB(0, -60, 1, 60); in onDraw() local [all …]
|
D | testgradient.cpp | 57 SkRRect oval; in onDraw() local 58 oval.setOval(rect); in onDraw() 59 oval.offset(40, 80); in onDraw() 61 canvas->drawRRect(oval, paint); in onDraw()
|
/external/skqp/gm/ |
D | arcto.cpp | 54 SkRect oval = SkRect::MakeXYWH(100, 100, 100, 100); variable 59 SkScalar ovalHeight = oval.height() / oHeight; 60 svgArc.moveTo(oval.fLeft, oval.fTop); 61 svgArc.arcTo(oval.width() / 2, ovalHeight, SkIntToScalar(angle), SkPath::kSmall_ArcSize, 62 SkPath::kCW_Direction, oval.right(), oval.bottom()); 66 svgArc.moveTo(oval.fLeft + 100, oval.fTop + 100); 67 svgArc.arcTo(oval.width() / 2, ovalHeight, SkIntToScalar(angle), SkPath::kLarge_ArcSize, 68 SkPath::kCCW_Direction, oval.right(), oval.bottom() + 100); 70 oval.offset(50, 0); 198 SkRect oval = SkRect::MakeXYWH(-radius, yOffset - radius, 2 * radius, 2 * radius); variable [all …]
|
D | ovals.cpp | 142 SkRect oval = SkRect::MakeLTRB(-20, -30, 20, 30); in onDraw() local 171 canvas->drawRect(oval, rectPaint); in onDraw() 172 canvas->drawOval(oval, fPaints[i]); in onDraw() 184 SkRect oval = SkRect::MakeLTRB(-20, -60, 20, 60); in onDraw() local 193 canvas->drawRect(oval, rectPaint); in onDraw() 194 canvas->drawOval(oval, fPaints[i]); in onDraw() 200 SkRect oval = SkRect::MakeLTRB(-80, -30, 80, 30); in onDraw() local 210 canvas->drawRect(oval, rectPaint); in onDraw() 211 canvas->drawOval(oval, fPaints[i]); in onDraw() 217 SkRect oval = SkRect::MakeLTRB(0, -60, 1, 60); in onDraw() local [all …]
|
D | testgradient.cpp | 51 SkRRect oval; in onDraw() local 52 oval.setOval(rect); in onDraw() 53 oval.offset(40, 80); in onDraw() 55 canvas->drawRRect(oval, paint); in onDraw()
|
/external/skia/src/core/ |
D | SkPathBuilder.cpp | 230 static bool arc_is_lone_point(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arc_is_lone_point() argument 236 pt->set(oval.fRight, oval.centerY()); in arc_is_lone_point() 238 } else if (0 == oval.width() && 0 == oval.height()) { in arc_is_lone_point() 245 pt->set(oval.fRight, oval.fTop); in arc_is_lone_point() 291 static int build_arc_conics(const SkRect& oval, const SkVector& start, const SkVector& stop, in build_arc_conics() argument 296 matrix.setScale(SkScalarHalf(oval.width()), SkScalarHalf(oval.height())); in build_arc_conics() 297 matrix.postTranslate(oval.centerX(), oval.centerY()); in build_arc_conics() 311 SkPathBuilder& SkPathBuilder::arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arcTo() argument 313 if (oval.width() < 0 || oval.height() < 0) { in arcTo() 322 if (arc_is_lone_point(oval, startAngle, sweepAngle, &lonePt)) { in arcTo() [all …]
|
D | SkPathMakers.h | 53 SkPath_OvalPointIterator(const SkRect& oval, SkPathDirection dir, unsigned startIndex) in SkPath_OvalPointIterator() argument 56 const SkScalar cx = oval.centerX(); in SkPath_OvalPointIterator() 57 const SkScalar cy = oval.centerY(); in SkPath_OvalPointIterator() 59 fPts[0] = SkPoint::Make(cx, oval.fTop); in SkPath_OvalPointIterator() 60 fPts[1] = SkPoint::Make(oval.fRight, cy); in SkPath_OvalPointIterator() 61 fPts[2] = SkPoint::Make(cx, oval.fBottom); in SkPath_OvalPointIterator() 62 fPts[3] = SkPoint::Make(oval.fLeft, cy); in SkPath_OvalPointIterator()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowCanvas.java | 196 RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) { in drawArc() argument 197 arcPaintEvents.add(new ArcPaintHistoryEvent(oval, startAngle, sweepAngle, useCenter, paint)); in drawArc() 211 protected void drawOval(RectF oval, Paint paint) { in drawOval() argument 212 ovalPaintEvents.add(new OvalPaintHistoryEvent(oval, paint)); in drawOval() 386 public final RectF oval; field in ShadowCanvas.OvalPaintHistoryEvent 389 private OvalPaintHistoryEvent(RectF oval, Paint paint) { in OvalPaintHistoryEvent() argument 390 this.oval = new RectF(oval); in OvalPaintHistoryEvent() 445 public final RectF oval; field in ShadowCanvas.ArcPaintHistoryEvent 451 public ArcPaintHistoryEvent(RectF oval, float startAngle, float sweepAngle, boolean useCenter, in ArcPaintHistoryEvent() argument 453 this.oval = oval; in ArcPaintHistoryEvent()
|
/external/skia/src/gpu/ops/ |
D | GrOvalOpFactory.h | 32 const SkRect& oval, 39 const SkRect& oval, 60 const SkRect& oval,
|
/external/skia/samplecode/ |
D | SamplePathEffects.cpp | 99 SkRect oval; in onOnceBeforeDraw() local 100 oval.setLTRB(20, 30, 100, 60); in onOnceBeforeDraw() 101 oval.offset(x, 0); in onOnceBeforeDraw() 102 fPath.addRoundRect(oval, SkIntToScalar(8), SkIntToScalar(8)); in onOnceBeforeDraw()
|
/external/skqp/samplecode/ |
D | SamplePathEffects.cpp | 99 SkRect oval; in onOnceBeforeDraw() local 100 oval.set(SkIntToScalar(20), SkIntToScalar(30), in onOnceBeforeDraw() 102 oval.offset(x, 0); in onOnceBeforeDraw() 103 fPath.addRoundRect(oval, SkIntToScalar(8), SkIntToScalar(8)); in onOnceBeforeDraw()
|