Lines Matching refs:TopoTestNode
149 class TopoTestNode : public SkRefCnt {
151 TopoTestNode(int id) : fID(id), fOutputPos(-1), fTempMark(false) { } in TopoTestNode() function
153 void dependsOn(TopoTestNode* src) { in dependsOn()
182 static void SetTempMark(TopoTestNode* node) { node->fTempMark = true; } in SetTempMark()
183 static void ResetTempMark(TopoTestNode* node) { node->fTempMark = false; } in ResetTempMark()
184 static bool IsTempMarked(TopoTestNode* node) { return node->fTempMark; } in IsTempMarked()
185 static void Output(TopoTestNode* node, int outputPos) { in Output()
189 static bool WasOutput(TopoTestNode* node) { return (-1 != node->fOutputPos); } in WasOutput()
190 static int NumDependencies(TopoTestNode* node) { return node->fDependencies.count(); } in NumDependencies()
191 static TopoTestNode* Dependency(TopoTestNode* node, int index) { in Dependency()
196 static void AllocNodes(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph, int num) { in AllocNodes()
200 graph->push_back(sk_sp<TopoTestNode>(new TopoTestNode(i))); in AllocNodes()
205 static void Print(const SkTArray<TopoTestNode*>& graph) { in Print()
214 static void Shuffle(SkTArray<sk_sp<TopoTestNode>>* graph, SkRandom* rand) { in Shuffle()
227 SkTDArray<TopoTestNode*> fDependencies;