aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/SkSGGroup.h
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-01-04 19:21:58 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-05 00:42:14 +0000
commit0ebf4192f18778df844767c31dab8d502d78684c (patch)
tree612e1551a7a521725d3c2de82dbc2168a0499443 /experimental/sksg/SkSGGroup.h
parent54f3cda30cc6457793b3b5b0aed34c9b21aa49a4 (diff)
[sksg] More inval fiddling
Node subclasses can now control whether their bounds (changes) contribute to damage. Tristate: * Default: The node bounds contribute to damage if the node itself was invalidated, observing hasSelfInval(). This is the default behavior. * ForceSelf: The node bounds contribute to damage, regardless of hasSelfInval(). Used for domain-boundary nodes (e.g. Draw), which gate blocked fragments (e.g. geometry, paint nodes). * BlockSelf: The node bounds do not contribute to damage, regardless of hasSelfInval(). Used for nodes which do not contribute damage directly (e.g. paints, geometry). TBR= Change-Id: I7c941c7ea12e14b008d846ec13108e66e34dbc73 Reviewed-on: https://skia-review.googlesource.com/91104 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/sksg/SkSGGroup.h')
-rw-r--r--experimental/sksg/SkSGGroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/sksg/SkSGGroup.h b/experimental/sksg/SkSGGroup.h
index f9126ea37f..3d8b1ad3c4 100644
--- a/experimental/sksg/SkSGGroup.h
+++ b/experimental/sksg/SkSGGroup.h
@@ -31,7 +31,7 @@ protected:
~Group() override;
void onRender(SkCanvas*) const override;
- SkRect onRevalidate(InvalidationController*, const SkMatrix&) override;
+ RevalidationResult onRevalidate(InvalidationController*, const SkMatrix&) override;
private:
SkTArray<sk_sp<RenderNode>, true> fChildren;