Go to file
Nigel Tao b7a1b5189d SkWuffsCodec: zero dst buffer before decodeFrame
https://skia-review.googlesource.com/c/189866 "SkWuffsCodec: Initialize
memory when incomplete" made some buffer zero'ing conditional on a
frame's dirty rectangle, which required moving the this->decodeFrame
call earlier in onIncrementalDecode, since we can't know the dirty
rectangle until after decodeFrame is called.

However, moving that earlier meant that it was now earlier than the
"sk_bzero(pixels.ptr + etc, etc)" call that zero-initialized the
destination buffer that decodeFrame writes to. The actual pixel indexes
that decodeFrame decodes are now overwritten by zeroes.

That prior commit fixed the fuzzer-discovered bug, in that it no longer
swizzles from uninitialized memory. Unfortunately, it's now often
swizzling from all-zeroed memory, so that the decoding is incorrect.

This commit moves the zero-ing to onStartIncrementalDecode, even
earlier. The "dm --match Gif" tests are happy again.

Bug: skia:8235
Change-Id: Iae993b7d9f45e1b375ed99f6cc86536091a92eba
Reviewed-on: https://skia-review.googlesource.com/c/190941
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2019-02-12 03:48:10 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench bench: Fix a couple presumed copy/paste errors 2019-02-09 12:34:17 +00:00
bin bin/sysopen: script moved to bin 2018-12-06 14:21:33 +00:00
dm Add a mechanism for GMs to silently exclude themselves from Gold 2019-02-08 00:05:15 +00:00
docker CMake: distinguish between file and dir copies by presence of '.' in src path 2019-02-01 18:58:46 +00:00
docs move SkMetaData into src 2019-02-07 00:26:49 +00:00
example drawText Cleanup, part 5 2019-01-09 16:10:30 +00:00
experimental [canvaskit] Add SkShaper to build list 2019-01-23 17:04:11 +00:00
fuzz Rename GrContext::contextPriv to priv 2019-02-04 22:13:14 +00:00
gm Implement drawImage in terms of drawImageRect 2019-02-11 17:02:00 +00:00
gn turn on -Wextra-semi-stmt on Windows 2019-02-11 16:50:09 +00:00
include Use clang versions of SK_RESTRICT and SK_WARN_UNUSED_RESULT on Windows 2019-02-11 20:38:33 +00:00
infra Roll recipe dependencies (trivial). 2019-02-11 21:19:53 +00:00
modules Fix cluster reporting from shaper. 2019-02-11 21:59:33 +00:00
platform_tools Add support for Windows to the gradle builds 2019-01-08 20:01:29 +00:00
resources [skottie] Add a custom property manager util class 2018-11-28 17:12:07 +00:00
samplecode Fix cluster reporting from shaper. 2019-02-11 21:59:33 +00:00
site docs - Trim down infra trooper docs. 2019-02-08 15:12:26 +00:00
src SkWuffsCodec: zero dst buffer before decodeFrame 2019-02-12 03:48:10 +00:00
tests Add GrContext::resetGLTextureBindings(). 2019-02-08 21:26:51 +00:00
third_party update hello-opencl 2019-02-11 18:47:32 +00:00
tools Fix cluster reporting from shaper. 2019-02-11 21:59:33 +00:00
.clang-format .clang-format: Don't force break after > in template declarations 2018-12-21 14:20:57 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +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 Update BUILDCONFIG.gn to support Visual Studio 2017 Enterprise 2019-01-09 14:27:34 +00:00
BUILD.gn update hello-opencl 2019-02-11 18:47:32 +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 64c44b0c53c4..f96948857780 (3 commits) 2019-02-11 21:57:54 +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 [presubmit] Remove pylint check 2019-01-14 13:47:51 +00:00
public.bzl Remove all references to jsoncpp (build scripts, DEPS, etc) 2019-02-06 15:15:52 +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.