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

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

Issue 1416423003: Make GrGLSLProgramBuilder base class for ProgramBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 5 years, 1 month 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 | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | src/gpu/gl/GrGLPrimitiveProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLGeometryProcessor.cpp
diff --git a/src/gpu/gl/GrGLGeometryProcessor.cpp b/src/gpu/gl/GrGLGeometryProcessor.cpp
index ff4574229d9bd207dddd3b302a0eadfd32c1560b..c01e305679858a7cc6353de0b3be1ac0e41d645e 100644
--- a/src/gpu/gl/GrGLGeometryProcessor.cpp
+++ b/src/gpu/gl/GrGLGeometryProcessor.cpp
@@ -17,7 +17,7 @@ void GrGLGeometryProcessor::emitCode(EmitArgs& args) {
vsBuilder->transformToNormalizedDeviceSpace(gpArgs.fPositionVar);
}
-void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
+void GrGLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
const GrShaderVar& posVar,
const char* localCoords,
const SkMatrix& localMatrix,
@@ -53,7 +53,7 @@ void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
SkString strVaryingName("MatrixCoord");
strVaryingName.appendf("_%i_%i", i, t);
- GrGLVertToFrag v(varyingType);
+ GrGLSLVertToFrag v(varyingType);
pb->addVarying(strVaryingName.c_str(), &v, precision);
SkASSERT(kVec2f_GrSLType == varyingType || kVec3f_GrSLType == varyingType);
@@ -90,7 +90,7 @@ void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
}
}
-void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
+void GrGLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
const char* localCoords,
const TransformsIn& tin,
TransformsOut* tout) {
@@ -108,7 +108,7 @@ void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
SkString strVaryingName("MatrixCoord");
strVaryingName.appendf("_%i_%i", i, t);
- GrGLVertToFrag v(varyingType);
+ GrGLSLVertToFrag v(varyingType);
pb->addVarying(strVaryingName.c_str(), &v, precision);
vb->codeAppendf("%s = %s;", v.vsOut(), localCoords);
@@ -119,7 +119,7 @@ void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
}
}
-void GrGLGeometryProcessor::setupPosition(GrGLGPBuilder* pb,
+void GrGLGeometryProcessor::setupPosition(GrGLSLGPBuilder* pb,
GrGPArgs* gpArgs,
const char* posName) {
GrGLVertexBuilder* vsBuilder = pb->getVertexShaderBuilder();
@@ -127,7 +127,7 @@ void GrGLGeometryProcessor::setupPosition(GrGLGPBuilder* pb,
vsBuilder->codeAppendf("vec2 %s = %s;", gpArgs->fPositionVar.c_str(), posName);
}
-void GrGLGeometryProcessor::setupPosition(GrGLGPBuilder* pb,
+void GrGLGeometryProcessor::setupPosition(GrGLSLGPBuilder* pb,
GrGPArgs* gpArgs,
const char* posName,
const SkMatrix& mat,
« no previous file with comments | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | src/gpu/gl/GrGLPrimitiveProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698