Switch SkImage's & SkImageGenerator's isValid call over to GrRecordingContext

This is another step towards replacing GrContext with the
GrDirectContext/GrRecordingContext pair.

Change-Id: I9336799a299e181fd56759f37dfed3da5da5d022
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301856
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrAHardwareBufferImageGenerator.cpp b/src/gpu/GrAHardwareBufferImageGenerator.cpp
index 943c896..129e271 100644
--- a/src/gpu/GrAHardwareBufferImageGenerator.cpp
+++ b/src/gpu/GrAHardwareBufferImageGenerator.cpp
@@ -215,7 +215,7 @@
                                     SkBackingFit::kExact, budgeted);
 }
 
-bool GrAHardwareBufferImageGenerator::onIsValid(GrContext* context) const {
+bool GrAHardwareBufferImageGenerator::onIsValid(GrRecordingContext* context) const {
     if (nullptr == context) {
         return false; //CPU backend is not supported, because hardware buffer can be swizzled
     }