10#ifndef GrNativeRect_DEFINED
11#define GrNativeRect_DEFINED
67 fY = surfaceHeight - topOffset -
height;
@ kBottomLeft_GrSurfaceOrigin
SkIRect asSkIRect() const
bool operator==(const GrNativeRect &that) const
const int * asInts() const
bool operator!=(const GrNativeRect &that) const
static SkIRect MakeIRectRelativeTo(GrSurfaceOrigin origin, int rtHeight, SkIRect devRect)
void setRelativeTo(GrSurfaceOrigin org, int rtHeight, const SkIRect &devRect)
bool contains(int width, int height) const
void setRelativeTo(GrSurfaceOrigin origin, int surfaceHeight, int leftOffset, int topOffset, int width, int height)
static GrNativeRect MakeRelativeTo(GrSurfaceOrigin origin, int rtHeight, SkIRect devRect)
constexpr int32_t x() const
constexpr int32_t y() const
constexpr int32_t height() const
constexpr int32_t width() const
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)