Index: src/gpu/GrProcessor.cpp |
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp |
index d850d6894a3782e04e827d723edb2110cac05abb..8aeef04b48e8dcd1244bbd37c172baf1f80d4df0 100644 |
--- a/src/gpu/GrProcessor.cpp |
+++ b/src/gpu/GrProcessor.cpp |
@@ -28,6 +28,13 @@ GrProcessorTestFactory<GrFragmentProcessor>::GetFactories() { |
} |
template<> |
+SkTArray<GrProcessorTestFactory<GrXferProcessor>*, true>* |
+GrProcessorTestFactory<GrXferProcessor>::GetFactories() { |
+ static SkTArray<GrProcessorTestFactory<GrXferProcessor>*, true> gFactories; |
+ return &gFactories; |
+} |
+ |
+template<> |
SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true>* |
GrProcessorTestFactory<GrGeometryProcessor>::GetFactories() { |
static SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true> gFactories; |
@@ -41,6 +48,7 @@ GrProcessorTestFactory<GrGeometryProcessor>::GetFactories() { |
*/ |
static const int kFPFactoryCount = 37; |
static const int kGPFactoryCount = 14; |
+static const int kXPFactoryCount = 0; |
template<> |
void GrProcessorTestFactory<GrFragmentProcessor>::VerifyFactoryCount() { |
@@ -56,6 +64,13 @@ void GrProcessorTestFactory<GrGeometryProcessor>::VerifyFactoryCount() { |
} |
} |
+template<> |
+void GrProcessorTestFactory<GrXferProcessor>::VerifyFactoryCount() { |
+ if (kXPFactoryCount != GetFactories()->count()) { |
+ SkFAIL("Wrong number of xfer processor factories!"); |
+ } |
+} |
+ |
#endif |
namespace GrProcessorUnitTest { |