Add an input FP to the GrProcessorTestData.
This will be leveraged in followup CLs.
Change-Id: Iccc6071867f0044fc3ab935fc18ac38dea0ebac2
Bug: skia:10384
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303585
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrProcessorUnitTest.h b/src/gpu/GrProcessorUnitTest.h
index 1cde80e..23fbb4a 100644
--- a/src/gpu/GrProcessorUnitTest.h
+++ b/src/gpu/GrProcessorUnitTest.h
@@ -52,7 +52,10 @@
class GrProcessorTestData {
public:
using ViewInfo = std::tuple<GrSurfaceProxyView, GrColorType, SkAlphaType>;
- GrProcessorTestData(SkRandom*, GrRecordingContext*, int numProxies, const ViewInfo[]);
+
+ GrProcessorTestData(SkRandom*, GrRecordingContext*, int numViews, const ViewInfo views[]);
+ GrProcessorTestData(const GrProcessorTestData&) = delete;
+ ~GrProcessorTestData();
GrRecordingContext* context() { return fContext; }
GrProxyProvider* proxyProvider();
@@ -68,6 +71,7 @@
GrRecordingContext* fContext;
SkTArray<ViewInfo> fViews;
std::unique_ptr<SkArenaAlloc> fArena;
+ std::unique_ptr<GrFragmentProcessor> fInputFP;
};
class GrProcessor;