diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-25 08:45:21 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-25 15:19:27 +0000 |
commit | 8296e752fa1803dcb8cf97d6ab10bb4f5f5f51f0 (patch) | |
tree | 7251f087721b2578152647b1c9e17d7dbf581dbc /src/gpu/glsl/GrGLSLShaderBuilder.cpp | |
parent | c8323aa51ab27259076532ba081d2ed5c26aedfc (diff) |
Switch atlas clients over to using absolute texture coordinates (take 2)
This is a prerequisite for being able to resize the atlas with impunity.
Change-Id: Iccc9c7ced43f38a7d8483a7bd12a458d59a3453a
Reviewed-on: https://skia-review.googlesource.com/38362
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/glsl/GrGLSLShaderBuilder.cpp')
-rw-r--r-- | src/gpu/glsl/GrGLSLShaderBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/glsl/GrGLSLShaderBuilder.cpp b/src/gpu/glsl/GrGLSLShaderBuilder.cpp index 8f7d23dfe5..4d54c7529e 100644 --- a/src/gpu/glsl/GrGLSLShaderBuilder.cpp +++ b/src/gpu/glsl/GrGLSLShaderBuilder.cpp @@ -46,7 +46,7 @@ void GrGLSLShaderBuilder::emitFunction(GrSLType returnType, const GrShaderVar* args, const char* body, SkString* outName) { - this->functions().append(GrGLSLTypeString(returnType)); + this->functions().append(GrGLSLTypeString(fProgramBuilder->shaderCaps(), returnType)); fProgramBuilder->nameVariable(outName, '\0', name); this->functions().appendf(" %s", outName->c_str()); this->functions().append("("); |