skia2/src
Mike Klein dadac55c7f simplify matrix color filter clamps
We must keep alpha sanely [0,1].

This makes the existing clamps unconditional, which seems the most
compatible with our clients' expectations, and which makes the CPU
backend agree with the GPU backend.

I'm not sure I've got a more principled reason to clamp than those.

Clamping means we can't really concatenate these into a new matrix
filter ever, deleting a bunch of code supporting that and a few
unit tests that thought we could.

(Good candidate for a user-defined effect with user-defined clamping.)

Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Change-Id: Ib92a4c882320e65ae705833bf623e4e961bc6651
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/200394
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2019-03-12 20:29:11 +00:00
..
android Allow setting an SkColorSpace on SkAnimatedImage 2019-02-22 18:58:05 +00:00
atlastext Make mixed samples detection automatic 2019-03-05 21:27:15 +00:00
c expand imageinfo in C api, start on colorspace 2018-09-28 17:52:59 +00:00
codec Check that we do not #define WUFFS_IMPLEMENTATION 2019-03-11 13:01:10 +00:00
compute skc: Avoid undefined variable modification 2019-02-11 17:53:02 +00:00
core simplify matrix color filter clamps 2019-03-12 20:29:11 +00:00
effects Remove SkToSRGBColorFilter (now unused) 2019-03-12 13:19:28 +00:00
fonts move Sk{Test,Random}ScalerContext to tools 2017-11-10 17:02:20 +00:00
gpu Always explicitly allocate except in Android Framework (take 3) 2019-03-12 19:37:21 +00:00
image Revert "Reintroduce deinstantiate lazy proxy types and use for promise images." 2019-03-12 13:37:21 +00:00
images add kRGBA_F16Norm_SkColorType 2019-03-04 21:49:07 +00:00
lazy begin cleanup of malloc porting layer 2018-01-05 21:29:35 +00:00
opts Initial add SkMixers 2019-03-12 20:27:12 +00:00
pathops SkPathOpsTSect: Avoid null dereference in asserts 2019-02-09 12:39:57 +00:00
pdf SkPDF: Add experimental Harfbuzz font subsetter 2019-03-06 16:30:56 +00:00
ports Initial add SkMixers 2019-03-12 20:27:12 +00:00
sfnt Improve name table handling. 2018-08-20 20:39:54 +00:00
shaders Initial add SkMixers 2019-03-12 20:27:12 +00:00
sksl added SK_API to SkSK::Compiler 2019-03-12 20:16:51 +00:00
svg [SVGCanvas] Clean up public factories 2019-02-14 19:17:35 +00:00
utils Fix issue with offsetting polygon by 0 distance. 2019-03-05 14:06:02 +00:00
xml Fix occurrences of "-Wextra-semi-stmt" 2018-11-30 23:23:09 +00:00
xps Reduce usage of SkCanvas::flush 2019-03-04 22:09:39 +00:00