Chromium Code Reviews| Index: src/gpu/GrPrimitiveProcessor.h |
| diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h |
| index 2e25bdbab89963945ce8a663f4f5613588f1b4e8..431e3ab653ceaaf9c02d64608e1b835add4a77da 100644 |
| --- a/src/gpu/GrPrimitiveProcessor.h |
| +++ b/src/gpu/GrPrimitiveProcessor.h |
| @@ -126,13 +126,15 @@ public: |
| : fName(NULL) |
| , fType(kFloat_GrVertexAttribType) |
| , fOffset(0) {} |
| - Attribute(const char* name, GrVertexAttribType type) |
| + Attribute(const char* name, GrVertexAttribType type, GrSLPrecision precision = kDefault_GrSLPrecision) |
|
joshualitt
2015/05/20 20:36:10
newline
Stephen White
2015/05/20 20:47:43
Done.
|
| : fName(name) |
| , fType(type) |
| - , fOffset(SkAlign4(GrVertexAttribTypeSize(type))) {} |
| + , fOffset(SkAlign4(GrVertexAttribTypeSize(type))) |
| + , fPrecision(precision) {} |
| const char* fName; |
| GrVertexAttribType fType; |
| size_t fOffset; |
| + GrSLPrecision fPrecision; |
| }; |
| int numAttribs() const { return fNumAttribs; } |