Lines Matching defs:info
13 GrVkGpu* gpu, const GrVkYcbcrConversionInfo& info) {
19 const VkFormatFeatureFlags& featureFlags = info.fFormatFeatures;
20 if (info.fXChromaOffset == VK_CHROMA_LOCATION_MIDPOINT ||
21 info.fYChromaOffset == VK_CHROMA_LOCATION_MIDPOINT) {
24 if (info.fXChromaOffset == VK_CHROMA_LOCATION_COSITED_EVEN ||
25 info.fYChromaOffset == VK_CHROMA_LOCATION_COSITED_EVEN) {
28 if (info.fChromaFilter == VK_FILTER_LINEAR) {
31 if (info.fForceExplicitReconstruction) {
41 ycbcrCreateInfo.format = info.fFormat;
42 ycbcrCreateInfo.ycbcrModel = info.fYcbcrModel;
43 ycbcrCreateInfo.ycbcrRange = info.fYcbcrRange;
49 ycbcrCreateInfo.xChromaOffset = info.fXChromaOffset;
50 ycbcrCreateInfo.yChromaOffset = info.fYChromaOffset;
51 ycbcrCreateInfo.chromaFilter = info.fChromaFilter;
52 ycbcrCreateInfo.forceExplicitReconstruction = info.fForceExplicitReconstruction;
56 if (info.fExternalFormat) {
58 SkASSERT(info.fFormat == VK_FORMAT_UNDEFINED);
61 externalFormat.externalFormat = info.fExternalFormat;
66 if (info.fExternalFormat) {
68 SkASSERT(info.fFormat == VK_FORMAT_UNDEFINED);
71 externalFormat.externalFormat = info.fExternalFormat;
76 SkASSERT(!info.fExternalFormat);
79 if (!info.fExternalFormat) {
80 SkASSERT(info.fFormat != VK_FORMAT_UNDEFINED);
91 return new GrVkSamplerYcbcrConversion(gpu, conversion, GenerateKey(info));