Helpers for building the coordinate-space transformation matrices used during rendering.
More...
|
| static SkMatrix | DstTransform (CZTransform transform, SkSize dstSize) noexcept |
| | Returns a matrix that applies the transform to RSurface::dst(), producing framebuffer pixel-space coordinates.
|
| |
| static SkMatrix | VirtualToNDC (CZTransform transform, SkRect viewport, SkRect dst, SkISize imageSize, bool flipY) noexcept |
| | Virtual -> RImage -> NDC coords.
|
| |
| static SkMatrix | VirtualToImage (CZTransform transform, SkRect viewport, SkRect dst) noexcept |
| | Virtual -> RImage coords.
|
| |
| static SkMatrix | VirtualToUV (SkRect dst, CZTransform srcTransform, SkScalar srcScale, SkRect srcRect, SkISize texSize) noexcept |
| | Virtual -> RImage -> UV coords.
|
| |
| static SkRect | SkImageSrcRect (const RDrawImageInfo &image) noexcept |
| | RDrawImageInfo src rect -> SkCanvas->drawImageRect src rect.
|
| |
| static SkMatrix | SkImageDstTransform (const RDrawImageInfo &image) noexcept |
| | Flips/rotates SkImage dst, the inverse should be applied to SkCanvas->drawImageRect dstRect.
|
| |
Helpers for building the coordinate-space transformation matrices used during rendering.
Provides static factories that produce SkMatrix / SkRect values mapping between the various coordinate spaces involved in drawing (virtual/viewport, image, NDC, UV and framebuffer pixel spaces).