Go to file
Leon Scroggins III 428865794b Set fOptions in SkCodec::getPixels
Subclasses sometimes try to read fOptions, but it used to not get set
for full decodes. As a result, they might be reading the Options from a
previous scanline/incremental decode. In addition to being wrong, this
is bad in the case of an fSubset pointing to a rectangle that no longer
exists.

So set fOptions in getPixels, prior to any attempts to read it by sub-
classes. Use a different workaround for the webp/incomplete bug. Set
fSubset to null prior to calling fillIncompleteImage. It can only be
non-null for webp, and in that case we do not want the fill call to
be using the subset width.

Modify the Codec_jpeg_rewind test to use an incomplete image, so that
it will also test fillIncompleteImage.

DM tests of inc0.webp and inc1.webp will verify that the incomplete
bug has not resurfaced.

BUG=skia:5772

Change-Id: If5e1e3c9a7f337183783299c0a9e58dcbbc84119
Reviewed-on: https://skia-review.googlesource.com/7682
Commit-Queue: Matt Sarett <msarett@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
2017-01-27 18:50:37 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Keep valgrind happen by purging caches. 2017-01-26 22:38:50 +00:00
bin bin/sync : call tools/git-sync-deps now 2017-01-27 16:03:35 +00:00
debugger Get Debugger app compiling again 2017-01-06 16:18:27 +00:00
dm Keep valgrind happen by purging caches. 2017-01-26 22:38:50 +00:00
example bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
experimental Revert "Revert "Start of rewrite of GrFragmentProcessor optimizations."" 2017-01-27 16:43:38 +00:00
fuzz Remove SkColorCubeFilter. It is unused. 2017-01-21 15:09:31 +00:00
gm Fix gradients gm 2017-01-26 20:56:27 +00:00
gn Consolidate read/write-Pixels testing code - take 2 2017-01-27 15:52:20 +00:00
gyp rm -r {include,src}/animator 2017-01-12 19:52:18 +00:00
include Add utilities to create GrSurfaceProxy & GrSurfaceContext from backend descs 2017-01-27 17:00:38 +00:00
infra Roll recipe DEPS 2017-01-25 16:03:50 +00:00
platform_tools Add support for 64-bit devices when using gdb on Android 2017-01-06 19:57:05 +00:00
resources Use fixed size buffer for RLE bmps 2017-01-19 14:21:02 +00:00
samplecode Move SkGammaColorFilter to tools, limit to sRGB 2017-01-26 15:27:49 +00:00
site bin/sync : call tools/git-sync-deps now 2017-01-27 16:03:35 +00:00
src Set fOptions in SkCodec::getPixels 2017-01-27 18:50:37 +00:00
tests Set fOptions in SkCodec::getPixels 2017-01-27 18:50:37 +00:00
third_party Revert "Update libwebp to 0.6.0-pre" 2017-01-23 20:47:46 +00:00
tools tools/git-sync-deps improvements 2017-01-27 17:39:12 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore drop depot_tools dependency in bin/fetch-gn 2017-01-12 19:54:50 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fix typo in GrGLCaps 2016-11-18 23:20:51 +00:00
BUILD.gn Fix Android roll 2017-01-13 21:17:05 +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 Revert "Update libwebp to 0.6.0-pre" 2017-01-23 20:47:46 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
gyp_skia Make Win runtime DLLs writeable before overwriting 2016-03-18 08:33:38 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py Add hcm@ to public API owners 2017-01-19 17:36:06 +00:00
public.bzl Reland "remove clipbounds flag" 2017-01-26 21:40:12 +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
skia.gyp Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
whitespace.txt Marker for IntelIris540 driver change. 2017-01-20 14:30:51 +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.