From 279c7864090a7b96c34c3594e38ced35967c673f Mon Sep 17 00:00:00 2001 From: mtklein Date: Mon, 4 Jan 2016 19:13:19 -0800 Subject: 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 --- tests/BlendTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/BlendTest.cpp') diff --git a/tests/BlendTest.cpp b/tests/BlendTest.cpp index 518a7e241d..612492d271 100644 --- a/tests/BlendTest.cpp +++ b/tests/BlendTest.cpp @@ -98,5 +98,5 @@ DEF_TEST(Blend_premul_begets_premul, r) { }; // Parallelism helps speed things up on my desktop from ~725s to ~50s. - sk_parallel_for(SkXfermode::kLastMode, test_mode); + SkTaskGroup().batch(SkXfermode::kLastMode, test_mode); } -- cgit v1.2.3