diff options
author | 2018-04-19 10:28:37 -0400 | |
---|---|---|
committer | 2018-04-19 15:02:34 +0000 | |
commit | 57bf4a3dbf01f11d3f2ec2e1952388220bef50be (patch) | |
tree | f1b314e6fcb32cf95419f592216e0e1ce90498c4 /tools/gpu/GrTest.cpp | |
parent | bc54533b2b2c6dddd182806a0dc0dd012e7139e2 (diff) |
When creating testing backendTexture take colorspace into account.
Bug: skia:
Change-Id: Ifa8dbad3eca81790648476f9a6d3fa5a088fede9
Reviewed-on: https://skia-review.googlesource.com/122341
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools/gpu/GrTest.cpp')
-rw-r--r-- | tools/gpu/GrTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 3c6046712d..311f318b9f 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -164,9 +164,10 @@ void GrGpu::Stats::dumpKeyValuePairs(SkTArray<SkString>* keys, SkTArray<double>* #endif GrBackendTexture GrGpu::createTestingOnlyBackendTexture(const void* pixels, int w, int h, - SkColorType colorType, bool isRenderTarget, + SkColorType colorType, + SkColorSpace* cs, bool isRenderTarget, GrMipMapped mipMapped) { - GrPixelConfig config = SkImageInfo2GrPixelConfig(colorType, nullptr, *this->caps()); + GrPixelConfig config = SkImageInfo2GrPixelConfig(colorType, cs, *this->caps()); if (kUnknown_GrPixelConfig == config) { return GrBackendTexture(); } |