Update more tests to use the GrDirectContext/GrRecordingContext pair

Change-Id: I66011fef006398a95c9f54af97c5c1092b8b7415
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/305497
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tests/TransferPixelsTest.cpp b/tests/TransferPixelsTest.cpp
index 6ba0c12..6d8c062 100644
--- a/tests/TransferPixelsTest.cpp
+++ b/tests/TransferPixelsTest.cpp
@@ -94,21 +94,23 @@
     return gpu->readPixels(texture, 0, 0, w, h, colorType, supportedRead.fColorType, dst, rowBytes);
 }
 
-void basic_transfer_to_test(skiatest::Reporter* reporter, GrContext* context, GrColorType colorType,
+void basic_transfer_to_test(skiatest::Reporter* reporter,
+                            GrDirectContext* dContext,
+                            GrColorType colorType,
                             GrRenderable renderable) {
-    if (GrCaps::kNone_MapFlags == context->priv().caps()->mapBufferFlags()) {
+    if (GrCaps::kNone_MapFlags == dContext->priv().caps()->mapBufferFlags()) {
         return;
     }
 
-    auto* caps = context->priv().caps();
+    auto* caps = dContext->priv().caps();
 
     auto backendFormat = caps->getDefaultBackendFormat(colorType, renderable);
     if (!backendFormat.isValid()) {
         return;
     }
 
-    auto resourceProvider = context->priv().resourceProvider();
-    GrGpu* gpu = context->priv().getGpu();
+    auto resourceProvider = dContext->priv().resourceProvider();
+    GrGpu* gpu = dContext->priv().getGpu();
 
     static constexpr SkISize kTexDims = {16, 16};
     int srcBufferWidth = caps->writePixelsRowBytesSupport() ? 20 : 16;