commit | eed4cbab5e8ce625e5f3a73b1b3dfe6c4cc64cc3 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Fri Oct 30 12:23:11 2020 -0400 |
committer | Greg Daniel <egdaniel@google.com> | Fri Oct 30 16:34:39 2020 +0000 |
tree | 6c74cda8b2f22d4dae6b4fa13149d98fa6c6847b | |
parent | ec9db71e002d3205e2dd7c63d6f3b139d43108eb [diff] [blame] |
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; }