Remove unused GrGLSLGeometryProcessor::emitTransform variation
authorbsalomon <bsalomon@google.com>
Mon, 12 Sep 2016 20:42:18 +0000 (13:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 12 Sep 2016 20:42:18 +0000 (13:42 -0700)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2338453002

Review-Url: https://codereview.chromium.org/2338453002

src/gpu/glsl/GrGLSLGeometryProcessor.cpp
src/gpu/glsl/GrGLSLGeometryProcessor.h

index ce4d8b66eab89351c82073aaf4cf54934a715cf4..ddbe8e133a81f55ca039c21621550c7496f9a764 100644 (file)
@@ -96,33 +96,6 @@ void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb,
     }
 }
 
-void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb,
-                                             GrGLSLVaryingHandler* varyingHandler,
-                                             const char* localCoords,
-                                             const TransformsIn& tin,
-                                             TransformsOut* tout) {
-    tout->push_back_n(tin.count());
-    for (int i = 0; i < tin.count(); i++) {
-        const ProcCoords& coordTransforms = tin[i];
-        for (int t = 0; t < coordTransforms.count(); t++) {
-            GrSLType varyingType = kVec2f_GrSLType;
-
-            // Device coords aren't supported
-            SkASSERT(kDevice_GrCoordSet != coordTransforms[t]->sourceCoords());
-            GrSLPrecision precision = coordTransforms[t]->precision();
-
-            SkString strVaryingName("MatrixCoord");
-            strVaryingName.appendf("_%i_%i", i, t);
-
-            GrGLSLVertToFrag v(varyingType);
-            varyingHandler->addVarying(strVaryingName.c_str(), &v, precision);
-            vb->codeAppendf("%s = %s;", v.vsOut(), localCoords);
-
-            (*tout)[i].emplace_back(SkString(v.fsIn()), varyingType);
-        }
-    }
-}
-
 void GrGLSLGeometryProcessor::setupPosition(GrGLSLVertexBuilder* vertBuilder,
                                             GrGPArgs* gpArgs,
                                             const char* posName) {
index d403c8fc7fc195bd25a0c642ba5b192a1bd1f859..d1e715f78a7846c65935be341e6a3374a3a80f06 100644 (file)
@@ -70,13 +70,6 @@ protected:
                         const TransformsIn&,
                         TransformsOut*);
 
-    // caller has emitted transforms via attributes
-    void emitTransforms(GrGLSLVertexBuilder*,
-                        GrGLSLVaryingHandler*,
-                        const char* localCoords,
-                        const TransformsIn& tin,
-                        TransformsOut* tout);
-
     struct GrGPArgs {
         // The variable used by a GP to store its position. It can be
         // either a vec2 or a vec3 depending on the presence of perspective.