Go to file
Mike Klein 6b059bdc40 Remove sk_linear_to_srgb_noclamp().
We've just re-noticed this can happen:
  1) we have a properly premultiplied linear color;
  2) we convert that to sRGB;
  3) we convert that back to linear;
  4) that color does not appear to be premultiplied.

Removing sk_linear_to_srgb_noclamp(), and thus always clamping to [0,1] here in linear space, does not fix this problem.  However, it does help keep it from propagating too badly.

Just double-checked: the older Sk4f pipeline (SkXfermode4f, SkPM4fPriv, etc) already use sk_linear_to_srgb() exclusively, so they're already doing this same clamp.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4314

Change-Id: I6352eb0ba969eb25674e8441e43bb51e1e1c0df3
Reviewed-on: https://skia-review.googlesource.com/4314
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2016-11-03 18:22:54 +00:00
animations
bench Remove SkAutoTDeleteArray 2016-11-02 21:30:38 +00:00
bin Build for Android from Windows, work in progress. 2016-10-26 14:37:43 +00:00
cmake Add gif sources to public.bzl. 2016-10-24 19:26:22 +00:00
debugger Remove some ancillary users of SkSurface::MakeRenderTargetDirect 2016-08-01 05:53:23 -07:00
dm Remove SkImageInfoIsGammaCorrect, etc... 2016-11-01 20:55:51 +00:00
example simplify composing raster surface into window 2016-09-29 19:58:04 +00:00
experimental GrConstColorProcessor uses 4f colors in the destination space 2016-10-26 00:48:33 +00:00
fuzz Make fuzzers use cleaner interface 2016-11-01 19:23:16 +00:00
gm Remove SkAutoTDeleteArray 2016-11-02 21:30:38 +00:00
gn Streamline skia.h construction. 2016-11-03 17:28:39 +00:00
gyp Delete qcms 2016-11-01 16:45:40 +00:00
include Centralize computation of GrRenderTarget & GrTexture VRAM consumption 2016-11-03 16:44:50 +00:00
infra Revert "Add F16, SkColorSpaceXform support to SkBmpCodec" 2016-11-03 17:27:27 +00:00
platform_tools Add mips dsp arch variants to gyp_to_android.py. 2016-09-27 07:37:20 -07:00
resources Report repetition count in SkCodec 2016-11-01 08:28:28 -07:00
samplecode add fatstroke sample 2016-11-03 02:30:52 +00:00
site Add a Windows Android NDK asset. 2016-11-02 13:16:08 +00:00
src Remove sk_linear_to_srgb_noclamp(). 2016-11-03 18:22:54 +00:00
tests Use temporary FBO for GrGLGpu::onReadPixels. 2016-11-03 18:06:37 +00:00
third_party Delete qcms 2016-11-01 16:45:40 +00:00
tools add include to remove legacy flag 2016-11-03 17:14:29 +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 Add contributor to Skia AUTHORS file 2016-09-01 07:55:43 -07:00
BUILD.gn Streamline skia.h construction. 2016-11-03 17:28:39 +00:00
codereview.settings Automatically add a docs preview link and NOTRY=true when there are only docs changes. 2015-02-26 10:16:13 -08: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 Remove SkMovie and giflib 2016-10-27 12:24:43 -07:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
fix-gn-sln.py Script to fix GN generated solutions 2016-10-31 17:01:16 +00: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
make.bat Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
make.py GYP: remove stale skia_scalar gyp variable 2015-11-10 13:25:12 -05:00
Makefile Add visualbench as valid target to Makefile 2015-12-18 08:05:06 -08:00
OWNERS
PRESUBMIT.py Split SkSL and utils apart again into .gni files. 2016-10-26 18:56:37 +00:00
public.bzl remove legacy flags from g3 2016-11-01 19:44:15 +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 Blame this CL for GTX660 changes. 2016-11-02 22:03:53 +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.