Home | History | Annotate | Download | only in gpu

Lines Matching refs:GrSwizzle

17 class GrSwizzle {
19 GrSwizzle() { *this = RGBA(); }
21 GrSwizzle(const GrSwizzle& that) { *this = that; }
23 GrSwizzle& operator=(const GrSwizzle& that) {
24 memcpy(this, &that, sizeof(GrSwizzle));
28 /** Recreates a GrSwizzle from the output of asKey() */
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() {
68 static GrSwizzle gRGBA("rgba");
72 static const GrSwizzle& AAAA() {
73 static GrSwizzle gAAAA("aaaa");
77 static const GrSwizzle& RRRR() {
78 static GrSwizzle gRRRR("rrrr");
82 static const GrSwizzle& BGRA() {
83 static GrSwizzle gBGRA("bgra");
87 static const GrSwizzle& CreateRandom(SkRandom* random) {
135 explicit GrSwizzle(const char* str) {