Skip to content

Commit e911ce5

Browse files
johnstiles-googleSkia Commit-Bot
authored andcommitted
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 <[email protected]> Auto-Submit: John Stiles <[email protected]> Reviewed-by: Brian Osman <[email protected]>
1 parent 057c33f commit e911ce5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/gpu/GrProcessorUnitTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ GrProcessorTestData::GrProcessorTestData(SkRandom* random,
2222
fArena = std::unique_ptr<SkArenaAlloc>(new SkArenaAlloc(1000));
2323
}
2424

25+
GrProcessorTestData::~GrProcessorTestData() {}
2526

2627
GrProxyProvider* GrProcessorTestData::proxyProvider() { return fContext->priv().proxyProvider(); }
2728

src/gpu/GrProcessorUnitTest.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ std::unique_ptr<GrFragmentProcessor> MakeChildFP(GrProcessorTestData*);
5252
class GrProcessorTestData {
5353
public:
5454
using ViewInfo = std::tuple<GrSurfaceProxyView, GrColorType, SkAlphaType>;
55-
GrProcessorTestData(SkRandom*, GrRecordingContext*, int numProxies, const ViewInfo[]);
55+
56+
GrProcessorTestData(SkRandom*, GrRecordingContext*, int numViews, const ViewInfo views[]);
57+
GrProcessorTestData(const GrProcessorTestData&) = delete;
58+
~GrProcessorTestData();
5659

5760
GrRecordingContext* context() { return fContext; }
5861
GrProxyProvider* proxyProvider();
@@ -68,6 +71,7 @@ class GrProcessorTestData {
6871
GrRecordingContext* fContext;
6972
SkTArray<ViewInfo> fViews;
7073
std::unique_ptr<SkArenaAlloc> fArena;
74+
std::unique_ptr<GrFragmentProcessor> fInputFP;
7175
};
7276

7377
class GrProcessor;

0 commit comments

Comments
 (0)