Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: include/gpu/GrBackendProcessorFactory.h

Issue 751283002: Add XferProcessor factory in GrPaint and GrDrawState. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update gyp Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/gpu/GrBackendProcessorFactory.h
diff --git a/include/gpu/GrBackendProcessorFactory.h b/include/gpu/GrBackendProcessorFactory.h
index 3e4f13314756734cfb5c7957a1db0f969e9da2e9..f62c503005bf63faf8448f82709bbb1bcb5edcad 100644
--- a/include/gpu/GrBackendProcessorFactory.h
+++ b/include/gpu/GrBackendProcessorFactory.h
@@ -140,8 +140,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
@@ -157,6 +159,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:
/**

Powered by Google App Engine
This is Rietveld 408576698