30 proxies->reset(
count);
33 proxies->at(
i) = sk_make_sp<GrMockSurfaceProxy>(std::move(
name),
34 "RenderTaskClusterTest");
41 tasks->at(
i) = sk_make_sp<GrMockRenderTask>();
55 graph->at(0)->addTarget(proxies[0]);
56 graph->at(1)->addTarget(proxies[1]);
57 graph->at(2)->addTarget(proxies[0]);
58 graph->at(2)->addDependency(graph->at(1).get());
60 expected->push_back(graph->at(1));
61 expected->push_back(graph->at(0));
62 expected->push_back(graph->at(2));
75 graph->at(0)->addTarget(proxies[0]);
76 graph->at(1)->addTarget(proxies[1]);
77 graph->at(2)->addTarget(proxies[0]);
78 graph->at(3)->addTarget(proxies[2]);
79 graph->at(4)->addTarget(proxies[0]);
81 expected->push_back(graph->at(1));
82 expected->push_back(graph->at(3));
83 expected->push_back(graph->at(0));
84 expected->push_back(graph->at(2));
85 expected->push_back(graph->at(4));
99 graph->at(0)->addTarget(proxies[0]);
100 graph->at(1)->addTarget(proxies[1]);
101 graph->at(2)->addTarget(proxies[0]);
103 graph->at(1)->addDependency(graph->at(0).get());
104 graph->at(2)->addDependency(graph->at(1).get());
122 graph->at(0)->addTarget(proxies[0]);
123 graph->at(1)->addTarget(proxies[1]);
124 graph->at(2)->addTarget(proxies[0]);
125 graph->at(3)->addTarget(proxies[1]);
127 graph->at(1)->addDependency(graph->at(0).get());
128 graph->at(3)->addDependency(graph->at(2).get());
130 graph->at(1)->addUsed(proxies[0]);
131 graph->at(3)->addUsed(proxies[0]);
148 (
tests[
i])(&graph, &expectedOutput);
157 if (expectedOutput.
empty()) {
162 t == graph[newCount].get());
static void create_graph3(TArray< sk_sp< GrMockRenderTask > > *graph, TArray< sk_sp< GrMockRenderTask > > *expected)
void(* CreateGraphPF)(TArray< sk_sp< GrMockRenderTask > > *graph, TArray< sk_sp< GrMockRenderTask > > *expected)
static void create_graph0(TArray< sk_sp< GrMockRenderTask > > *graph, TArray< sk_sp< GrMockRenderTask > > *expected)
static void create_graph2(TArray< sk_sp< GrMockRenderTask > > *graph, TArray< sk_sp< GrMockRenderTask > > *expected)
static void create_graph1(TArray< sk_sp< GrMockRenderTask > > *graph, TArray< sk_sp< GrMockRenderTask > > *expected)
DEF_TEST(GrRenderTaskCluster, reporter)
static void make_proxies(int count, TArray< sk_sp< GrSurfaceProxy > > *proxies)
static void make_tasks(int count, TArray< sk_sp< GrMockRenderTask > > *tasks)
bool GrClusterRenderTasks(SkSpan< const sk_sp< GrRenderTask > > input, SkTInternalLList< GrRenderTask > *llist)
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
#define REPORTER_ASSERT(r, cond,...)
constexpr size_t size() const
DEF_SWITCHES_START aot vmservice shared library name
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
const myers::Point & get(const myers::Segment &)