aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlUtil.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/mtl/GrMtlUtil.mm')
-rw-r--r--src/gpu/mtl/GrMtlUtil.mm20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/gpu/mtl/GrMtlUtil.mm b/src/gpu/mtl/GrMtlUtil.mm
index e8a736c8f1..3c5df209c4 100644
--- a/src/gpu/mtl/GrMtlUtil.mm
+++ b/src/gpu/mtl/GrMtlUtil.mm
@@ -113,23 +113,3 @@ GrPixelConfig GrMTLFormatToPixelConfig(MTLPixelFormat format) {
return kUnknown_GrPixelConfig;
}
}
-
-bool GrMTLFormatIsSRGB(MTLPixelFormat format, MTLPixelFormat* linearFormat) {
- MTLPixelFormat linearFmt = format;
- switch (format) {
- case MTLPixelFormatRGBA8Unorm_sRGB:
- linearFmt = MTLPixelFormatRGBA8Unorm;
- break;
- case MTLPixelFormatBGRA8Unorm_sRGB:
- linearFmt = MTLPixelFormatBGRA8Unorm;
- break;
- default:
- break;
- }
-
- if (linearFormat) {
- *linearFormat = linearFmt;
- }
- return (linearFmt != format);
-}
-