aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-06-07 11:22:30 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-07 16:32:11 +0000
commitdc636203f44bdbcd8b93f1d615a3adeaa486f21c (patch)
treef534a64e1edc74e9ffe150d7f62c85daf633129e /src
parent9519d4f05a211c2d4a52ad1dacfe59ceeb884adb (diff)
Add guard around GrVkBackendContext::Create function.
Just want to make sure the use of this doesn't leak out to other users as I work on removing it. Bug: skia: Change-Id: I5ecf11615db64bd489065e6f67e0e1d4bb3298eb Reviewed-on: https://skia-review.googlesource.com/132831 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/vk/GrVkBackendContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkBackendContext.cpp b/src/gpu/vk/GrVkBackendContext.cpp
index d54582f3a5..3c4e8d7a60 100644
--- a/src/gpu/vk/GrVkBackendContext.cpp
+++ b/src/gpu/vk/GrVkBackendContext.cpp
@@ -10,6 +10,8 @@
#include "vk/GrVkExtensions.h"
#include "vk/GrVkUtil.h"
+#if GR_TEST_UTILS || defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
+
////////////////////////////////////////////////////////////////////////////////
// Helper code to set up Vulkan context objects
@@ -320,6 +322,7 @@ const GrVkBackendContext* GrVkBackendContext::Create(uint32_t* presentQueueIndex
return ctx;
}
+#endif // GR_TEST_UTILS || defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
GrVkBackendContext::~GrVkBackendContext() {
fMemoryAllocator.reset();