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

Unified Diff: src/gpu/GrGeometryProcessor.cpp

Issue 853643005: fMaxTexCoords is unused in Release builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGeometryProcessor.cpp
diff --git a/src/gpu/GrGeometryProcessor.cpp b/src/gpu/GrGeometryProcessor.cpp
index 2d3f5f44a43a871f122c1785f756eb93c6375144..344dccc731861f7e71b32562eb8b18ced4884049 100644
--- a/src/gpu/GrGeometryProcessor.cpp
+++ b/src/gpu/GrGeometryProcessor.cpp
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698