Home | History | Annotate | Download | only in effects

Lines Matching refs:rrect

57                                           const SkRRect& rrect) const SK_OVERRIDE;
203 static bool draw_rrect_into_mask(const SkRRect rrect, SkMask* mask) {
204 if (!prepare_to_draw_into_mask(rrect.rect(), mask)) {
219 canvas.drawRRect(rrect, paint);
267 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix,
271 switch (rrect.getType()) {
304 if (rect_exceeds(rrect.rect(), SkIntToScalar(32767))) {
310 rrect.rect().roundOut(&srcM.fBounds);
319 filterResult = this->filterRRectMask(&dstM, rrect, matrix, &margin,
334 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner);
335 const SkVector& UR = rrect.radii(SkRRect::kUpperRight_Corner);
336 const SkVector& LR = rrect.radii(SkRRect::kLowerRight_Corner);
337 const SkVector& LL = rrect.radii(SkRRect::kLowerLeft_Corner);
347 if (totalSmallWidth >= rrect.rect().width()) {
356 if (totalSmallHeight >= rrect.rect().height()) {
860 const SkRRect& rrect) {
861 if (!rrect.isSimpleCircular()) {
865 // Make sure we can successfully ninepatch this rrect -- the blur sigma has to be
867 // width (and height) of the rrect.
870 unsigned int cornerRadius = SkScalarCeilToInt(rrect.getSimpleRadii().x());
871 if (cornerRadius + blurRadius > rrect.width()/2 ||
872 cornerRadius + blurRadius > rrect.height()/2) {
929 return SkNEW_ARGS(GrRRectBlurEffect, (sigma, rrect, blurNinePatchTexture));
940 GrRRectBlurEffect::GrRRectBlurEffect(float sigma, const SkRRect& rrect, GrTexture *ninePatchTexture)
941 : fRRect(rrect),
965 SkRRect rrect;
966 rrect.setRectXY(SkRect::MakeWH(w, h), r, r);
967 return GrRRectBlurEffect::Create(context, sigma, rrect);
1058 SkRRect rrect = brre.getRRect();
1063 SkRect rect = rrect.getBounds();
1068 SkASSERT(rrect.isSimpleCircular() || rrect.isRect());
1069 radius = rrect.getSimpleRadii().fX;
1077 const SkRRect& rrect) const {
1086 SkRect proxy_rect = rrect.rect();
1092 SkAutoTUnref<GrFragmentProcessor> fp(GrRRectBlurEffect::Create(context, xformedSigma, rrect));