Vulkan config in dm
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1872283003
Review URL: https://codereview.chromium.org/1872283003
diff --git a/tests/VkWrapTests.cpp b/tests/VkWrapTests.cpp
index a4fec08..626ee4c 100755
--- a/tests/VkWrapTests.cpp
+++ b/tests/VkWrapTests.cpp
@@ -158,23 +158,10 @@
gpu->deleteTestingOnlyBackendTexture(backendObj, true);
}
-DEF_GPUTEST(VkWrapTests, reporter, factory) {
- GrContextOptions opts;
- opts.fSuppressPrints = true;
- GrContextFactory debugFactory(opts);
- for (int type = 0; type < GrContextFactory::kLastContextType; ++type) {
- if (static_cast<GrContextFactory::ContextType>(type) !=
- GrContextFactory::kNativeGL_ContextType) {
- continue;
- }
- GrContext* context = debugFactory.get(static_cast<GrContextFactory::ContextType>(type));
- if (context) {
- wrap_tex_test(reporter, context);
- wrap_rt_test(reporter, context);
- wrap_trt_test(reporter, context);
- }
-
- }
+DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkWrapTests, reporter, ctxInfo) {
+ wrap_tex_test(reporter, ctxInfo.fGrContext);
+ wrap_rt_test(reporter, ctxInfo.fGrContext);
+ wrap_trt_test(reporter, ctxInfo.fGrContext);
}
#endif