diff options
Diffstat (limited to 'experimental/sksg/SkSGEffectNode.cpp')
-rw-r--r-- | experimental/sksg/SkSGEffectNode.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/experimental/sksg/SkSGEffectNode.cpp b/experimental/sksg/SkSGEffectNode.cpp deleted file mode 100644 index 70050ccb70..0000000000 --- a/experimental/sksg/SkSGEffectNode.cpp +++ /dev/null @@ -1,31 +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 "SkSGEffectNode.h" - -namespace sksg { - -EffectNode::EffectNode(sk_sp<RenderNode> child) - : fChild(std::move(child)) { - this->observeInval(fChild); -} - -EffectNode::~EffectNode() { - this->unobserveInval(fChild); -} - -void EffectNode::onRender(SkCanvas* canvas) const { - fChild->render(canvas); -} - -SkRect EffectNode::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { - SkASSERT(this->hasInval()); - - return fChild->revalidate(ic, ctm); -} - -} // namespace sksg |