diff options
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r-- | include/gpu/GrContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index c1804e00ff..565a3d504f 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -71,6 +71,10 @@ public: #ifdef SK_VULKAN static sk_sp<GrContext> MakeVulkan(const GrVkBackendContext&, const GrContextOptions&); static sk_sp<GrContext> 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<GrContext> MakeVulkan(sk_sp<const GrVkBackendContext>, const GrContextOptions&); + static sk_sp<GrContext> MakeVulkan(sk_sp<const GrVkBackendContext>); #endif #ifdef SK_METAL |