Lines Matching defs:GrVertexWriter
24 struct GrVertexWriter { struct
33 friend struct GrVertexWriter; argument
35 bool fCondition;
36 T fValue;
40 static Conditional<T> If(bool condition, const T& value) { in If()
45 struct Skip {};
48 void write(const T& val, const Args&... remainder) { in write()
60 void write(const T(&val)[N], const Args&... remainder) { in write()
69 void write(const GrVertexColor& color, const Args&... remainder) { in write()
78 void write(const Conditional<T>& val, const Args&... remainder) { in write()
86 void write(const Skip<T>& val, const Args&... remainder) { in write()
92 void write(const Sk4f& vector, const Args&... remainder) { in write()
99 void write() {} in write()
113 struct TriStrip { T l, t, r, b; };
115 static TriStrip<float> TriStripFromRect(const SkRect& r) { in TriStripFromRect()
120 struct TriFan { T l, t, r, b; };
122 static TriFan<float> TriFanFromRect(const SkRect& r) { in TriFanFromRect()
127 void writeQuad(const Args&... remainder) { in writeQuad()
136 void writeQuadVert(const T& val, const Args&... remainder) { in writeQuadVert()
142 void writeQuadVert() {} in writeQuadVert()
145 void writeQuadValue(const T& val) { in writeQuadValue()
150 void writeQuadValue(const TriStrip<T>& r) { in writeQuadValue()
160 void writeQuadValue(const TriFan<T>& r) { in writeQuadValue()
170 void writeQuadValue(const GrQuad& q) { in writeQuadValue()