aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkArithmeticMode_gpu.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-13 08:34:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-13 08:34:52 -0800
commitfa4cc8bf2aa782431609dd2ac16b1fc36de72e44 (patch)
tree26c306d55e2a7adeea52a4db5477f70b16592e48 /src/effects/SkArithmeticMode_gpu.cpp
parent266e2024ec487425f56473e272a6b81bfbf2c543 (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.cpp10
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,