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/GrContextThreadSafeProxy.cpp b/src/gpu/GrContextThreadSafeProxy.cpp index 920d6fb..f01e8d6 100644 --- a/src/gpu/GrContextThreadSafeProxy.cpp +++ b/src/gpu/GrContextThreadSafeProxy.cpp
@@ -55,7 +55,7 @@ GrColorType grColorType = SkColorTypeToGrColorType(ii.colorType()); - if (!this->caps()->areColorTypeAndFormatCompatible(ii.colorType(), backendFormat)) { + if (!this->caps()->areColorTypeAndFormatCompatible(grColorType, backendFormat)) { return SkSurfaceCharacterization(); // return an invalid characterization }