Clean up GrContext references in the src/gpu

This CL tries to remove all uses of GrContext - replacing them with
either GrDirectContext or GrRecordingContext. Preferring the recording
context wherever possible.

Change-Id: I61af94928aa37bc82ff9923acffd57586610f695
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/302904
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
diff --git a/src/gpu/GrProcessorUnitTest.h b/src/gpu/GrProcessorUnitTest.h
index 5086028..1cde80e 100644
--- a/src/gpu/GrProcessorUnitTest.h
+++ b/src/gpu/GrProcessorUnitTest.h
@@ -21,7 +21,6 @@
 
 class SkMatrix;
 class GrCaps;
-class GrContext;
 class GrProxyProvider;
 class GrRenderTargetContext;
 class GrProcessorTestData;
@@ -53,10 +52,9 @@
 class GrProcessorTestData {
 public:
     using ViewInfo = std::tuple<GrSurfaceProxyView, GrColorType, SkAlphaType>;
-    GrProcessorTestData(SkRandom* random, GrContext* context, int numProxies, const ViewInfo[]);
+    GrProcessorTestData(SkRandom*, GrRecordingContext*, int numProxies, const ViewInfo[]);
 
-    GrContext* context() { return fContext; }
-    GrResourceProvider* resourceProvider();
+    GrRecordingContext* context() { return fContext; }
     GrProxyProvider* proxyProvider();
     const GrCaps* caps();
     SkArenaAlloc* allocator() { return fArena.get(); }
@@ -67,7 +65,7 @@
     SkRandom* fRandom;
 
 private:
-    GrContext* fContext;
+    GrRecordingContext* fContext;
     SkTArray<ViewInfo> fViews;
     std::unique_ptr<SkArenaAlloc> fArena;
 };