aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrAtlasedShaderHelpers.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-12-08 13:34:21 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-08 20:57:28 +0000
commit27372888a5c7698f51069bd5b5beea3e85b66668 (patch)
tree2fb60b65f286fe7da33467918198ad731cef708d /src/gpu/effects/GrAtlasedShaderHelpers.h
parentbe4ffab4e208ec47b4298621b9c9e8456f31717e (diff)
Don't force GrGLSLVarying's scope to be compile-time constant
Bug: skia: Change-Id: I70a191949fd26a39257a8a59a0a4c6448ec1fa37 Reviewed-on: https://skia-review.googlesource.com/82462 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/effects/GrAtlasedShaderHelpers.h')
-rw-r--r--src/gpu/effects/GrAtlasedShaderHelpers.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/effects/GrAtlasedShaderHelpers.h b/src/gpu/effects/GrAtlasedShaderHelpers.h
index ad901411db..99bbcc0606 100644
--- a/src/gpu/effects/GrAtlasedShaderHelpers.h
+++ b/src/gpu/effects/GrAtlasedShaderHelpers.h
@@ -16,9 +16,9 @@
static void append_index_uv_varyings(GrGLSLPrimitiveProcessor::EmitArgs& args,
const char* inTexCoordsName,
const char* atlasSizeInvName,
- GrGLSLVertToFrag *uv,
- GrGLSLVertToFrag *texIdx,
- GrGLSLVertToFrag *st) {
+ GrGLSLVarying *uv,
+ GrGLSLVarying *texIdx,
+ GrGLSLVarying *st) {
// This extracts the texture index and texel coordinates from the same variable
// Packing structure: texel coordinates are multiplied by 2 (or shifted left 1)
// texture index is stored as lower bits of both x and y
@@ -43,7 +43,7 @@ static void append_index_uv_varyings(GrGLSLPrimitiveProcessor::EmitArgs& args,
static void append_multitexture_lookup(GrGLSLPrimitiveProcessor::EmitArgs& args,
int numTextureSamplers,
- const GrGLSLVertToFrag &texIdx,
+ const GrGLSLVarying &texIdx,
const char* coordName,
const char* colorName) {
// conditionally load from the indexed texture sampler