Go to file
Leon Scroggins III 65f4aeae92 Fix bug decoding JCS_RGB jpeg files
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>
2018-10-26 16:40:16 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench GrColor4s, a fixed-point signed short type for wide color vertices 2018-10-24 18:21:16 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm remove src/jumper 2018-10-24 11:15:58 +00:00
docker Use new build targets in continuous build of skottie and debugger. 2018-09-20 15:26:18 +00:00
docs fix examples with vertical text 2018-10-25 12:20:31 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental [canvaskit] Remove ReadBuffer 2018-10-25 19:17:59 +00:00
fuzz remove (unused) vertical-text 2018-10-23 16:33:02 +00:00
gm use utils for deprecated TextAlign 2018-10-26 14:35:28 +00:00
gn Extract per-edge quad vertex tesselation code into reusable interface 2018-10-26 16:31:56 +00:00
include ccpr: Unregister path listeners when their cache entries are evicted 2018-10-26 16:07:55 +00:00
infra Fix bug decoding JCS_RGB jpeg files 2018-10-26 16:40:16 +00:00
modules only build non-prod skottie/sksg code in our tree 2018-10-18 17:50:51 +00:00
platform_tools SkQP: rely on TestRunner for logging 2018-10-19 18:41:47 +00:00
resources Test a GIF with an out of range transparent index 2018-10-12 14:20:02 +00:00
samplecode use utils for deprecated TextAlign 2018-10-26 14:35:28 +00:00
site Update markdown files 2018-10-26 05:43:17 +00:00
src Fix bug decoding JCS_RGB jpeg files 2018-10-26 16:40:16 +00:00
tests add a test for extend range sRGB roundtripping 2018-10-26 16:17:16 +00:00
third_party Reland "New GIF codec; new third_party/wuffs dep" 2018-10-26 13:53:04 +00:00
tools Align trace event allocations to avoid alignment issues on 32-bit ARM 2018-10-24 17:52:08 +00:00
.clang-format clean up flattenable macro cruft 2018-10-19 16:18:32 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn Reland "New GIF codec; new third_party/wuffs dep" 2018-10-26 13:53:04 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/swiftshader fde88d96a58b..38ff83043a35 (1 commits) 2018-10-26 15:18:16 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Add new autoroll service accounts to AUTHORS check bypass 2018-09-07 18:49:23 +00:00
public.bzl Fix Bazel formatting. 2018-10-26 16:36:26 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.