Lines Matching refs:GrSwizzle
17 class GrSwizzle {
19 GrSwizzle() { *this = RGBA(); } in GrSwizzle() function
21 GrSwizzle(const GrSwizzle& that) { *this = that; } in GrSwizzle() function
23 GrSwizzle& operator=(const GrSwizzle& that) {
24 memcpy(this, &that, sizeof(GrSwizzle));
38 bool operator==(const GrSwizzle& that) const { return this->asUInt() == that.asUInt(); }
40 bool operator!=(const GrSwizzle& that) const { return !(*this == that); }
67 static const GrSwizzle& RGBA() { in RGBA()
68 static GrSwizzle gRGBA("rgba"); in RGBA()
72 static const GrSwizzle& AAAA() { in AAAA()
73 static GrSwizzle gAAAA("aaaa"); in AAAA()
77 static const GrSwizzle& RRRR() { in RRRR()
78 static GrSwizzle gRRRR("rrrr"); in RRRR()
82 static const GrSwizzle& BGRA() { in BGRA()
83 static GrSwizzle gBGRA("bgra"); in BGRA()
87 static const GrSwizzle& CreateRandom(SkRandom* random) { in CreateRandom()
135 explicit GrSwizzle(const char* str) { in GrSwizzle() function