diff options
author | 2016-02-09 11:32:56 -0800 | |
---|---|---|
committer | 2016-02-09 11:32:56 -0800 | |
commit | 85dc359f749c349bbd8e0ba56825b9457f654237 (patch) | |
tree | 0c0fa177c8cd4dad9a70e13027bea466abe283dc /src/gpu/gl/builders/GrGLProgramBuilder.cpp | |
parent | 8273ca460fcde18ec884279fb9a41f330e92e0f9 (diff) |
Remove SkNEW_APPEND_TO_TARRAY.
The use of SkNEW_APPEND_TO_TARRAY is now better served by
SkTArray::emplace_back(...) which should now be used instead. The
existing users of SkNEW_APPEND_TO_TARRAY are converted and the code
relating to SkNEW_APPEND_TO_TARRAY is removed.
TBR=reed
This only removes code. The file should also be made private.
Review URL: https://codereview.chromium.org/1682083002
Diffstat (limited to 'src/gpu/gl/builders/GrGLProgramBuilder.cpp')
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index 52ef7b590b..905fcdeb96 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 |