skia2/include/effects
brianosman e25d71ccbc Gradients are serialized (and can be constructed) as SkColor4f + SkColorSpace
Added gradient shader factories that take SkColor4f + SkColorSpace.
Modified Descriptor to only store SkColor4f + SkColorSpace.
Existing factories make use of helper code to convert SkColor and
forward to the new factories.

Bumped SKP version to handle new gradient serialization format.
I was toying with using half-float when serializing SkColor4f,
despite my aggressive packing of flags, this format is significantly
bigger.

Also added GM to use 4f factories. This GM should (and does)
look identical to the existing gradients GM.

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

Review-Url: https://codereview.chromium.org/2370063002
2016-09-28 11:27:28 -07:00
..
Sk1DPathEffect.h Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )" 2016-03-18 11:22:57 -07:00
Sk2DPathEffect.h Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )" 2016-03-18 11:22:57 -07:00
SkAlphaThresholdFilter.h Split AlphaThresholdEffect out into its own file 2016-04-18 07:20:05 -07:00
SkArcToPathEffect.h Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )" 2016-03-18 11:22:57 -07:00
SkArithmeticMode.h Revert "Revert "replace Arithmetic xfermode with imagefilter"" 2016-09-27 10:33:06 +00:00
SkBlurDrawLooper.h switch maskfilters to sk_sp 2016-04-04 10:02:58 -07:00
SkBlurImageFilter.h Moving SkBlurImageFilter into core 2016-08-23 11:13:14 -07:00
SkBlurMaskFilter.h Update ComputeBlurredRRectParams to compute all the parameters needed for occluded blurred rrect ninepatch draws 2016-08-16 09:30:03 -07:00
SkColorCubeFilter.h sk_sp for Ganesh. 2016-06-09 08:01:03 -07:00
SkColorFilterImageFilter.h simplify handle-affine: subclass overrides just describe their leaf behavior 2016-04-25 09:25:15 -07:00
SkColorMatrix.h Revert "Revert of impl colormatrix w/ floats (patchset #7 id:120001 of https://codereview.chromium.org/967943002/)" 2015-03-24 04:13:45 -07:00
SkColorMatrixFilter.h Reland of [2] of "switch colorfilters to sk_sp (patchset #11 id:200001 of https://codereview.chromium.o… (patchset #1 id:1 of https://codereview.chromium.org/1821103004/ ) 2016-03-22 10:17:23 -07:00
SkComposeImageFilter.h simplify handle-affine: subclass overrides just describe their leaf behavior 2016-04-25 09:25:15 -07:00
SkCornerPathEffect.h Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )" 2016-03-18 11:22:57 -07:00
SkDashPathEffect.h Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )" 2016-03-18 11:22:57 -07:00
SkDiscretePathEffect.h Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )" 2016-03-18 11:22:57 -07:00
SkDisplacementMapEffect.h Update DisplacementMapEffect to sk_sp 2016-04-15 07:17:36 -07:00
SkDropShadowImageFilter.h Outline SkImageFilter Make methods 2016-04-17 14:27:05 -07:00
SkEmbossMaskFilter.h switch maskfilters to sk_sp 2016-04-04 10:02:58 -07:00
SkGammaColorFilter.h Add SkGammaColorFilter 2016-07-28 09:20:33 -07:00
SkGaussianEdgeShader.h Remove old SkGaussianEdgeShader code 2016-09-16 09:13:15 -07:00
SkGradientShader.h Gradients are serialized (and can be constructed) as SkColor4f + SkColorSpace 2016-09-28 11:27:28 -07:00
SkImageSource.h Outline SkImageFilter Make methods 2016-04-17 14:27:05 -07:00
SkLayerDrawLooper.h change flattenable factory to return sk_sp 2016-04-03 09:11:13 -07:00
SkLayerRasterizer.h guard rasterizer and drawlooper setters 2016-03-21 13:25:16 -07:00
SkLightingImageFilter.h Fix roll bot's win gn build 2016-04-10 14:04:19 -07:00
SkLumaColorFilter.h sk_sp for Ganesh. 2016-06-09 08:01:03 -07:00
SkMagnifierImageFilter.h Switch SkMagnifierImageFilter over to new onFilterImage interface 2016-04-14 07:54:04 -07:00
SkMatrixConvolutionImageFilter.h Image filters: remove SkBitmap-based cache. 2016-04-21 06:49:15 -07:00
SkMergeImageFilter.h simplify handle-affine: subclass overrides just describe their leaf behavior 2016-04-25 09:25:15 -07:00
SkMorphologyImageFilter.h Outline SkImageFilter Make methods 2016-04-17 14:27:05 -07:00
SkOffsetImageFilter.h Outline SkImageFilter Make methods 2016-04-17 14:27:05 -07:00
SkPaintFlagsDrawFilter.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkPaintImageFilter.h Outline SkImageFilter Make methods 2016-04-17 14:27:05 -07:00
SkPerlinNoiseShader.h Bundle SkShader::asFragmentProcessor arguments in a struct 2016-07-22 11:04:53 -07:00
SkPictureImageFilter.h Outline SkImageFilter Make methods 2016-04-17 14:27:05 -07:00
SkRRectsGaussianEdgeShader.h Add staging for removal of SkRRectsGaussianEdgeShader::Make (for Android) 2016-09-16 06:17:45 -07:00
SkTableColorFilter.h Reland of [2] of "switch colorfilters to sk_sp (patchset #11 id:200001 of https://codereview.chromium.o… (patchset #1 id:1 of https://codereview.chromium.org/1821103004/ ) 2016-03-22 10:17:23 -07:00
SkTableMaskFilter.h Revert of remove unused TableMaskFilter (patchset #1 id:1 of https://codereview.chromium.org/2156463002/ ) 2016-07-18 08:18:51 -07:00
SkTileImageFilter.h Update TileImageFilter to sk_sp 2016-04-15 07:57:40 -07:00
SkXfermodeImageFilter.h Revert "Revert "replace Arithmetic xfermode with imagefilter"" 2016-09-27 10:33:06 +00:00