/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_VulkanInterface_DEFINED #define skgpu_VulkanInterface_DEFINED #include "include/core/SkRefCnt.h" #include "include/gpu/vk/VulkanTypes.h" #include "include/private/gpu/vk/SkiaVulkan.h" #include <cstdint> namespace skgpu { class VulkanExtensions; //////////////////////////////////////////////////////////////////////////////// /** * Skia Vulkan uses the following interface to make all calls into Vulkan. When a Ganesh or Graphite * Context is created it is given a VulkanInterface. All functions that should be available based on * the Vulkan's version must be non-NULL or Context creation will fail. This can be tested with the * validate() method. */ struct VulkanInterface : public SkRefCnt { … }; } // namespace skgpu #endif // skgpu_VulkanInterface_DEFINED