blob: 6b78c488b71b98be2a34436bb019d5c237ee8b77 [file] [log] [blame]
* 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 {
this->onClip(canvas, aa);
void GeometryNode::draw(SkCanvas* canvas, const SkPaint& paint) const {
this->onDraw(canvas, paint);
SkPath GeometryNode::asPath() const {
return this->onAsPath();
} // namespace sksg