1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef skgpu_graphite_VulkanGraphiteUtils_DEFINED 9 #define skgpu_graphite_VulkanGraphiteUtils_DEFINED 10 11 #include <memory> 12 13 #include "include/private/base/SkAPI.h" 14 15 namespace skgpu { struct VulkanBackendContext; } 16 17 namespace skgpu::graphite { 18 19 class Context; 20 struct ContextOptions; 21 22 namespace ContextFactory { 23 SK_API std::unique_ptr<Context> MakeVulkan(const VulkanBackendContext&, const ContextOptions&); 24 } // namespace ContextFactory 25 26 } // namespace skgpu::graphite 27 28 #endif // skgpu_graphite_VulkanGraphiteUtils_DEFINED 29