Guard use of GrVkGpu in GrAHardwareBufferUtils

Change-Id: I50467eb42528d2109bf7e0d682b3cc4ae892b53b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/330817
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/src/gpu/GrAHardwareBufferUtils.cpp b/src/gpu/GrAHardwareBufferUtils.cpp
index 9bb29f5..89c2ca2 100644
--- a/src/gpu/GrAHardwareBufferUtils.cpp
+++ b/src/gpu/GrAHardwareBufferUtils.cpp
@@ -527,7 +527,9 @@
         static bool hasIt = can_import_protected_content_eglimpl();
         return hasIt;
     } else if (GrBackendApi::kVulkan == dContext->backend()) {
+#ifdef SK_VULKAN
         return static_cast<GrVkGpu*>(dContext->priv().getGpu())->protectedContext();
+#endif
     }
     return false;
 }