Have GrProcessorTestData hold views instead of proxies.
Bug: skia:9556
Change-Id: I2e51331eaca74a6c355872cd19b725f7b3ab551e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/270199
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrProcessorUnitTest.h b/src/gpu/GrProcessorUnitTest.h
index 5d7443b..5086028 100644
--- a/src/gpu/GrProcessorUnitTest.h
+++ b/src/gpu/GrProcessorUnitTest.h
@@ -52,8 +52,8 @@
*/
class GrProcessorTestData {
public:
- using ProxyInfo = std::tuple<sk_sp<GrTextureProxy>, GrColorType, SkAlphaType>;
- GrProcessorTestData(SkRandom* random, GrContext* context, int numProxies, const ProxyInfo[]);
+ using ViewInfo = std::tuple<GrSurfaceProxyView, GrColorType, SkAlphaType>;
+ GrProcessorTestData(SkRandom* random, GrContext* context, int numProxies, const ViewInfo[]);
GrContext* context() { return fContext; }
GrResourceProvider* resourceProvider();
@@ -61,14 +61,14 @@
const GrCaps* caps();
SkArenaAlloc* allocator() { return fArena.get(); }
- ProxyInfo randomProxy();
- ProxyInfo randomAlphaOnlyProxy();
+ ViewInfo randomView();
+ ViewInfo randomAlphaOnlyView();
SkRandom* fRandom;
private:
GrContext* fContext;
- SkTArray<ProxyInfo> fProxies;
+ SkTArray<ViewInfo> fViews;
std::unique_ptr<SkArenaAlloc> fArena;
};