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

Unified Diff: src/gpu/gl/GrGLProgram.cpp

Issue 304383002: Make GrGLShaderBuilder store a GenProgramOutput (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: whitespace Created 6 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
Index: src/gpu/gl/GrGLProgram.cpp
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp
index 1edbecfc197f9653e72cdcdd0178a65db5bb3760..f0a240a1e215139dd2a11287a0fda0639f9f6dbd 100644
--- a/src/gpu/gl/GrGLProgram.cpp
+++ b/src/gpu/gl/GrGLProgram.cpp
@@ -48,8 +48,8 @@ GrGLProgram::GrGLProgram(GrGpuGL* gpu,
, fGpu(gpu)
, fUniformManager(SkRef(uman))
, fUniformHandles(builderOutput.fUniformHandles)
-, fHasVertexShader(builderOutput.fHasVS)
-, fNumTexCoordSets(builderOutput.fNumTexCoordSets) {
+, fHasVertexShader(builderOutput.fHasVertexShader)
+, fTexCoordSetCnt(builderOutput.fTexCoordSetCnt) {
this->initSamplerUniforms();
}
@@ -151,7 +151,7 @@ void GrGLProgram::setData(GrDrawState::BlendOptFlags blendOpts,
// custom shaders, it's ignored, so we don't need to change the texgen
// settings in that case.
if (!fHasVertexShader) {
- fGpu->flushPathTexGenSettings(fNumTexCoordSets);
+ fGpu->flushPathTexGenSettings(fTexCoordSetCnt);
}
}

Powered by Google App Engine
This is Rietveld 408576698