diff options
author | Brian Salomon <bsalomon@google.com> | 2017-12-06 14:47:42 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-07 19:20:19 +0000 |
commit | 04460ccee50e03b89420cdaa85882a9da083fa38 (patch) | |
tree | 9c5b83a5822ac6e59cac1555f6043a0d396b6ad3 /src/gpu/GrPrimitiveProcessor.h | |
parent | e951e4a1dca5c6706b11e402838d9e14de430a05 (diff) |
Make GrGLSLPrimitiveProcessor::emitTransforms take local coords as GrShaderVar.
Also remove unused position variable parameter.
Change-Id: I37f98a03ac1ca750810de13b08e3ffa11e41828c
Reviewed-on: https://skia-review.googlesource.com/81320
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPrimitiveProcessor.h')
-rw-r--r-- | src/gpu/GrPrimitiveProcessor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h index 375b5129ba..f480110df5 100644 --- a/src/gpu/GrPrimitiveProcessor.h +++ b/src/gpu/GrPrimitiveProcessor.h @@ -45,7 +45,10 @@ public: kPerVertex, kPerInstance }; - + GrShaderVar asShaderVar() const { + return GrShaderVar(fName, GrVertexAttribTypeToSLType(fType), + GrShaderVar::kIn_TypeModifier); + } const char* fName; GrVertexAttribType fType; int fOffsetInRecord; |