/external/skia/tests/ |
D | RoundRectTest.cpp | 15 SkRRect rr; in test_tricky_radii() 28 SkRRect rr; in test_tricky_radii() 31 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii() 32 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii() 38 SkRRect rr; in test_empty_crbug_458524() 43 SkRRect other; in test_empty_crbug_458524() 47 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524() 68 SkRRect r; in test_empty() 109 SkRRect rr, rr2; in test_inset() 134 SkRRect rr; in test_9patch_rrect() [all …]
|
D | RRectInPathTest.cpp | 15 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path) { in path_contains_rrect() 16 SkRRect out; in path_contains_rrect() 28 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in) { in inner_path_contains_rrect() 30 case SkRRect::kEmpty_Type: in inner_path_contains_rrect() 31 case SkRRect::kRect_Type: in inner_path_contains_rrect() 32 case SkRRect::kOval_Type: in inner_path_contains_rrect() 42 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in) { in path_contains_rrect_check() 43 SkRRect out = inner_path_contains_rrect(reporter, in); in path_contains_rrect_check() 50 static void path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in) { in path_contains_rrect_nocheck() 51 SkRRect out = inner_path_contains_rrect(reporter, in); in path_contains_rrect_nocheck() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrRRectEffect.cpp | 30 kTopLeft_CornerFlag = (1 << SkRRect::kUpperLeft_Corner), 31 kTopRight_CornerFlag = (1 << SkRRect::kUpperRight_Corner), 32 kBottomRight_CornerFlag = (1 << SkRRect::kLowerRight_Corner), 33 kBottomLeft_CornerFlag = (1 << SkRRect::kLowerLeft_Corner), 49 const SkRRect&); 55 const SkRRect& getRRect() const { return fRRect; } in getRRect() 62 CircularRRectEffect(GrPrimitiveEdgeType, uint32_t circularCornerFlags, const SkRRect&); 72 SkRRect fRRect; 83 const SkRRect& rrect) { in Create() 95 const SkRRect& rrect) in CircularRRectEffect() [all …]
|
D | GrRRectEffect.h | 16 class SkRRect; variable 23 GrFragmentProcessor* Create(GrPrimitiveEdgeType, const SkRRect&);
|
/external/skia/gm/ |
D | rrect.cpp | 13 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*); 15 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0() 26 radii[i] = src.radii((SkRRect::Corner)i); in inset0() 35 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1() 46 radii[i] = src.radii((SkRRect::Corner)i); in inset1() 51 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2() 62 radii[i] = src.radii((SkRRect::Corner)i); in inset2() 79 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3() 90 radii[i] = src.radii((SkRRect::Corner)i); in inset3() 99 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color() [all …]
|
D | bigrrectaaeffect.cpp | 25 BigRRectAAEffectGM(const SkRRect& rrect, const char* name) in BigRRectAAEffectGM() 88 SkRRect rrect = fRRect; in onDraw() 115 SkRRect fRRect; 131 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRect(SkRect::MakeIWH(kSize, kSize)), "rect"); ) 132 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize, kSize)), "circle");… 133 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize - 1, kSize - 10)), "… 135 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), … 136 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), …
|
D | shapes.cpp | 82 SkTArray<SkRRect> fShapes; 101 const SkRRect& shape = fShapes[i]; in drawShapes() 105 case SkRRect::kRect_Type: in drawShapes() 108 case SkRRect::kOval_Type: in drawShapes() 130 const SkRRect& outer = fShapes[i]; in drawShapes() 131 const SkRRect& inner = fShapes[(i * 7 + 11) % fSimpleShapeCount]; in drawShapes() 142 SkRRect xformedInner; in drawShapes()
|
D | blurredclippedcircle.cpp | 58 SkRRect clipRRect = SkRRect::MakeOval(clipRect2); in onDraw() 62 SkRRect rr = SkRRect::MakeOval(r); in onDraw()
|
D | roundrects.cpp | 143 SkRRect circleRect; in onDraw() 187 SkRRect ellipseRect; in onDraw() 206 SkRRect ellipseRect; in onDraw() 226 SkRRect circleRect; in onDraw() 244 SkRRect circleRect; in onDraw() 304 SkRRect circleRect; in onDraw()
|
/external/skia/include/core/ |
D | SkRRect.h | 48 class SK_API SkRRect { 144 static SkRRect MakeRect(const SkRect& r) { in MakeRect() 145 SkRRect rr; in MakeRect() 150 static SkRRect MakeOval(const SkRect& oval) { in MakeOval() 151 SkRRect rr; in MakeOval() 156 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() 157 SkRRect rr; in MakeRectXY() 223 friend bool operator==(const SkRRect& a, const SkRRect& b) { 229 friend bool operator!=(const SkRRect& a, const SkRRect& b) { 243 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const; [all …]
|
D | SkMaskFilter.h | 29 class SkRRect; variable 105 virtual bool canFilterMaskGPU(const SkRRect& devRRect, 131 const SkRRect& rrect) const; 218 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 237 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
|
D | SkClipStack.h | 66 Element(const SkRRect& rrect, SkRegion::Op op, bool doAA) { in Element() 87 const SkRRect& getRRect() const { SkASSERT(kRRect_Type == fType); return fRRect; } in getRRect() 182 SkRRect fRRect; 212 Element(int saveCount, const SkRRect& rrect, SkRegion::Op op, bool doAA) { in Element() 242 void initRRect(int saveCount, const SkRRect& rrect, SkRegion::Op op, bool doAA) { in initRRect() 243 SkRRect::Type type = rrect.getType(); in initRRect() 245 if (SkRRect::kRect_Type == type || SkRRect::kEmpty_Type == type) { in initRRect() 330 void clipDevRRect(const SkRRect&, SkRegion::Op, bool doAA);
|
D | SkCanvas.h | 34 class SkRRect; variable 448 void clipRRect(const SkRRect& rrect, 712 void drawRRect(const SkRRect& rrect, const SkPaint& paint); 718 void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint&); 1224 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1251 virtual void onDrawRRect(const SkRRect&, const SkPaint&); 1278 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle); 1500 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
|
/external/skia/src/core/ |
D | SkRRect.cpp | 15 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() 52 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() 124 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 164 void SkRRect::scaleRadii() { in scaleRadii() 201 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment() 254 bool SkRRect::allCornersCircular() const { in allCornersCircular() 261 bool SkRRect::contains(const SkRect& rect) const { in contains() 283 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch() 284 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch() 285 radii[SkRRect::kUpperRight_Corner].fX == radii[SkRRect::kLowerRight_Corner].fX && in radii_are_nine_patch() [all …]
|
D | SkPictureRecord.h | 140 void addRRect(const SkRRect&); 162 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 183 void onDrawRRect(const SkRRect&, const SkPaint&) override; 202 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 217 size_t recordClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA);
|
D | SkRecorder.h | 64 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 97 void onDrawRRect(const SkRRect&, const SkPaint&) override; 118 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) override;
|
/external/skia/src/effects/ |
D | SkBlurMaskFilter.cpp | 49 bool canFilterMaskGPU(const SkRRect& devRRect, 66 const SkRRect& rrect) const override; 85 FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 91 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix, 182 bool SkBlurMaskFilterImpl::filterRRectMask(SkMask* dst, const SkRRect& r, in filterRRectMask() 209 static bool draw_rrect_into_mask(const SkRRect rrect, SkMask* mask) { in draw_rrect_into_mask() 280 SkBlurQuality quality, const SkRRect& rrect) { in find_cached_rrect() 285 SkBlurQuality quality, const SkRRect& rrect) { in add_cached_rrect() 314 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, in filterRRectToNine() 319 case SkRRect::kEmpty_Type: in filterRRectToNine() [all …]
|
/external/skia/bench/ |
D | ShapesBench.cpp | 190 const SkRRect* outer; in onDelayedSetup() 196 const SkRRect* inner; in onDelayedSetup() 240 SkRRect fRect; 241 SkRRect fOval; 242 SkRRect fRRect; 243 SkRRect fInnerRect; 244 SkRRect fInnerOval; 245 SkRRect fInnerRRect;
|
/external/skia/include/utils/ |
D | SkLuaCanvas.h | 31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 47 void onDrawRRect(const SkRRect&, const SkPaint&) override; 64 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
|
D | SkNWayCanvas.h | 41 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 60 void onDrawRRect(const SkRRect&, const SkPaint&) override; 77 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
|
D | SkDumpCanvas.h | 82 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 101 void onDrawRRect(const SkRRect&, const SkPaint&) override; 118 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
|
D | SkPaintFilterCanvas.h | 66 void onDrawRRect(const SkRRect&, const SkPaint&) override; 67 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
|
/external/skia/tools/android/ |
D | SkAndroidSDKCanvas.h | 41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; 54 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 100 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
|
/external/skia/tools/json/ |
D | SkJSONCanvas.h | 192 void onDrawRRect(const SkRRect&, const SkPaint&) override; 194 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 248 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) override; 268 Json::Value makeRRect(const SkRRect& rrect);
|
/external/skia/src/gpu/ |
D | SkGpuDevice.h | 86 virtual void drawRRect(const SkDraw&, const SkRRect& r, 88 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, 89 const SkRRect& inner, const SkPaint& paint) override; 254 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, 255 const SkRRect& inner, const SkPaint& paint);
|