commit | 55091020435c876d12f2d74697b21edbc98e13fa | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Mon Jun 17 14:08:58 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Jun 17 19:31:57 2019 +0000 |
tree | 6a55d8d26dba348446c78d9173b1f443b7d6b957 | |
parent | b97824d4d1d1b1ae3ab87ec5c122f6da855923ca [diff] |
Add function to GrDataUtils to handle color conversions. Like SkConvertPixels but knows about all GrColorTypes, origin, and can apply an arbitrary GrSwizzle. Use in GrSurfaceContext read/write pixels methods. Add support for '0' to GrSwizzle. Change-Id: Ib9dd215fcb0ee8b33c4020893c22b4ab7ce1f40b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/220761 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>