diff options
Diffstat (limited to 'experimental/sksg/SkSGGeometryNode.cpp')
-rw-r--r-- | experimental/sksg/SkSGGeometryNode.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/experimental/sksg/SkSGGeometryNode.cpp b/experimental/sksg/SkSGGeometryNode.cpp deleted file mode 100644 index 6b78c488b7..0000000000 --- a/experimental/sksg/SkSGGeometryNode.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2017 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "SkSGGeometryNode.h" - -#include "SkPath.h" - -namespace sksg { - -// Geometry nodes don't generate damage on their own, but via their aggregation ancestor Draw nodes. -GeometryNode::GeometryNode() : INHERITED(kBubbleDamage_Trait) {} - -void GeometryNode::clip(SkCanvas* canvas, bool aa) const { - SkASSERT(!this->hasInval()); - this->onClip(canvas, aa); -} - -void GeometryNode::draw(SkCanvas* canvas, const SkPaint& paint) const { - SkASSERT(!this->hasInval()); - this->onDraw(canvas, paint); -} - -SkPath GeometryNode::asPath() const { - SkASSERT(!this->hasInval()); - return this->onAsPath(); -} - -} // namespace sksg |