Go to file
Mike Klein 04e10da836 clamp to premul when reading premul sRGB
It's pretty easy to start with sound premultiplied linear floats, pack those to sRGB encoded bytes, then read them back to linear floats and find them not quite premultiplied, with a color channel just a smidge greater than the alpha channel.  This can happen basically any time we have different transfer functions for alpha and colors... sRGB being the only one we draw into.

This is an annoying problem with no known good solution.  So apply the clamp hammer.

These new calls on SkRasterPipeline should make it impossible to get wrong.

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD

Change-Id: I4c974f4a7b151f3f684946f1e83d06b1b288fd01
Reviewed-on: https://skia-review.googlesource.com/5945
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2016-12-13 22:09:57 +00:00
animations
bench clamp to premul when reading premul sRGB 2016-12-13 22:09:57 +00:00
bin tools and docs: clean up gyp-specific things 2016-12-09 21:15:27 +00:00
debugger SkEncodeImage: no more link-time registration 2016-11-30 22:48:56 +00:00
dm Fix SkGifCodec bugs around truncated data 2016-12-12 17:59:05 +00:00
example bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
experimental Plumb dst color space in many places, rather than "mode" 2016-12-09 20:31:23 +00:00
fuzz re-land of added sk_FragCoord support to skslc 2016-12-13 14:28:53 +00:00
gm Add a deferred copy surface (take 2) 2016-12-13 22:01:58 +00:00
gn add move semantics to SkTHash* 2016-12-13 18:18:47 +00:00
gyp [SVGDom] ClipPath support 2016-12-08 15:00:18 +00:00
include Add a deferred copy surface (take 2) 2016-12-13 22:01:58 +00:00
infra Remove Nexus9 bots 2016-12-13 19:29:59 +00:00
platform_tools Don't compile the Skia tools for PDK builds. 2016-12-09 15:31:40 +00:00
resources SkGifCodec: intersect frameRect with image size 2016-12-13 14:00:17 +00:00
samplecode change SkClipOp to a class enum 2016-12-12 15:38:31 +00:00
site Fix doc typo 2016-12-13 15:43:48 +00:00
src clamp to premul when reading premul sRGB 2016-12-13 22:09:57 +00:00
tests Add a deferred copy surface (take 2) 2016-12-13 22:01:58 +00:00
third_party Do not create SkGifCodec if true size is not known 2016-12-09 15:04:06 +00:00
tools SkBitmap::setPixelRef(): less reference churn 2016-12-12 20:18:50 +00:00
.clang-format Add .clang-format file to include/gpu src/gpu 2016-12-08 15:19:15 +00:00
.gitignore Remove skia.conf from .gitignore 2016-10-26 14:50:09 +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 Remove dependency on NDK cpufeatures. 2016-12-12 16:16:44 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Run bin/fetch-gn as a gclient hook. 2016-12-09 17:06:21 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
fix-gn-sln.py VS script: Handle variation among configurations 2016-11-21 16:35:39 +00:00
gyp_skia Make Win runtime DLLs writeable before overwriting 2016-03-18 08:33:38 -07:00
gyp_skia.py
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS
PRESUBMIT.py Do not use post upload hooks for 'GOLD_TRYBOT_URL' 2016-11-23 18:34:23 +00:00
public.bzl remove old clipping flags 2016-12-13 12:58:27 +00:00
README
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
skia.gyp
whitespace.txt Updating NVIDIA Shields to "Shield Experience Upgrade 3.3" 2016-12-13 18:39:31 +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.