Lines Matching defs:rect
160 // We transform into a normalized -1..+1 space to draw the round rect. If the boundaries are too
221 // The clip shape is a round rect. Attempt to map it to a round rect in "viewMatrix" space.
225 clipRRect.setRect(shape.rect());
243 // A rect in "clipMatrix" space is not a rect in "viewMatrix" space.
251 clipRRect.setRect(clipToView.mapRect(shape.rect()));
261 // Intersect our round rect with the clip shape.
265 if (!isectRect.intersect(fHeadInstance->fRRect.rect(), clipRRect.rect())) {
280 SkRect devISectBounds = fHeadInstance->fViewMatrix.mapRect(isectRRect.rect());
285 // Update the local rect.
286 auto rect = skvx::bit_pun<grvx::float4>(fHeadInstance->fRRect.rect());
288 auto isect = skvx::bit_pun<grvx::float4>(isectRRect.rect());
290 (rect - skvx::shuffle<2,3,0,1>(rect));
291 fHeadInstance->fLocalRect = skvx::bit_pun<SkRect>((isect - rect) * rectToLocalSize + local);
293 // Update the round rect.
530 auto [l, t, r, b] = i->fRRect.rect();
532 // Produce a matrix that draws the round rect from normalized [-1, -1, +1, +1] space.
534 // Unmap the normalized rect [-1, -1, +1, +1] back to [l, t, r, b].
627 // to make the rect appear more thin.
646 // Convert to a standard picture frame for an AA rect instead of the round
647 // rect geometry.
666 // Find our vertex position, adjusted for radii and bloated for AA. Our rect is drawn in
674 // the center (x=y=0). Since we don't allow the rect to become thinner
815 // Will the given round rect look good if we use HW derivatives?
854 SK_ABORT("Invalid round rect type.");
880 SkRect rect = GrTest::TestRect(random);
881 float w = rect.width();
882 float h = rect.height();
886 rrect.setNinePatch(rect, w / 3.0f, h / 4.0f, w / 5.0f, h / 6.0);
893 rrect.rect(),