commit | 627d0539136ffc1ce556568a065d768d45a2f744 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Mon Jul 08 16:48:14 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jul 09 13:29:07 2019 +0000 |
tree | 5656843dc4c42e706b7184208faf83a2573b179d | |
parent | 5f1108ce4669f3eae133fe015b2b843ec1c5fbec [diff] [blame] |
Move uses of functions taking SkColorType to GrColorType versions in GrCaps. Change-Id: I4feda6277cf14be0d32a8ce22257902483d7ae1a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225734 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrBackendTextureImageGenerator.cpp b/src/gpu/GrBackendTextureImageGenerator.cpp index 6320809..c673053 100644 --- a/src/gpu/GrBackendTextureImageGenerator.cpp +++ b/src/gpu/GrBackendTextureImageGenerator.cpp
@@ -56,7 +56,8 @@ return nullptr; } backendTexture.fConfig = - context->priv().caps()->getConfigFromBackendFormat(backendFormat, colorType); + context->priv().caps()->getConfigFromBackendFormat(backendFormat, + SkColorTypeToGrColorType(colorType)); if (backendTexture.fConfig == kUnknown_GrPixelConfig) { return nullptr; }