Lines Matching refs:format
297 const GrBackendFormat& format,
305 SkAssertResult(format.asDxgiFormat(&dxgiFormat));
345 const GrBackendFormat& format,
351 SkAssertResult(format.asDxgiFormat(&dxgiFormat));
354 SkDEBUGCODE(SkImage::CompressionType compression = GrBackendFormatToCompressionType(format));
414 const GrBackendFormat& format,
822 SkDEBUGCODE(DXGI_FORMAT format = d3dTex->dxgiFormat());
825 SkASSERT(!GrDxgiFormatIsCompressed(format));
827 SkASSERT(GrDxgiFormatBytesPerBlock(format) == GrColorTypeBytesPerPixel(bufferColorType));
893 SkDEBUGCODE(DXGI_FORMAT format = texResource->dxgiFormat());
894 SkASSERT(GrDxgiFormatBytesPerBlock(format) == GrColorTypeBytesPerPixel(bufferColorType));
1046 //static bool is_srgb(DXGI_FORMAT format) {
1048 // return (format == DXGI_FORMAT_R8G8B8A8_UNORM_SRGB);
1051 static bool is_bgra(DXGI_FORMAT format) {
1053 return (format == DXGI_FORMAT_B8G8R8A8_UNORM);
1062 // determine if we can read from and mipmap this format
1073 // if the format is unordered accessible and resource flag is set, use resource for uav
1081 // if the format is unordered accessible, copy to resource with same format and flag set
1083 // for the BGRA and sRGB cases, we find a suitable RGBA format to use instead
1139 // TODO: use linear vs. srgb shader based on texture format
1352 const GrBackendFormat& format,
1363 if (!format.asDxgiFormat(&dxgiFormat)) {
1495 SkISize dimensions, const GrBackendFormat& format, GrMipmapped mipMapped,
1497 return this->onCreateBackendTexture(dimensions, format, GrRenderable::kNo, mipMapped,