65f4aeae92
Bug: chromium:897031 Bug: chromium:896776 Prior to this fix, we would treat the output from such a JPEG as if it were a 16 bit per component RGB PNG. We hit an assert in debug, but in release mode we do the wrong thing. Split up SkSwizzler::CreateSwizzler into two public factories (and a private one) based on whether format conversion is desired. Without format conversion, we may have already converted (as is the case with this JPEG), so the SkEncodedInfo::Color is not relevant. That flavor of the factory just needs to know the bytes per pixel, so provide that info instead. Add a test file to Google Storage: apron.jpg, from Chromium's benchmark files. Change-Id: If1337d58a508466299f9e4666778727c6cdc879a Reviewed-on: https://skia-review.googlesource.com/c/164619 Auto-Submit: Leon Scroggins <scroggo@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
Doxyfile | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.