diff options
author | 2015-11-13 08:34:52 -0800 | |
---|---|---|
committer | 2015-11-13 08:34:52 -0800 | |
commit | fa4cc8bf2aa782431609dd2ac16b1fc36de72e44 (patch) | |
tree | 26c306d55e2a7adeea52a4db5477f70b16592e48 /src/effects/SkArithmeticMode_gpu.cpp | |
parent | 266e2024ec487425f56473e272a6b81bfbf2c543 (diff) |
Move XferProcessors to glsl
This is basically a move and rename
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1440073002
Diffstat (limited to 'src/effects/SkArithmeticMode_gpu.cpp')
-rw-r--r-- | src/effects/SkArithmeticMode_gpu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/effects/SkArithmeticMode_gpu.cpp b/src/effects/SkArithmeticMode_gpu.cpp index 2ab5172b57..7cb02e24b2 100644 --- a/src/effects/SkArithmeticMode_gpu.cpp +++ b/src/effects/SkArithmeticMode_gpu.cpp @@ -13,11 +13,11 @@ #include "GrInvariantOutput.h" #include "GrProcessor.h" #include "GrTexture.h" -#include "gl/GrGLXferProcessor.h" #include "glsl/GrGLSLFragmentProcessor.h" #include "glsl/GrGLSLFragmentShaderBuilder.h" #include "glsl/GrGLSLProgramBuilder.h" #include "glsl/GrGLSLProgramDataManager.h" +#include "glsl/GrGLSLXferProcessor.h" static const bool gUseUnpremul = false; @@ -154,7 +154,7 @@ public: const char* name() const override { return "Arithmetic"; } - GrGLXferProcessor* createGLInstance() const override; + GrGLSLXferProcessor* createGLInstance() const override; float k1() const { return fK1; } float k2() const { return fK2; } @@ -191,7 +191,7 @@ private: /////////////////////////////////////////////////////////////////////////////// -class GLArithmeticXP : public GrGLXferProcessor { +class GLArithmeticXP : public GrGLSLXferProcessor { public: GLArithmeticXP(const ArithmeticXP& arithmeticXP) : fEnforcePMColor(arithmeticXP.enforcePMColor()) { @@ -229,7 +229,7 @@ private: GrGLSLProgramDataManager::UniformHandle fKUni; bool fEnforcePMColor; - typedef GrGLXferProcessor INHERITED; + typedef GrGLSLXferProcessor INHERITED; }; /////////////////////////////////////////////////////////////////////////////// @@ -249,7 +249,7 @@ void ArithmeticXP::onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBui GLArithmeticXP::GenKey(*this, caps, b); } -GrGLXferProcessor* ArithmeticXP::createGLInstance() const { return new GLArithmeticXP(*this); } +GrGLSLXferProcessor* ArithmeticXP::createGLInstance() const { return new GLArithmeticXP(*this); } GrXferProcessor::OptFlags ArithmeticXP::onGetOptimizations(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, |