Lines Matching defs:node
20 size_t parse_node<Component>(StreamReader* sr, Component* node) {
21 node->setName(sr->readString("name"));
25 SkDebugf(".. %s -> %d\n", node->getName().c_str(), parent_id);
31 size_t parse_node<TransformableComponent>(StreamReader* sr, TransformableComponent* node) {
32 const auto parent_index = parse_node<Component>(sr, node);
34 node->setTranslation(sr->readV2("translation"));
35 node->setRotation(sr->readFloat("rotation"));
36 node->setScale(sr->readV2("scale"));
37 node->setOpacity(sr->readFloat("opacity"));
45 auto* node = this;
48 node->fDirty = true;
49 node = node->fParent;
50 } while (node && !node->hasInval());
63 ScopedTransformContext(const TransformableComponent* node, SkCanvas* canvas)
66 const auto lm = SkMatrix::Translate(node->getTranslation().x, node->getTranslation().y) *
67 SkMatrix::RotateDeg(node->getRotation() ) *
68 SkMatrix::Scale (node->getScale().x , node->getScale().y );
70 if (node->getOpacity() < 1) {
72 layer_paint.setAlphaf(node->getOpacity());