skia2/tools/viewer
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
..
BisectSlide.cpp Stop using SkTSwap. 2018-06-19 02:06:31 +00:00
BisectSlide.h test,tools: whitespace changes for clang-format 2018-09-19 17:50:51 +00:00
GMSlide.cpp SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
GMSlide.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
ImageSlide.cpp Add onBackendCreated callback to Viewer 2017-02-24 22:37:34 +00:00
ImageSlide.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
ImGuiLayer.cpp Reduce usage of SkCanvas::flush 2019-03-04 22:09:39 +00:00
ImGuiLayer.h Reduce usage of SkCanvas::flush 2019-03-04 22:09:39 +00:00
NIMASlide.cpp SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
NIMASlide.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
ParticlesSlide.cpp SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
ParticlesSlide.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
SampleSlide.cpp de-common the rest of the flags 2019-03-25 17:39:58 +00:00
SampleSlide.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
SkottieSlide.cpp SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
SkottieSlide.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
SKPSlide.cpp de-common the rest of the flags 2019-03-25 17:39:58 +00:00
SKPSlide.h Add samples to Viewer. 2016-06-16 09:52:35 -07:00
Slide.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
SlideDir.cpp [sksg] Refactor gradient implementation 2019-04-01 18:43:43 +00:00
SlideDir.h SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
StatsLayer.cpp In viewer measure and show full frame times. 2019-03-21 19:30:06 +00:00
StatsLayer.h In viewer measure and show full frame times. 2019-03-21 19:30:06 +00:00
SvgSlide.cpp Fix !defined(SK_XML) builds 2018-08-01 14:28:56 +00:00
SvgSlide.h Viewer SVG support 2018-04-05 16:34:22 +00:00
TouchGesture.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
TouchGesture.h Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
Viewer.cpp Add support for vsync on android viewer. 2019-03-27 20:57:01 +00:00
Viewer.h delete DAA 2019-03-22 15:44:03 +00:00