skia2/modules/sksg/include
Florin Malita eb46bd892d [sksg] Hit-testing API
Introduce RenderNode::nodeAt(const SkPoint&) as the entry point for the hit-testing API.

This is backed by a onNodeAt() virtual, which gets dispatched throughout the render DAG,
and normally stops at the first leaf Draw node in encounters.

To support the implementation, introduce a GeometryNode::contains(const SkPoint&) API.

This is backed by a onContains() virtual, overridden in each concrete geometry class.

Expose nodeAt() on sksg::Scene, and add some basic unit tests.

Change-Id: I0c8abd9d1e51ecf2d8b4dd699f325cd636e21084
Reviewed-on: https://skia-review.googlesource.com/c/191296
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
2019-02-12 15:01:05 +00:00
..
SkSGClipEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGColor.h "Modularize" SkSG 2018-05-25 17:11:52 +00:00
SkSGColorFilter.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGDraw.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGEffectNode.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGGeometryNode.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGGeometryTransform.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGGradient.h "Modularize" SkSG 2018-05-25 17:11:52 +00:00
SkSGGroup.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGImage.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGInvalidationController.h Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
SkSGMaskEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGMerge.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGNode.h [sksg] Fix image filter content inval rect tracking 2019-02-10 21:43:20 +00:00
SkSGOpacityEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGPaintNode.h [sksg] Stop caching full SkPaints in Paint nodes 2018-09-11 21:14:25 +00:00
SkSGPath.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGPlane.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGRect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGRenderEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGRenderNode.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGRoundEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGScene.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGText.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGTransform.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGTrimEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00