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
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
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn
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
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll skia/third_party/externals/angle2/ e8afa9025..7caa80e75 (2 commits) 2017-11-14 21:21:14 +00:00
Doxyfile
LICENSE
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
README.chromium
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.