Go to file
Leon Scroggins III 42bae8faa4 Fix webp bug compositing alpha frames on opaque
select_xform_alpha is used to determine how the color transform should
handle alpha values. In a similar way, we're using it here to determine
whether to premultiply pixels before blending them. In this case, the
source is unpremul, so we should be premultiplying them, but since we
are compositing on an opaque frame, the dst must be opaque and
select_xform_alpha returns kOpaque. As a result, we do not premultiply
(and even hint to the transform that the pixels are opaque). Since this
all applies to the pre-blended pixels, we should not care that the dst
is opaque. So drop the call to select_xform_alpha and just use the alpha
type of the source. This matches the comment on the lines above.

Add the test image that failed (https://mathiasbynens.be/demo/animated-webp)

Change-Id: Ibd13c1f067bdf369ce1c882d4f6057aadccfa313
Reviewed-on: https://skia-review.googlesource.com/71560
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-11-14 21:33:14 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add clipping options to path text bench and samples 2017-11-07 01:51:31 +00:00
bin bin/try: Add interactive mode 2017-10-18 17:16:16 +00:00
debugger Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
dm Add SkColorSpace_Base::makeColorSpin 2017-11-14 16:33:34 +00:00
docs Update doc and example for SkPaint::FontMetrics. 2017-11-09 18:20:14 +00:00
example Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
experimental [v8-platform] Store the platform in a unique_ptr 2017-11-09 17:19:14 +00:00
fuzz Revert "Revert "Remove MakeForLocalSpace since picture image is sufficient"" 2017-11-09 21:50:27 +00:00
gm remove platform_font_name() 2017-11-14 18:45:04 +00:00
gn sksl enum support 2017-11-13 14:36:40 +00:00
include Move static helper functions for GrPixelConfig to private. 2017-11-14 17:14:34 +00:00
infra Fix webp bug compositing alpha frames on opaque 2017-11-14 21:33:14 +00:00
platform_tools platform_tools/android/bin/android_gdbserver: fix error 2017-10-13 16:06:28 +00:00
resources Extract Android FontMgr part of Typeface test. 2017-11-13 17:00:31 +00:00
samplecode Alloc glyph image correctly for SkMask::k3D_Format. 2017-11-14 17:38:34 +00:00
site Update doc and example for SkPaint::FontMetrics. 2017-11-09 18:20:14 +00:00
src Fix webp bug compositing alpha frames on opaque 2017-11-14 21:33:14 +00:00
tests Patch up ref counting of proxies (take 2) 2017-11-13 18:15:10 +00:00
third_party Suppress warning 4577 (noexcept used with no exception handling mechanism specified) 2017-11-12 19:38:16 +00:00
tools Viewer: backspace jumps directly to the slide picker 2017-11-14 20:55:04 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix use of uninitialized flag in SkCodec 2017-10-09 19:17:05 +00:00
BUILD.gn streamline GDI bots 2017-11-13 18:47:11 +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 skia/third_party/externals/angle2/ e8afa9025..7caa80e75 (2 commits) 2017-11-14 21:21:14 +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
PRESUBMIT.py Add in test_filter to build configuration 2017-10-16 11:09:49 +00:00
public.bzl Drop support for OSMesa in test tools and remove build bot 2017-11-13 16:20:10 +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 Revert "Whitespace change to test Android autoroller" 2017-09-07 15:25:02 +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.