aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-07-12 14:50:28 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-12 14:50:28 -0700
commit2052f313f0fa16daae86e6f298e12e6f23604036 (patch)
treef5851dc619b7f46f16fa1d50173455a89b9f4461 /tools
parent54d500f90c2cf4b6bea4e682bbfad1e9185794a1 (diff)
Enable SkTaskGroup threading in monobench.
Without this Enabler, SkTaskGroups all run serially. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2139423002 Review-Url: https://codereview.chromium.org/2139423002
Diffstat (limited to 'tools')
-rw-r--r--tools/monobench.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/monobench.cpp b/tools/monobench.cpp
index 757e9d38a3..88a6cce37c 100644
--- a/tools/monobench.cpp
+++ b/tools/monobench.cpp
@@ -7,6 +7,7 @@
#include "Benchmark.h"
#include "SkGraphics.h"
+#include "SkTaskGroup.h"
#include <algorithm>
#include <chrono>
#include <regex>
@@ -16,6 +17,7 @@
int main(int argc, char** argv) {
SkGraphics::Init();
+ SkTaskGroup::Enabler enabled;
using clock = std::chrono::high_resolution_clock;
using ns = std::chrono::duration<double, std::nano>;