diff options
author | Brian Salomon <bsalomon@google.com> | 2016-11-21 13:41:08 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-21 19:13:43 +0000 |
commit | 99938a8ef24e2dd5b39f78638742e9b50ab6d9bf (patch) | |
tree | e3842210db20a4574e9cec37ae7f049aaff27b65 /src/gpu/gl/GrGLUniformHandler.h | |
parent | d728f0c1a94fe926b59d8ebc9ae174019ccd3606 (diff) |
Merge GrGLSLShaderVar and GrShaderVar
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5087
Change-Id: Ib8943a1da1ea495554feaf5b0992b94fbb9539ab
Reviewed-on: https://skia-review.googlesource.com/5087
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLUniformHandler.h')
-rw-r--r-- | src/gpu/gl/GrGLUniformHandler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLUniformHandler.h b/src/gpu/gl/GrGLUniformHandler.h index da5b96d0ca..d3aa2f8358 100644 --- a/src/gpu/gl/GrGLUniformHandler.h +++ b/src/gpu/gl/GrGLUniformHandler.h @@ -18,7 +18,7 @@ class GrGLUniformHandler : public GrGLSLUniformHandler { public: static const int kUniformsPerBlock = 8; - const GrGLSLShaderVar& getUniformVariable(UniformHandle u) const override { + const GrShaderVar& getUniformVariable(UniformHandle u) const override { return fUniforms[u.toIndex()].fVariable; } @@ -42,7 +42,7 @@ private: SamplerHandle addSampler(uint32_t visibility, GrSwizzle, GrSLType, GrSLPrecision, const char* name) override; - const GrGLSLShaderVar& samplerVariable(SamplerHandle handle) const override { + const GrShaderVar& samplerVariable(SamplerHandle handle) const override { return fSamplers[handle.toIndex()].fVariable; } |