From 10a83da287be541c2253bec23a92f1e5e1a79ff3 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Thu, 14 Jun 2018 09:31:11 -0400 Subject: Add GrContext::MakeVulkan factory that doesn't take a ref'd GrVkBackendContext. This is the first step towards removing the ref counted ness of GrVkBackendContext. Bug: skia: Change-Id: I38f8861dd093a6a6098dd2e421c26c41185320f7 Reviewed-on: https://skia-review.googlesource.com/134783 Reviewed-by: Brian Salomon Reviewed-by: Jim Van Verth Commit-Queue: Greg Daniel --- include/gpu/GrContext.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/gpu/GrContext.h') diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 525e5d77b8..5a2ba4780f 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -68,6 +68,10 @@ public: static sk_sp MakeGL(); #ifdef SK_VULKAN + static sk_sp MakeVulkan(const GrVkBackendContext&, const GrContextOptions&); + static sk_sp MakeVulkan(const GrVkBackendContext&); + // These calls that take an sk_sp GrVkBackendContext are deprecated. Use the previous calls and + // set fOwnsInstanceAndDevice to false on the GrVkBackendContext. static sk_sp MakeVulkan(sk_sp, const GrContextOptions&); static sk_sp MakeVulkan(sk_sp); #endif -- cgit v1.2.3