Lines Matching refs:TopoTestNode
144 class TopoTestNode : public SkRefCnt {
146 TopoTestNode(int id) : fID(id), fOutputPos(-1), fTempMark(false) { } in TopoTestNode() function
148 void dependsOn(TopoTestNode* src) { in dependsOn()
177 static void SetTempMark(TopoTestNode* node) { node->fTempMark = true; } in SetTempMark()
178 static void ResetTempMark(TopoTestNode* node) { node->fTempMark = false; } in ResetTempMark()
179 static bool IsTempMarked(TopoTestNode* node) { return node->fTempMark; } in IsTempMarked()
180 static void Output(TopoTestNode* node, int outputPos) { in Output()
184 static bool WasOutput(TopoTestNode* node) { return (-1 != node->fOutputPos); } in WasOutput()
185 static int NumDependencies(TopoTestNode* node) { return node->fDependencies.count(); } in NumDependencies()
186 static TopoTestNode* Dependency(TopoTestNode* node, int index) { in Dependency()
191 static void AllocNodes(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph, int num) { in AllocNodes()
195 graph->push_back(sk_sp<TopoTestNode>(new TopoTestNode(i))); in AllocNodes()
200 static void Print(const SkTArray<TopoTestNode*>& graph) { in Print()
209 static void Shuffle(SkTArray<sk_sp<TopoTestNode>>* graph, SkRandom* rand) { in Shuffle()
222 SkTDArray<TopoTestNode*> fDependencies;