fMaxTexCoords is unused in Release builds

BUG=skia:

Review URL: https://codereview.chromium.org/853643005
This commit is contained in:
mtklein 2015-01-14 14:18:54 -08:00 committed by Commit bot
parent 89069a9bdb
commit b54fe40b07

View File

@ -312,8 +312,9 @@ public:
GrGLLegacyPathProcessor(const GrPathProcessor& pathProc, const GrBatchTracker& bt,
int maxTexCoords)
: INHERITED(pathProc, bt)
, fMaxTexCoords(maxTexCoords)
, fTexCoordSetCnt(0) {}
, fTexCoordSetCnt(0) {
SkDEBUGCODE(fMaxTexCoords = maxTexCoords;)
}
int addTexCoordSets(int count) {
int firstFreeCoordSet = fTexCoordSetCnt;
@ -368,7 +369,7 @@ public:
}
private:
int fMaxTexCoords;
SkDEBUGCODE(int fMaxTexCoords;)
int fTexCoordSetCnt;
typedef GrGLPathProcessor INHERITED;