aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrBackendProcessorFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrBackendProcessorFactory.h')
-rw-r--r--include/gpu/GrBackendProcessorFactory.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gpu/GrBackendProcessorFactory.h b/include/gpu/GrBackendProcessorFactory.h
index 9dda1659d0..acbc12c192 100644
--- a/include/gpu/GrBackendProcessorFactory.h
+++ b/include/gpu/GrBackendProcessorFactory.h
@@ -115,8 +115,10 @@ private:
class GrFragmentProcessor;
class GrGeometryProcessor;
+class GrXferProcessor;
class GrGLFragmentProcessor;
class GrGLGeometryProcessor;
+class GrGLXferProcessor;
/**
* Backend processor factory cannot actually create anything, it is up to subclasses to implement
@@ -132,6 +134,15 @@ public:
virtual GrGLFragmentProcessor* createGLInstance(const GrFragmentProcessor&) const = 0;
};
+class GrBackendXferProcessorFactory : public GrBackendProcessorFactory {
+public:
+ /**
+ * Creates a GrGLProcessor instance that is used both to generate code for the GrProcessor in a
+ * GLSL program and to manage updating uniforms for the program when it is used.
+ */
+ virtual GrGLXferProcessor* createGLInstance(const GrXferProcessor&) const = 0;
+};
+
class GrBackendGeometryProcessorFactory : public GrBackendProcessorFactory {
public:
/**