Index: src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
diff --git a/src/gpu/glsl/GrGLSLGeometryProcessor.cpp b/src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
index a8bd8ac4f82b14f9757e42465b0cf5aff0498e3e..967c18d284724d2c29257d75174e24ef00134d61 100644 |
--- a/src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
+++ b/src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
@@ -62,8 +62,7 @@ void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb, |
varyingHandler->addVarying(strVaryingName.c_str(), &v, precision); |
SkASSERT(kVec2f_GrSLType == varyingType || kVec3f_GrSLType == varyingType); |
- SkNEW_APPEND_TO_TARRAY(&(*tout)[i], GrGLSLTransformedCoords, |
- (SkString(v.fsIn()), varyingType)); |
+ (*tout)[i].emplace_back(SkString(v.fsIn()), varyingType); |
// varying = matrix * coords (logically) |
if (kDevice_GrCoordSet == coordType) { |
@@ -117,9 +116,7 @@ void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb, |
varyingHandler->addVarying(strVaryingName.c_str(), &v, precision); |
vb->codeAppendf("%s = %s;", v.vsOut(), localCoords); |
- SkNEW_APPEND_TO_TARRAY(&(*tout)[i], |
- GrGLSLTransformedCoords, |
- (SkString(v.fsIn()), varyingType)); |
+ (*tout)[i].emplace_back(SkString(v.fsIn()), varyingType); |
} |
} |
} |