| Index: src/gpu/gl/GrGLProgramDataManager.cpp
|
| diff --git a/src/gpu/gl/GrGLProgramDataManager.cpp b/src/gpu/gl/GrGLProgramDataManager.cpp
|
| index ef2f59e664c17755932b3eaf0ab5b1c70fc95aa1..8be0437ee8b377af0c1f988a6bc4c883494caa91 100644
|
| --- a/src/gpu/gl/GrGLProgramDataManager.cpp
|
| +++ b/src/gpu/gl/GrGLProgramDataManager.cpp
|
| @@ -62,7 +62,7 @@
|
| const Uniform& uni = fUniforms[u.toProgramDataIndex()];
|
| SkASSERT(uni.fType == kFloat_GrSLType);
|
| SkASSERT(GrGLShaderVar::kNonArray == uni.fArrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fFSLocation, v0));
|
| }
|
| @@ -94,7 +94,7 @@
|
| const Uniform& uni = fUniforms[u.toProgramDataIndex()];
|
| SkASSERT(uni.fType == kVec2f_GrSLType);
|
| SkASSERT(GrGLShaderVar::kNonArray == uni.fArrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fFSLocation, v0, v1));
|
| }
|
| @@ -110,7 +110,7 @@
|
| SkASSERT(uni.fType == kVec2f_GrSLType);
|
| SkASSERT(arrayCount > 0);
|
| ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fFSLocation, arrayCount, v));
|
| }
|
| @@ -123,7 +123,7 @@
|
| const Uniform& uni = fUniforms[u.toProgramDataIndex()];
|
| SkASSERT(uni.fType == kVec3f_GrSLType);
|
| SkASSERT(GrGLShaderVar::kNonArray == uni.fArrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform3f(uni.fFSLocation, v0, v1, v2));
|
| }
|
| @@ -139,7 +139,7 @@
|
| SkASSERT(uni.fType == kVec3f_GrSLType);
|
| SkASSERT(arrayCount > 0);
|
| ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform3fv(uni.fFSLocation, arrayCount, v));
|
| }
|
| @@ -156,7 +156,7 @@
|
| const Uniform& uni = fUniforms[u.toProgramDataIndex()];
|
| SkASSERT(uni.fType == kVec4f_GrSLType);
|
| SkASSERT(GrGLShaderVar::kNonArray == uni.fArrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform4f(uni.fFSLocation, v0, v1, v2, v3));
|
| }
|
| @@ -172,7 +172,7 @@
|
| SkASSERT(uni.fType == kVec4f_GrSLType);
|
| SkASSERT(arrayCount > 0);
|
| ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), Uniform4fv(uni.fFSLocation, arrayCount, v));
|
| }
|
| @@ -185,7 +185,7 @@
|
| const Uniform& uni = fUniforms[u.toProgramDataIndex()];
|
| SkASSERT(uni.fType == kMat33f_GrSLType);
|
| SkASSERT(GrGLShaderVar::kNonArray == uni.fArrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), UniformMatrix3fv(uni.fFSLocation, 1, false, matrix));
|
| }
|
| @@ -198,7 +198,7 @@
|
| const Uniform& uni = fUniforms[u.toProgramDataIndex()];
|
| SkASSERT(uni.fType == kMat44f_GrSLType);
|
| SkASSERT(GrGLShaderVar::kNonArray == uni.fArrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(), UniformMatrix4fv(uni.fFSLocation, 1, false, matrix));
|
| }
|
| @@ -214,7 +214,7 @@
|
| SkASSERT(uni.fType == kMat33f_GrSLType);
|
| SkASSERT(arrayCount > 0);
|
| ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(),
|
| UniformMatrix3fv(uni.fFSLocation, arrayCount, false, matrices));
|
| @@ -232,7 +232,7 @@
|
| SkASSERT(uni.fType == kMat44f_GrSLType);
|
| SkASSERT(arrayCount > 0);
|
| ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
|
| - SkDEBUGCODE(this->printUnused(uni);)
|
| + this->printUnused(uni);
|
| if (kUnusedUniform != uni.fFSLocation) {
|
| GR_GL_CALL(fGpu->glInterface(),
|
| UniformMatrix4fv(uni.fFSLocation, arrayCount, false, matrices));
|
| @@ -261,7 +261,7 @@
|
| #ifdef SK_DEBUG
|
| void GrGLProgramDataManager::printUnused(const Uniform& uni) const {
|
| if (kUnusedUniform == uni.fFSLocation && kUnusedUniform == uni.fVSLocation) {
|
| - GrContextDebugf(fGpu->getContext(), "Unused uniform in shader\n");
|
| + SkDebugf("Unused uniform in shader\n");
|
| }
|
| }
|
| #endif
|
|
|