8#ifndef VkYcbcrSamplerHelper_DEFINED
9#define VkYcbcrSamplerHelper_DEFINED
15#if defined(SK_GRAPHITE)
20class VulkanSharedContext;
34class VkYcbcrSamplerHelper {
36#if defined(SK_GRAPHITE)
38 VkPhysicalDevice physDev)
48 bool createBackendTexture(uint32_t
width, uint32_t
height);
55 ~VkYcbcrSamplerHelper();
57 bool isYCbCrSupported();
59 bool createGrBackendTexture(uint32_t
width, uint32_t
height);
62 static std::pair<int, int> GetExpectedUV(
int x,
int y,
int width,
int height);
65#if defined(SK_GRAPHITE)
69 VkPhysicalDevice fPhysDev;
GrDirectContext * fDContext