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

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: 100-col fixes 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
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPrimitiveProcessor.h
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h
index 2e25bdbab89963945ce8a663f4f5613588f1b4e8..4147b74963aaaf988f92398f94ec6eb643262b98 100644
--- a/src/gpu/GrPrimitiveProcessor.h
+++ b/src/gpu/GrPrimitiveProcessor.h
@@ -126,13 +126,16 @@ public:
: fName(NULL)
, fType(kFloat_GrVertexAttribType)
, fOffset(0) {}
- Attribute(const char* name, GrVertexAttribType type)
+ Attribute(const char* name, GrVertexAttribType type,
+ GrSLPrecision precision = kDefault_GrSLPrecision)
: 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; }
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698