From 4150eea6c49ecec882a8d3e1c61d6a25fcd1e905 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 7 Feb 2018 17:08:21 -0500 Subject: Move control of explicit GPU resource allocation to GrContextOptions Change-Id: Ic284acc79bab5936f0007d5ae5fb1e7a9929e2af Reviewed-on: https://skia-review.googlesource.com/104880 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon Reviewed-by: Greg Daniel --- bench/TopoSortBench.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bench/TopoSortBench.cpp') diff --git a/bench/TopoSortBench.cpp b/bench/TopoSortBench.cpp index 8a8ec66a61..123ff7480c 100644 --- a/bench/TopoSortBench.cpp +++ b/bench/TopoSortBench.cpp @@ -17,7 +17,6 @@ public: TopoSortBench() { } ~TopoSortBench() override { - sk_tool_utils::TopoTestNode::DeallocNodes(&fGraph); } bool isSuitableFor(Backend backend) override { @@ -39,7 +38,7 @@ protected: for (int j = 0; j < numEdges; ++j) { int dep = fRand.nextU() % i; - fGraph[i]->dependsOn(fGraph[dep]); + fGraph[i]->dependsOn(fGraph[dep].get()); } } } @@ -67,7 +66,7 @@ private: static const int kNumElements = 1000; static const int kMaxEdges = 5; - SkTDArray fGraph; + SkTArray> fGraph; SkRandom fRand; typedef Benchmark INHERITED; -- cgit v1.2.3