Searched refs:TopoTestNode (Results 1 – 3 of 3) sorted by relevance
/external/skia/tests/ |
D | TopoSortTest.cpp | 14 typedef void (*CreateGraphPF)(SkTDArray<sk_tool_utils::TopoTestNode*>* graph); 23 static void create_graph0(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph0() 24 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph0() 41 static void create_graph1(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph1() 42 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph1() 54 static void create_graph2(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph2() 55 sk_tool_utils::TopoTestNode::AllocNodes(graph, 3); in create_graph2() 73 static void create_graph3(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph3() 74 sk_tool_utils::TopoTestNode::AllocNodes(graph, 7); in create_graph3() 94 static void create_graph4(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph4() [all …]
|
/external/skia/tools/ |
D | sk_tool_utils.h | 141 class TopoTestNode { 143 TopoTestNode(int id) : fID(id), fOutputPos(-1), fTempMark(false) { } in TopoTestNode() function 145 void dependsOn(TopoTestNode* src) { in dependsOn() 174 static void SetTempMark(TopoTestNode* node) { node->fTempMark = true; } in SetTempMark() 175 static void ResetTempMark(TopoTestNode* node) { node->fTempMark = false; } in ResetTempMark() 176 static bool IsTempMarked(TopoTestNode* node) { return node->fTempMark; } in IsTempMarked() 177 static void Output(TopoTestNode* node, int outputPos) { in Output() 181 static bool WasOutput(TopoTestNode* node) { return (-1 != node->fOutputPos); } in WasOutput() 182 static int NumDependencies(TopoTestNode* node) { return node->fDependencies.count(); } in NumDependencies() 183 static TopoTestNode* Dependency(TopoTestNode* node, int index) { in Dependency() [all …]
|
/external/skia/bench/ |
D | TopoSortBench.cpp | 20 sk_tool_utils::TopoTestNode::DeallocNodes(&fGraph); in ~TopoSortBench() 34 sk_tool_utils::TopoTestNode::AllocNodes(&fGraph, kNumElements); in onDelayedSetup() 53 sk_tool_utils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw() 55 SkDEBUGCODE(bool actualResult =) SkTTopoSort<sk_tool_utils::TopoTestNode>(&fGraph); in onDraw() 70 SkTDArray<sk_tool_utils::TopoTestNode*> fGraph;
|