aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-01-04 19:13:19 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-04 19:13:19 -0800
commit279c7864090a7b96c34c3594e38ced35967c673f (patch)
tree3ecd209f1ca5798f6b3d491f9bcd683609b8ca52 /samplecode
parentc4a0d73e9aebcb7d291aa3eb8d5b6926d9a0b77e (diff)
If we swap its arguments, SkTaskGroup::batch() _is_ sk_parallel_for.
Why have two names if we can get away with one? This kills off sk_parallel_for_thread_count(), which was only used to avoid forcing a deadlock in OncePtrTest on multicore machines in singlethreaded mode... a really niche use case. Instead just don't explicitly force a race. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1552093002 Review URL: https://codereview.chromium.org/1552093002
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SamplePathFuzz.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SamplePathFuzz.cpp b/samplecode/SamplePathFuzz.cpp
index 317833dfe9..d719826752 100644
--- a/samplecode/SamplePathFuzz.cpp
+++ b/samplecode/SamplePathFuzz.cpp
@@ -619,7 +619,7 @@ static bool contains_only_moveTo(const SkPath& path) {
#include "SkTDArray.h"
static void path_fuzz_stroker(SkBitmap* bitmap, int seed) {
- sk_parallel_for(100, [&](int i) {
+ SkTaskGroup().batch(100, [&](int i) {
int localSeed = seed + i;
FuzzPath fuzzPath;