Index: src/core/SkNormalFlatSource.cpp |
diff --git a/src/core/SkNormalFlatSource.cpp b/src/core/SkNormalFlatSource.cpp |
index bdd65b03e9933b0372df6c69a1698dbadad36cea..fcb1a4f3adadb9707f6b5d5ff8b9281008df9ce0 100644 |
--- a/src/core/SkNormalFlatSource.cpp |
+++ b/src/core/SkNormalFlatSource.cpp |
@@ -8,7 +8,6 @@ |
#include "SkNormalFlatSource.h" |
#include "SkNormalSource.h" |
-#include "SkNormalSourcePriv.h" |
#include "SkPoint3.h" |
#include "SkReadBuffer.h" |
#include "SkWriteBuffer.h" |
@@ -24,12 +23,12 @@ |
this->initClassID<NormalFlatFP>(); |
} |
- class GLSLNormalFlatFP : public GLSLNormalFP { |
+ class GLSLNormalFlatFP : public GrGLSLFragmentProcessor { |
public: |
GLSLNormalFlatFP() {} |
- void onEmitCode(EmitArgs& args) override { |
- GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; |
+ void emitCode(EmitArgs& args) override { |
+ GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
fragBuilder->codeAppendf("%s = vec4(0, 0, 1, 0);", args.fOutputColor); |
} |
@@ -40,8 +39,7 @@ |
} |
protected: |
- void setNormalData(const GrGLSLProgramDataManager& pdman, |
- const GrProcessor& proc) override {} |
+ void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override {} |
}; |
void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override { |