Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: tools/monobench.cpp

Issue 2139423002: Enable SkTaskGroup threading in monobench. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/monobench.cpp
diff --git a/tools/monobench.cpp b/tools/monobench.cpp
index 757e9d38a3d47df54501b1b279de9d316220c054..88a6cce37c9adaf8508d1f9df2fff25ab73e0a40 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>;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698