Home
last modified time | relevance | path

Searched refs:nodeResults (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/samplecode/
DSampleImageFilterDAG.cpp244 sk_sp<SkImage> nodeResults = nodeSurface->makeImageSnapshot(); in draw_dag() local
248 canvas->clipRect(SkRect::MakeWH(nodeResults->width(), nodeResults->height())); in draw_dag()
253 canvas->drawImage(nodeResults, 0, 0); in draw_dag()
262 canvas->translate(0, nodeResults->height()); in draw_dag()
267 canvas->drawRect(SkRect::MakeWH(nodeResults->width(), nodeResults->height() + textHeight), in draw_dag()
271 float x = nodeResults->width() + kPad; in draw_dag()
275 canvas->drawLine(nodeResults->width(), 0.5f * nodeResults->height(), // right of node in draw_dag()
276 x, y + 0.5f * nodeResults->height(), line); // left of child in draw_dag()
282 return std::max(y, nodeResults->height() + textHeight + kPad); in draw_dag()
/third_party/flutter/skia/samplecode/
DSampleImageFilterDAG.cpp413 sk_sp<SkImage> nodeResults = nodeSurface->makeImageSnapshot(); in draw_dag() local
417 canvas->clipRect(SkRect::MakeWH(nodeResults->width(), nodeResults->height())); in draw_dag()
422 canvas->drawImage(nodeResults, 0, 0); in draw_dag()
431 canvas->translate(0, nodeResults->height()); in draw_dag()
436 canvas->drawRect(SkRect::MakeWH(nodeResults->width(), nodeResults->height() + textHeight), in draw_dag()
440 float x = nodeResults->width() + kPad; in draw_dag()
444 canvas->drawLine(nodeResults->width(), 0.5f * nodeResults->height(), // right of node in draw_dag()
445 x, y + 0.5f * nodeResults->height(), line); // left of child in draw_dag()
451 return SkMaxScalar(y, nodeResults->height() + textHeight + kPad); in draw_dag()