8#ifndef GrVkSamplerYcbcrConverison_DEFINED
9#define GrVkSamplerYcbcrConverison_DEFINED
30 Key(
VkFormat vkFormat, uint64_t externalFormat, uint32_t conversionKey) {
41 return this->fVkFormat == that.
fVkFormat &&
58#ifdef SK_TRACE_MANAGED_RESOURCES
59 void dumpInfo()
const override {
60 SkDebugf(
"GrVkSamplerYcbcrConversion: %" PRIdPTR
" (%d refs)\n", (intptr_t)fYcbcrConversion,
72 void freeGPUData()
const override;
74 VkSamplerYcbcrConversion fYcbcrConversion;
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
#define SK_BEGIN_REQUIRE_DENSE
#define SK_END_REQUIRE_DENSE
GrVkManagedResource(const GrVkGpu *gpu)
static GrVkSamplerYcbcrConversion * Create(GrVkGpu *gpu, const skgpu::VulkanYcbcrConversionInfo &)
static const Key & GetKey(const GrVkSamplerYcbcrConversion &ycbcrConversion)
VkSamplerYcbcrConversion ycbcrConversion() const
static uint32_t Hash(const Key &key)
static SK_END_REQUIRE_DENSE Key GenerateKey(const skgpu::VulkanYcbcrConversionInfo &ycbcrInfo)
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
Key(VkFormat vkFormat, uint64_t externalFormat, uint32_t conversionKey)
bool operator==(const Key &that) const