Lines Matching refs:format
123 static bool isBGRA8(const GrBackendFormat& format) {
124 switch (format.backend()) {
127 return format.asGLFormat() == GrGLFormat::kBGRA8;
134 format.asVkFormat(&vkFormat);
142 return GrMtlFormatIsBGRA8(format.asMtlFormat());
155 format.asDawnFormat(&dawnFormat);
161 SkImage::CompressionType compression = format.asMockCompressionType();
166 return format.asMockColorType() == GrColorType::kBGRA_8888;
172 static bool isRGB(const GrBackendFormat& format) {
173 switch (format.backend()) {
176 return format.asGLFormat() == GrGLFormat::kRGB8;
183 format.asVkFormat(&vkFormat);
250 // readPixels is busted for the RGB backend format (skbug.com/8862)
375 // readPixels is busted for the RGB backend format (skbug.com/8862)
623 // Ganesh can't perform the blends correctly when rendering this format
641 GrBackendFormat format = dContext->defaultBackendFormat(colorType,
643 SkASSERT(format == mbet->texture().getBackendFormat());
670 GrBackendFormat format = dContext->defaultBackendFormat(colorType,
672 SkASSERT(format == mbet->texture().getBackendFormat());
699 auto format = dContext->defaultBackendFormat(srcData[0].colorType(),
701 SkASSERT(format == mbet->texture().getBackendFormat());
805 GrBackendFormat format = GrBackendFormat::MakeGL(combo.fFormat, target);
806 if (!glCaps->isFormatTexturable(format, textureType)) {
828 if (!glCaps->isFormatAsColorTypeRenderable(combo.fColorType, format)) {
834 auto uninitCreateMtd = [format](GrDirectContext* dContext,
839 format,
872 auto createWithColorMtd = [format, swizzle](GrDirectContext* dContext,
879 format,
917 // In this configuration (i.e., an RGB_888x colortype with an RGBA8 backing format),
935 // In this config (i.e., a Gray8 color type with an R8 backing format), there is nothing
958 GrBackendFormat format = GrBackendFormat::MakeVk(combo.fFormat);
968 // We must also check whether we allow rendering to the format using the
977 auto uninitCreateMtd = [format](GrDirectContext* dContext,
982 format,
1027 auto createWithColorMtd = [format, swizzle](GrDirectContext* dContext,
1034 format,