Home
last modified time | relevance | path

Searched defs:IRect16 (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/gpu/
DAtlasTypes.h33 struct IRect16 { struct
36 static IRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
42 static IRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) { in MakeWH() argument
48 static IRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument
54 static IRect16 SK_WARN_UNUSED_RESULT Make(const SkIRect& ir) { in Make() argument
60 int width() const { return fRight - fLeft; } in width()
61 int height() const { return fBottom - fTop; } in height()
62 int area() const { return this->width() * this->height(); } in area()
63 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
65 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()
[all …]