1 /* 2 * Copyright 2019 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkSGNodePriv_DEFINED 9 #define SkSGNodePriv_DEFINED 10 11 #include "modules/sksg/include/SkSGNode.h" 12 13 namespace sksg { 14 15 // Helper for accessing implementation-private Node methods. 16 class NodePriv final { 17 public: 18 HasInval(const sk_sp<Node> & node)19 static bool HasInval(const sk_sp<Node>& node) { return node->hasInval(); } 20 21 private: 22 NodePriv() = delete; 23 }; 24 25 } // namespace sksg 26 27 #endif // SkSGNodePriv_DEFINED 28