Home
last modified time | relevance | path

Searched refs:fRRect (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/modules/sksg/src/
DSkSGRect.cpp40 RRect::RRect(const SkRRect& rr) : fRRect(rr) {} in RRect()
43 canvas->clipRRect(fRRect, SkClipOp::kIntersect, antiAlias); in onClip()
47 canvas->drawRRect(fRRect, paint); in onDraw()
51 if (!fRRect.rect().contains(p.x(), p.y())) { in onContains()
55 if (fRRect.isRect()) { in onContains()
60 return fRRect.contains(SkRect::MakeLTRB(p.x() - SK_ScalarNearlyZero, in onContains()
69 return fRRect.getBounds(); in onRevalidate()
73 return SkPath::RRect(fRRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
/external/skqp/bench/
DBlurRoundRectBench.cpp29 fRRect.setRectXY(r, SkIntToScalar(cornerRadius), SkIntToScalar(cornerRadius)); in BlurRoundRectBench()
37 return SkIPoint::Make(SkScalarCeilToInt(fRRect.rect().width()), in onGetSize()
38 SkScalarCeilToInt(fRRect.rect().height())); in onGetSize()
70 canvas->drawRect(fRRect.rect(), dullPaint); in onDraw()
71 canvas->drawRRect(fRRect, loopedPaint); in onDraw()
77 SkRRect fRRect; member in BlurRoundRectBench
DShapesBench.cpp139 fRRect.setNinePatch(fRect.rect(), w / 8, h / 13, w / 11, h / 7); in onDelayedSetup()
184 fShapes[i].fDraw = bind(&SkCanvas::drawRRect, _1, cref(fRRect), _2); in onDelayedSetup()
192 case kRRect_ShapesType: outer = &fRRect; break; in onDelayedSetup()
240 SkRRect fRRect; member in ShapesBench
/external/skqp/modules/sksg/src/
DSkSGRect.cpp38 RRect::RRect(const SkRRect& rr) : fRRect(rr) {} in RRect()
41 canvas->clipRRect(fRRect, SkClipOp::kIntersect, antiAlias); in onClip()
45 canvas->drawRRect(fRRect, paint); in onDraw()
51 return fRRect.getBounds(); in onRevalidate()
56 path.addRRect(fRRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
/external/skqp/src/gpu/
DGrShape.h57 fRRectData.fRRect = rrect; in GrShape()
68 fRRectData.fRRect = rrect; in GrShape()
73 if (fRRectData.fRRect.getType() == SkRRect::kRect_Type) { in GrShape()
75 } else if (fRRectData.fRRect.getType() == SkRRect::kOval_Type) { in GrShape()
86 fRRectData.fRRect = SkRRect::MakeRect(rect); in GrShape()
100 fRRectData.fRRect = rrect; in GrShape()
109 fRRectData.fRRect = SkRRect::MakeRect(rect); in GrShape()
159 return fRRectData.fRRect.isRect(); in isRect()
168 *rrect = fRRectData.fRRect; in asRRect()
212 out->addRRect(fRRectData.fRRect, fRRectData.fDir, fRRectData.fStart); in asPath()
[all …]
DGrShape.cpp85 result.fRRectData.fRRect = original.fRRectData.fRRect; in MakeFilled()
159 return fRRectData.fRRect.getBounds(); in bounds()
276 fRRectData.fRRect.writeToMemory(key); in writeUnstyledKey()
527 fRRectData.fRRect = rrect; in attemptToSimplifyPath()
531 SkASSERT(!fRRectData.fRRect.isEmpty()); in attemptToSimplifyPath()
534 fRRectData.fRRect.setOval(rect); in attemptToSimplifyPath()
544 fRRectData.fRRect.setRect(rect); in attemptToSimplifyPath()
554 fRRectData.fRRect.setRect(rect); in attemptToSimplifyPath()
607 if (fRRectData.fRRect.isEmpty()) { in attemptToSimplifyRRect()
617 if (fStyle.isDashed() && !fRRectData.fRRect.width() && !fRRectData.fRRect.height()) { in attemptToSimplifyRRect()
[all …]
/external/skia/src/gpu/geometry/
DGrShape.cpp25 this->setRRect(shape.fRRect); in operator =()
159 fRRect = rrect; in simplifyRRect()
164 SkASSERT(fRRect == rrect && this->dir() == dir && this->startIndex() == start); in simplifyRRect()
262 this->simplifyRRect(fRRect, this->dir(), this->startIndex(), flags); in simplify()
293 return fRRect.contains(rect); in conservativeContains()
318 return SkRRectPriv::ContainsPoint(fRRect, point); in conservativeContains()
374 return fRRect.getBounds(); in bounds()
395 if (fRRect.isEmpty() || fRRect.isRect()) { in segmentMask()
397 } else if (fRRect.isOval()) { in segmentMask()
443 out->addRRect(fRRect, this->dir(), this->startIndex()); in asPath()
DGrShape.h136 SkRRect& rrect() { SkASSERT(this->isRRect()); return fRRect; } in rrect()
137 const SkRRect& rrect() const { SkASSERT(this->isRRect()); return fRRect; } in rrect()
164 fRRect = rrect; in setRRect()
269 SkRRect fRRect; member
/external/skia/src/gpu/effects/
DGrRRectEffect.cpp58 const SkRRect& getRRect() const { return fRRect; } in getRRect()
75 SkRRect fRRect; member in CircularRRectEffect
101 , fRRect(rrect) in CircularRRectEffect()
109 , fRRect(that.fRRect) in CircularRRectEffect()
122 return fEdgeType == crre.fEdgeType && fRRect == crre.fRRect; in onIsEqual()
415 const SkRRect& getRRect() const { return fRRect; } in getRRect()
429 SkRRect fRRect; member in EllipticalRRectEffect
452 , fRRect(rrect) in EllipticalRRectEffect()
459 , fRRect(that.fRRect) in EllipticalRRectEffect()
470 return fEdgeType == erre.fEdgeType && fRRect == erre.fRRect; in onIsEqual()
/external/skqp/gm/
Dblurroundrect.cpp44 fRRect.setRectRadii(r, radii); in onOnceBeforeDraw()
70 canvas->drawRect(fRRect.rect(), paint); in onDraw()
76 canvas->drawRRect(fRRect, paint); in onDraw()
81 SkRRect fRRect; member in BlurRoundRectGM
Dbigrrectaaeffect.cpp25 : fRRect(rrect) in BigRRectAAEffectGM()
83 SkRRect rrect = fRRect; in onDraw()
112 SkRRect fRRect; member in skiagm::BigRRectAAEffectGM
/external/skqp/src/gpu/effects/
DGrRRectEffect.cpp57 const SkRRect& getRRect() const { return fRRect; } in getRRect()
72 SkRRect fRRect; member in CircularRRectEffect
94 , fRRect(rrect) in CircularRRectEffect()
101 new CircularRRectEffect(fEdgeType, fCircularCornerFlags, fRRect)); in clone()
107 return fEdgeType == crre.fEdgeType && fRRect == crre.fRRect; in onIsEqual()
395 const SkRRect& getRRect() const { return fRRect; } in getRRect()
408 SkRRect fRRect; member in EllipticalRRectEffect
426 , fRRect(rrect) in EllipticalRRectEffect()
431 return std::unique_ptr<GrFragmentProcessor>(new EllipticalRRectEffect(fEdgeType, fRRect)); in clone()
436 return fEdgeType == erre.fEdgeType && fRRect == erre.fRRect; in onIsEqual()
/external/skia/gm/
Dbigrrectaaeffect.cpp42 : fRRect(rrect) in BigRRectAAEffectGM()
89 SkRRect rrect = fRRect; in onDraw()
119 SkRRect fRRect; member in skiagm::BigRRectAAEffectGM
/external/skia/bench/
DShapesBench.cpp141 fRRect.setNinePatch(fRect.rect(), w / 8, h / 13, w / 11, h / 7); in onDelayedSetup()
186 fShapes[i].fDraw = bind(&SkCanvas::drawRRect, _1, cref(fRRect), _2); in onDelayedSetup()
194 case kRRect_ShapesType: outer = &fRRect; break; in onDelayedSetup()
242 SkRRect fRRect; member in ShapesBench
/external/skia/src/core/
DSkMaskCache.cpp26 , fRRect(rrect) in RRectBlurKey()
29 sizeof(fSigma) + sizeof(fStyle) + sizeof(fRRect)); in RRectBlurKey()
34 SkRRect fRRect; member
/external/skqp/src/core/
DSkMaskCache.cpp26 , fRRect(rrect) in RRectBlurKey()
29 sizeof(fSigma) + sizeof(fStyle) + sizeof(fRRect)); in RRectBlurKey()
34 SkRRect fRRect; member
/external/skia/modules/sksg/include/
DSkSGRect.h76 SG_ATTRIBUTE(RRect, SkRRect, fRRect)
92 SkRRect fRRect; variable
/external/skqp/modules/sksg/include/
DSkSGRect.h75 SG_ATTRIBUTE(RRect, SkRRect, fRRect)
90 SkRRect fRRect; variable
/external/skia/src/gpu/
DGrClip.h34 SkRRect fRRect; // Ignore if 'isRRect' is false member
42 , fRRect(rrect) in PreClipResult()
DGrClipStackClip.cpp51 if (fStack->isRRect(SkRect::Make(deviceRect), &result.fRRect, &isAA)) { in preApply()
52 if (!result.fRRect.getBounds().intersects(rect)) { in preApply()
/external/skqp/tools/debugger/
DSkDrawCommand.cpp1130 fRRect = rrect; in SkClipRRectCommand()
1136 canvas->clipRRect(fRRect, fOp, fDoAA); in execute()
1140 render_rrect(canvas, fRRect); in render()
1146 writer.appendName(SKDEBUGCANVAS_ATTRIBUTE_COORDS); make_json_rrect(writer, fRRect); in toJSON()
1917 fRRect = rrect; in SkDrawRRectCommand()
1922 canvas->drawRRect(fRRect, fPaint); in execute()
1926 render_rrect(canvas, fRRect); in render()
1932 writer.appendName(SKDEBUGCANVAS_ATTRIBUTE_COORDS); make_json_rrect(writer, fRRect); in toJSON()
DSkDrawCommand.h192 SkRRect fRRect;
569 SkRRect fRRect;
/external/skia/tools/debugger/
DDrawCommand.cpp1056 fRRect = rrect; in ClipRRectCommand()
1061 void ClipRRectCommand::execute(SkCanvas* canvas) const { canvas->clipRRect(fRRect, fOp, fDoAA); } in execute()
1064 render_rrect(canvas, fRRect); in render()
1071 make_json_rrect(writer, fRRect); in toJSON()
1790 fRRect = rrect; in DrawRRectCommand()
1794 void DrawRRectCommand::execute(SkCanvas* canvas) const { canvas->drawRRect(fRRect, fPaint); } in execute()
1797 render_rrect(canvas, fRRect); in render()
1804 make_json_rrect(writer, fRRect); in toJSON()
/external/skqp/tests/
DGrShapeTest.cpp369 RRectGeo(const SkRRect& rrect) : fRRect(rrect) {} in RRectGeo()
372 return GrShape(fRRect, paint); in makeShape()
377 path.addRRect(fRRect); in path()
383 if (fRRect.isRect()) { in strokeAndFillIsConvertedToFill()
384 return RectGeo(fRRect.rect()).strokeAndFillIsConvertedToFill(paint); in strokeAndFillIsConvertedToFill()
390 SkRRect fRRect; member in __anon2695f3e30111::RRectGeo
495 , fRRect(equivalentRRect) in RRectPathGeo()
509 const SkRRect& rrect() const { return fRRect; } in rrect()
512 SkRRect fRRect; member in __anon2695f3e30111::RRectPathGeo
/external/skia/tests/
DGrStyledShapeTest.cpp375 RRectGeo(const SkRRect& rrect) : fRRect(rrect) {} in RRectGeo()
378 return GrStyledShape(fRRect, paint); in makeShape()
383 path.addRRect(fRRect); in path()
389 if (fRRect.isRect()) { in strokeAndFillIsConvertedToFill()
390 return RectGeo(fRRect.rect()).strokeAndFillIsConvertedToFill(paint); in strokeAndFillIsConvertedToFill()
396 SkRRect fRRect; member in __anon3164c2810111::RRectGeo
502 , fRRect(equivalentRRect) in RRectPathGeo()
516 const SkRRect& rrect() const { return fRRect; } in rrect()
519 SkRRect fRRect; member in __anon3164c2810111::RRectPathGeo

12