diff options
author | Florin Malita <fmalita@chromium.org> | 2017-12-19 12:21:02 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-21 20:56:32 +0000 |
commit | 4aa4441186b06565a597ec4a9baac5a972fddb51 (patch) | |
tree | 8ae7cb5e988f3b89dfea886e118931e78013ff63 /gn/samples.gni | |
parent | f059e7ca181ad20fa94edea65c8bfd839eceab46 (diff) |
Initial scene graph (SkSG)
Sketching a thin (as in close-to-skia-semantics) scene graph API, focused on
external animation, inval tracking and minimal repaint.
Only a few concrete classes/features so far:
* Rect/Color/Transform/Group
* basic inval tracking
* a trivial animated sample with inval visualization
Pretty much everything (especially naming) is volatile, so treat accordingly.
The interesting bits to review are likely in Node.{h,cpp} for inval and
SampleSGInval.cpp for usage.
Initial class hierarchy:
* Node: invalidation/ancestors tracking
|
-- * RenderNode: onRender(SkCanvas)
| |
| -- * Draw (concrete): rendering a [geometry, paint] tuple
| |
| -- * Group (concrete): grouping multiple RenderNodes
| |
| -- * EffectNode: single-descendant effect wrapper
| |
| -- * Transform (concrete): transform effect
|
-- * PaintNode: onMakePaint()
| |
| -- * Color (concrete): SkColor paint wrapper
|
-- * GeometryNode: onComputeBounds(), onDraw(SkCanvas, SkPaint)
|
-- * Rect (concrete): SkRect wrapper
TBR=
Change-Id: Iacf9b773c181a7582ecd31ee968562f179d1aa1b
Reviewed-on: https://skia-review.googlesource.com/85502
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'gn/samples.gni')
-rw-r--r-- | gn/samples.gni | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/samples.gni b/gn/samples.gni index 6bef4af8fb..fe2ab4eba7 100644 --- a/gn/samples.gni +++ b/gn/samples.gni @@ -87,6 +87,7 @@ samples_sources = [ "$_samplecode/SampleStrokePath.cpp", "$_samplecode/SampleStrokeRect.cpp", "$_samplecode/SampleSubpixelTranslate.cpp", + "$_samplecode/SampleSGInval.cpp", "$_samplecode/SampleSVGFile.cpp", "$_samplecode/SampleSVGPong.cpp", "$_samplecode/SampleText.cpp", |