Searched defs:GrIRect16 (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/third_party/skia/include/gpu/ |
D | GrRect.h | 14 struct GrIRect16 { struct 17 static GrIRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument 23 static GrIRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) { in MakeWH() argument 29 static GrIRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument 35 int width() const { return fRight - fLeft; } in width() 36 int height() const { return fBottom - fTop; } in height() 37 int area() const { return this->width() * this->height(); } in area() 38 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 40 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty() 42 void set(int16_t left, int16_t top, int16_t right, int16_t bottom) { in set() [all …]
|
/external/skia/include/gpu/ |
D | GrRect.h | 14 struct GrIRect16 { struct 17 static GrIRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument 23 int width() const { return fRight - fLeft; } in width() 24 int height() const { return fBottom - fTop; } in height() 25 int area() const { return this->width() * this->height(); } in area() 26 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 28 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty() 30 void set(const SkIRect& r) { in set()
|