Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Unified Diff: src/gpu/GrPrimitiveProcessor.h

Issue 1145273002: Use high precision vertex attributes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change other inPosition * fViewMatrix users to highp Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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; }

Powered by Google App Engine
This is Rietveld 408576698