Home
last modified time | relevance | path

Searched refs:superRRect (Results 1 – 1 of 1) sorted by relevance

/third_party/skia/gm/
Druntimeshader.cpp487 void drawSuperRRect(SkCanvas* canvas, const SkRect& superRRect, float radX, float radY, in drawSuperRRect() argument
494 SkRRect rrect = SkRRect::MakeRectXY(superRRect, radX, radY); in drawSuperRRect()
510 cornerWidth = std::min(cornerWidth, superRRect.width() * .5f); in drawSuperRRect()
511 cornerHeight = std::min(cornerHeight, superRRect.height() * .5f); in drawSuperRRect()
513 builder.uniform("stretch_factor") = SkV2{1 - superRRect.width()*.5f / cornerWidth, in drawSuperRRect()
514 1 - superRRect.height()*.5f / cornerHeight}; in drawSuperRRect()
543 cornerToLocal.setScaleTranslate(cornerWidth, cornerHeight, superRRect.centerX(), in drawSuperRRect()
544 superRRect.centerY()); in drawSuperRRect()
553 canvas->drawRect(superRRect.makeOutset(bloatX, bloatY), paint); in drawSuperRRect()