Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrRect.h14 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 …]