Index: src/core/SkNormalMapSource.cpp |
diff --git a/src/core/SkNormalMapSource.cpp b/src/core/SkNormalMapSource.cpp |
index c2cda099ab7b55633bdfb2b910acdf6c14bdd95d..2ecf1d310df0e46ad0b49b886d149129feb5f901 100644 |
--- a/src/core/SkNormalMapSource.cpp |
+++ b/src/core/SkNormalMapSource.cpp |
@@ -10,7 +10,6 @@ |
#include "SkLightingShader.h" |
#include "SkMatrix.h" |
#include "SkNormalSource.h" |
-#include "SkNormalSourcePriv.h" |
#include "SkPM4f.h" |
#include "SkReadBuffer.h" |
#include "SkWriteBuffer.h" |
@@ -32,13 +31,13 @@ |
this->initClassID<NormalMapFP>(); |
} |
- class GLSLNormalMapFP : public GLSLNormalFP { |
+ class GLSLNormalMapFP : public GrGLSLFragmentProcessor { |
public: |
GLSLNormalMapFP() |
: fColumnMajorInvCTM22{0.0f} {} |
- void onEmitCode(EmitArgs& args) override { |
- GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; |
+ void emitCode(EmitArgs& args) override { |
+ GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; |
// add uniform |
@@ -79,8 +78,7 @@ |
} |
protected: |
- void setNormalData(const GrGLSLProgramDataManager& pdman, |
- const GrProcessor& proc) override { |
+ void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override { |
const NormalMapFP& normalMapFP = proc.cast<NormalMapFP>(); |
const SkMatrix& invCTM = normalMapFP.invCTM(); |