diff options
author | egdaniel <egdaniel@google.com> | 2015-10-28 07:26:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-28 07:26:40 -0700 |
commit | 018fb62d12d1febf121fe265da5b6117b86a6541 (patch) | |
tree | 61d845716f03c05ea86aab539fcc5035b5f30734 /src/gpu/effects/GrBicubicEffect.cpp | |
parent | fe6876280f6d79deb6a3f9d5a75f90a937e9026f (diff) |
Create GLSL base class for ProgramDataManager
BUG=skia:
Review URL: https://codereview.chromium.org/1428543003
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp index 3bed4bea3f..a6ed1909d7 100644 --- a/src/gpu/effects/GrBicubicEffect.cpp +++ b/src/gpu/effects/GrBicubicEffect.cpp @@ -8,6 +8,7 @@ #include "GrBicubicEffect.h" #include "GrInvariantOutput.h" #include "gl/builders/GrGLProgramBuilder.h" +#include "glsl/GrGLSLProgramDataManager.h" #define DS(x) SkDoubleToScalar(x) @@ -32,10 +33,10 @@ public: } protected: - void onSetData(const GrGLProgramDataManager&, const GrProcessor&) override; + void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override; private: - typedef GrGLProgramDataManager::UniformHandle UniformHandle; + typedef GrGLSLProgramDataManager::UniformHandle UniformHandle; UniformHandle fCoefficientsUni; UniformHandle fImageIncrementUni; @@ -105,8 +106,8 @@ void GrGLBicubicEffect::emitCode(EmitArgs& args) { GrGLSLExpr4(args.fInputColor)).c_str()); } -void GrGLBicubicEffect::onSetData(const GrGLProgramDataManager& pdman, - const GrProcessor& processor) { +void GrGLBicubicEffect::onSetData(const GrGLSLProgramDataManager& pdman, + const GrProcessor& processor) { const GrBicubicEffect& bicubicEffect = processor.cast<GrBicubicEffect>(); const GrTexture& texture = *processor.texture(0); float imageIncrement[2]; |