diff options
author | Robert Phillips <robertphillips@google.com> | 2018-06-21 11:18:25 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-21 16:42:38 +0000 |
commit | f7dcdb0283ea50bbb0731c780ddd37aebbe750a9 (patch) | |
tree | be8133ceae355ec0db00223f3d9bfa2c1f9504d9 /tools/skpbench | |
parent | 472ab81032ccb67a4db295d694ca03d3c75cbda6 (diff) |
Move taskgroup initialization closer to where it is used
This makes the vtune and instruments charts easier to understand/read.
Change-Id: I0469b723699d174681f9e36b5ff12f7e9c3d1d34
Reviewed-on: https://skia-review.googlesource.com/136607
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools/skpbench')
-rw-r--r-- | tools/skpbench/skpbench.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/skpbench/skpbench.cpp b/tools/skpbench/skpbench.cpp index 5f5e96b477..25acb1c9f1 100644 --- a/tools/skpbench/skpbench.cpp +++ b/tools/skpbench/skpbench.cpp @@ -157,6 +157,8 @@ static void run_ddl_benchmark(const sk_gpu_test::FenceSync* fenceSync, tiles.createSKPPerTile(compressedPictureData.get(), promiseImageHelper); + SkTaskGroup::Enabler enabled(FLAGS_ddlNumAdditionalThreads); + clock::time_point startStopTime = clock::now(); ddl_sample(context, &tiles, nullptr, nullptr, &startStopTime); @@ -333,7 +335,6 @@ int main(int argc, char** argv) { } SkGraphics::Init(); - SkTaskGroup::Enabler enabled(FLAGS_ddlNumAdditionalThreads); sk_sp<SkPicture> skp; SkString skpname; |