Index: include/gpu/GrProcessorUnitTest.h |
diff --git a/include/gpu/GrProcessorUnitTest.h b/include/gpu/GrProcessorUnitTest.h |
index 8a17521bfce2bfd6f92f77c992301759de70285f..5506551db015a3c66a06dcc517be0bdd8af44bef 100644 |
--- a/include/gpu/GrProcessorUnitTest.h |
+++ b/include/gpu/GrProcessorUnitTest.h |
@@ -15,14 +15,20 @@ |
class SkMatrix; |
class GrCaps; |
class GrContext; |
+struct GrProcessorTestData; |
namespace GrProcessorUnitTest { |
+ |
// Used to access the dummy textures in TestCreate procs. |
enum { |
kSkiaPMTextureIdx = 0, |
kAlphaTextureIdx = 1, |
}; |
+/** This allows parent FPs to implement a test create with known leaf children or order to avoid |
egdaniel
2015/09/14 20:00:26
or->in
bsalomon
2015/09/14 20:05:37
Done.
|
+creating an unbounded FP tree which may overflow various shader limits. */ |
+const GrFragmentProcessor* CreateLeafFP(GrProcessorTestData*); |
+ |
} |
/* |
@@ -57,10 +63,8 @@ struct GrProcessorTestData { |
class GrProcessor; |
class GrTexture; |
-template <class Processor> |
-class GrProcessorTestFactory : SkNoncopyable { |
+template <class Processor> class GrProcessorTestFactory : SkNoncopyable { |
public: |
- |
typedef const Processor* (*CreateProc)(GrProcessorTestData*); |
GrProcessorTestFactory(CreateProc createProc) { |
@@ -111,7 +115,6 @@ private: |
static GrProcessorTestFactory<GrXPFactory> gTestFactory SK_UNUSED; \ |
static const GrXPFactory* TestCreate(GrProcessorTestData*) |
- |
/** GrProcessor subclasses should insert this macro in their implementation file. They must then |
* also implement this static function: |
* GrProcessor* TestCreate(GrProcessorTestData*); |