Home
last modified time | relevance | path

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

/external/skqp/src/gpu/
DGrRect.h15 struct GrIRect16 { struct
18 static GrIRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
24 static GrIRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) { in MakeWH() argument
30 static GrIRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument
36 int width() const { return fRight - fLeft; } in width()
37 int height() const { return fBottom - fTop; } in height()
38 int area() const { return this->width() * this->height(); } in area()
39 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
41 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()
43 void set(int16_t left, int16_t top, int16_t right, int16_t bottom) { in set()
[all …]
/external/skia/src/gpu/geometry/
DGrRect.h16 struct GrIRect16 { struct
19 static GrIRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
25 static GrIRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) { in MakeWH() argument
31 static GrIRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument
37 static GrIRect16 SK_WARN_UNUSED_RESULT Make(const SkIRect& ir) { in Make() argument
43 int width() const { return fRight - fLeft; } in width()
44 int height() const { return fBottom - fTop; } in height()
45 int area() const { return this->width() * this->height(); } in area()
46 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
48 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()
[all …]