diff options
Diffstat (limited to 'experimental/sksg/SkSGNode.h')
-rw-r--r-- | experimental/sksg/SkSGNode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/experimental/sksg/SkSGNode.h b/experimental/sksg/SkSGNode.h index 4e1e7b0d2a..1ed2a782d2 100644 --- a/experimental/sksg/SkSGNode.h +++ b/experimental/sksg/SkSGNode.h @@ -44,6 +44,11 @@ protected: explicit Node(uint32_t invalTraits); ~Node() override; + const SkRect& bounds() const { + SkASSERT(!this->hasInval()); + return fBounds; + } + // Tag this node for invalidation and optional damage. void invalidate(bool damage = true); bool hasInval() const { return fFlags & kInvalidated_Flag; } |