Index: include/gpu/GrXferProcessor.h |
diff --git a/include/gpu/GrXferProcessor.h b/include/gpu/GrXferProcessor.h |
index 986c22f40b40809b63df20cab735a3dedc601d9f..ce0f39e2c4dc635e7219b9cbd64bcd0c0bd230fe 100644 |
--- a/include/gpu/GrXferProcessor.h |
+++ b/include/gpu/GrXferProcessor.h |
@@ -43,7 +43,7 @@ private: |
* creates will have. For example, will the XP support RGB coverage or will the XP blend with the |
* destination color. |
*/ |
-class GrXPFactory : public GrProgramElement { |
+class GrXPFactory : public SkRefCnt { |
public: |
virtual const GrXferProcessor* createXferProcessor() const = 0; |
@@ -58,5 +58,8 @@ private: |
typedef GrProgramElement INHERITED; |
}; |
+#define GR_CREATE_STATIC_XP_FACTORY(NAME, XPF_CLASS, ARGS) \ |
bsalomon
2014/12/03 17:44:56
Do you need this? Do they have to be created on th
egdaniel
2014/12/03 18:12:35
switched off heap and removed macro
|
+ static XPF_CLASS* NAME = SkNEW_ARGS(XPF_CLASS, ARGS) |
+ |
#endif |