Index: src/gpu/gl/GrGLProcessor.h |
diff --git a/src/gpu/gl/GrGLProcessor.h b/src/gpu/gl/GrGLProcessor.h |
index 017585d306828f7dd7990796cba587c6fc9cb52a..f99b1c50305b3fac9578ac6d14d069fc5183b598 100644 |
--- a/src/gpu/gl/GrGLProcessor.h |
+++ b/src/gpu/gl/GrGLProcessor.h |
@@ -65,56 +65,4 @@ public: |
typedef SkTArray<TextureSampler> TextureSamplerArray; |
}; |
-class GrGLFPBuilder; |
- |
-class GrGLFragmentProcessor { |
-public: |
- GrGLFragmentProcessor() {} |
- |
- virtual ~GrGLFragmentProcessor() {} |
- |
- typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
- typedef GrGLProcessor::TransformedCoordsArray TransformedCoordsArray; |
- typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray; |
- |
- /** Called when the program stage should insert its code into the shaders. The code in each |
- shader will be in its own block ({}) and so locally scoped names will not collide across |
- stages. |
- |
- @param builder Interface used to emit code in the shaders. |
- @param processor The processor that generated this program stage. |
- @param key The key that was computed by GenKey() from the generating GrProcessor. |
- @param outputColor A predefined vec4 in the FS in which the stage should place its output |
- color (or coverage). |
- @param inputColor A vec4 that holds the input color to the stage in the FS. This may be |
- NULL in which case the implied input is solid white (all ones). |
- TODO: Better system for communicating optimization info (e.g. input |
- color is solid white, trans black, known to be opaque, etc.) that allows |
- the processor to communicate back similar known info about its output. |
- @param samplers Contains one entry for each GrTextureAccess of the GrProcessor. These |
- can be passed to the builder to emit texture reads in the generated |
- code. |
- TODO this should take a struct |
- */ |
- virtual void emitCode(GrGLFPBuilder* builder, |
- const GrFragmentProcessor&, |
- const char* outputColor, |
- const char* inputColor, |
- const TransformedCoordsArray& coords, |
- const TextureSamplerArray& samplers) = 0; |
- |
- /** A GrGLFragmentProcessor instance can be reused with any GrFragmentProcessor that produces |
- the same stage key; this function reads data from a GrFragmentProcessor and uploads any |
- uniform variables required by the shaders created in emitCode(). The GrFragmentProcessor |
- parameter is guaranteed to be of the same type that created this GrGLFragmentProcessor and |
- to have an identical processor key as the one that created this GrGLFragmentProcessor. */ |
- // TODO update this to pass in GrFragmentProcessor |
- virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) {} |
- |
- static void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*) {} |
- |
-private: |
- typedef GrGLProcessor INHERITED; |
-}; |
- |
#endif |