2017-12-19 17:21:02 +00:00
|
|
|
/*
|
|
|
|
* 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 "SkSGRenderNode.h"
|
|
|
|
|
|
|
|
namespace sksg {
|
|
|
|
|
2018-01-05 16:32:31 +00:00
|
|
|
RenderNode::RenderNode() : INHERITED(0) {}
|
2017-12-19 17:21:02 +00:00
|
|
|
|
|
|
|
void RenderNode::render(SkCanvas* canvas) const {
|
2018-01-03 21:17:29 +00:00
|
|
|
SkASSERT(!this->hasInval());
|
2017-12-19 17:21:02 +00:00
|
|
|
this->onRender(canvas);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace sksg
|