diff options
Diffstat (limited to 'experimental/sksg/SkSGGroup.h')
-rw-r--r-- | experimental/sksg/SkSGGroup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/experimental/sksg/SkSGGroup.h b/experimental/sksg/SkSGGroup.h index f9126ea37f..482f10db8c 100644 --- a/experimental/sksg/SkSGGroup.h +++ b/experimental/sksg/SkSGGroup.h @@ -26,6 +26,9 @@ public: void addChild(sk_sp<RenderNode>); void removeChild(const sk_sp<RenderNode>&); + size_t size() const { return SkTo<size_t>(fChildren.count()); } + bool empty() const { return fChildren.empty(); } + protected: Group(); ~Group() override; |