Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 52ef7b590ba03703f74c938a979675a7c2d1f8ee..905fcdeb96040f45b57ed20d63b07ae43af9d0e6 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -92,8 +92,7 @@ void GrGLProgramBuilder::emitSamplers(const GrProcessor& processor, |
fUniformHandler.addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
samplerType, kDefault_GrSLPrecision, |
name.c_str()); |
- SkNEW_APPEND_TO_TARRAY(outSamplers, GrGLSLTextureSampler, |
- (localSamplerUniforms[t], processor.textureAccess(t))); |
+ outSamplers->emplace_back(localSamplerUniforms[t], processor.textureAccess(t)); |
if (kSamplerExternal_GrSLType == samplerType) { |
const char* externalFeatureString = this->glslCaps()->externalTextureExtensionString(); |
// We shouldn't ever create a GrGLTexture that requires external sampler type |