skia2/modules
Florin Malita fb4bce8322 [sksg] Refactor gradient implementation
Currently, gradients are PaintNode subclasses - which limits their
applicability to leaf DAG nodes.

In order to support generalized gradient/shader effects:

  * introduce a new Shader base class
  * refactor gradients as Shader subclasses
  * introduce ShaderPaint (to support current Gradient-as-paint use)
  * introduce ShaderEffect (to support future Gradient-as-effect use)

Tangentially:

  * rename SkSGPaintNode.h -> SkSGPaint.h
  * consolidate sksg::Color into SkSGPaint.h

Change-Id: I94ba949f4504c09cfde4a4f030d927411fdd66a2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/205263
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2019-04-01 18:43:43 +00:00
..
canvaskit Support WebGL 1.0 with caps 2019-03-28 17:21:23 +00:00
particles Particles: Store stable randoms after spawn affectors 2019-03-08 19:05:37 +00:00
pathkit [pathkit/canvaskit] Address race when uploading results 2019-03-12 21:45:04 +00:00
skottie [sksg] Refactor gradient implementation 2019-04-01 18:43:43 +00:00
sksg [sksg] Refactor gradient implementation 2019-04-01 18:43:43 +00:00
skshaper Replace SkSpan with Range in shaper reporting. 2019-03-25 20:26:50 +00:00