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

Unified Diff: src/gpu/gl/GrGLEffectMatrix.h

Issue 23537028: Enable vertexless shading when path rendering is supported (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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/gl/GrGLEffectMatrix.h
diff --git a/src/gpu/gl/GrGLEffectMatrix.h b/src/gpu/gl/GrGLEffectMatrix.h
index 56dda4563b6384d5f1c0fc0dbf31ab7dc7b53fd2..aac5b478b44b0b5bdb7c4116ebd32dc32f02e957 100644
--- a/src/gpu/gl/GrGLEffectMatrix.h
+++ b/src/gpu/gl/GrGLEffectMatrix.h
@@ -59,7 +59,9 @@ public:
};
GrGLEffectMatrix(CoordsType coordsType)
- : fCoordsType(coordsType) {
+ : fCoordsType(coordsType)
+ , fTexGenUnit(-1)
+ , fNumTexGenComponents(0) {
SkASSERT(GrEffect::kLocal_CoordsType == coordsType ||
GrEffect::kPosition_CoordsType == coordsType);
fPrevMatrix = SkMatrix::InvalidMatrix();
@@ -115,6 +117,8 @@ public:
GrSLType fUniType;
SkMatrix fPrevMatrix;
CoordsType fCoordsType;
+ int fTexGenUnit;
+ int fNumTexGenComponents;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698