aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlTexture.mm
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-06-01 16:10:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-01 20:50:56 +0000
commit9363ac40b66b761634c077c50617bf6c6fb3f3ea (patch)
tree918ba8a306af73ec33071f301e9b20b45fa58edd /src/gpu/mtl/GrMtlTexture.mm
parentb54d2239d36f60087efb2611d320364d7b06374c (diff)
Remove most of the remaining conflation of colorSpace and sRGB in Ganesh
Change-Id: I22cd838f15c548b459da925cd7e7d228f95fb2e2 Reviewed-on: https://skia-review.googlesource.com/131583 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlTexture.mm')
-rw-r--r--src/gpu/mtl/GrMtlTexture.mm7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gpu/mtl/GrMtlTexture.mm b/src/gpu/mtl/GrMtlTexture.mm
index e029836b60..ac4e73579a 100644
--- a/src/gpu/mtl/GrMtlTexture.mm
+++ b/src/gpu/mtl/GrMtlTexture.mm
@@ -31,12 +31,7 @@ sk_sp<GrMtlTexture> GrMtlTexture::CreateNewTexture(GrMtlGpu* gpu, SkBudgeted bud
descriptor.cpuCacheMode = MTLCPUCacheModeWriteCombined;
// Shared is not available on MacOS. Is there a reason to want managed to allow mapping?
descriptor.storageMode = MTLStorageModePrivate;
-
- MTLTextureUsage texUsage = MTLTextureUsageShaderRead;
- if (GrMTLFormatIsSRGB(format, nullptr)) {
- texUsage |= MTLTextureUsagePixelFormatView;
- }
- descriptor.usage = texUsage;
+ descriptor.usage = MTLTextureUsageShaderRead;
id<MTLTexture> texture = [gpu->device() newTextureWithDescriptor:descriptor];