Lines Matching refs:GrSwizzle
18 class GrSwizzle {
20 constexpr GrSwizzle() : GrSwizzle("rgba") {} in GrSwizzle() function
21 explicit constexpr GrSwizzle(const char c[4]);
23 constexpr GrSwizzle(const GrSwizzle&);
24 constexpr GrSwizzle& operator=(const GrSwizzle& that);
26 static constexpr GrSwizzle Concat(const GrSwizzle& a, const GrSwizzle& b);
28 constexpr bool operator==(const GrSwizzle& that) const { return fKey == that.fKey; }
29 constexpr bool operator!=(const GrSwizzle& that) const { return !(*this == that); }
55 static constexpr GrSwizzle RGBA() { return GrSwizzle("rgba"); } in RGBA()
56 static constexpr GrSwizzle BGRA() { return GrSwizzle("bgra"); } in BGRA()
57 static constexpr GrSwizzle RRRA() { return GrSwizzle("rrra"); } in RRRA()
58 static constexpr GrSwizzle RGB1() { return GrSwizzle("rgb1"); } in RGB1()
61 explicit constexpr GrSwizzle(uint16_t key) : fKey(key) {} in GrSwizzle() function
70 constexpr GrSwizzle::GrSwizzle(const char c[4]) in GrSwizzle() function
73 constexpr GrSwizzle::GrSwizzle(const GrSwizzle& that) in GrSwizzle() function
76 constexpr GrSwizzle& GrSwizzle::operator=(const GrSwizzle& that) {
81 constexpr std::array<float, 4> GrSwizzle::applyTo(std::array<float, 4> color) const { in applyTo()
98 constexpr float GrSwizzle::ComponentIndexToFloat(std::array<float, 4> color, int idx) { in ComponentIndexToFloat()
111 constexpr int GrSwizzle::CToI(char c) { in CToI()
124 constexpr char GrSwizzle::IToC(int idx) { in IToC()
136 constexpr GrSwizzle GrSwizzle::Concat(const GrSwizzle& a, const GrSwizzle& b) { in Concat()
147 return GrSwizzle(key); in Concat()