commit | d470e1b9051e3f9c87214a5c700ce45d8fd73bbd | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Wed Sep 04 15:05:35 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Sep 06 17:55:26 2019 +0000 |
tree | e103c6c976f16612eebb1335eb04d9d470fcb5c5 | |
parent | 4655534302e6a3601c77eae70cc65b202609ab66 [diff] [blame] |
Add kRG_88_SkColorType Bug: skia:9121 Change-Id: Id2a12a5d607b84ce393d2b58233bf8e23f646059 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/235797 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Reed <reed@google.com>
diff --git a/src/gpu/GrDataUtils.cpp b/src/gpu/GrDataUtils.cpp index c772f73..91956e3 100644 --- a/src/gpu/GrDataUtils.cpp +++ b/src/gpu/GrDataUtils.cpp
@@ -203,7 +203,7 @@ break; } case kRG_88_GrPixelConfig: { - uint16_t rg88 = (r << 8) | g; + uint16_t rg88 = (g << 8) | r; sk_memset16((uint16_t*) dest, rg88, width * height); break;