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

Unified Diff: tests/OnceTest.cpp

Issue 371853005: Move threadpool code from include/utils to tools/threadpool. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 6 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 | « src/utils/SkCondVar.cpp ('k') | tests/PathOpsExtendedTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/OnceTest.cpp
diff --git a/tests/OnceTest.cpp b/tests/OnceTest.cpp
index 389d257b73fdb3a8aa25be023f6f48750cd2bb2f..ec79a2543a11855fbf1d6d2e0ce5f68fb04b78b5 100644
--- a/tests/OnceTest.cpp
+++ b/tests/OnceTest.cpp
@@ -6,7 +6,7 @@
*/
#include "SkOnce.h"
-#include "SkThreadPool.h"
+#include "ThreadPool.h"
#include "Test.h"
static void add_five(int* x) {
@@ -31,7 +31,7 @@ static void add_six(int* x) {
*x += 6;
}
-class Racer : public SkRunnable {
+class Racer : public Runnable {
public:
SkOnceFlag* once;
int* ptr;
@@ -54,7 +54,7 @@ DEF_TEST(SkOnce_Multithreaded, r) {
}
// Let them race.
- SkThreadPool pool(kThreads);
+ ThreadPool pool(kThreads);
for (int i = 0; i < kTasks; i++) {
pool.add(&racers[i]);
}
« no previous file with comments | « src/utils/SkCondVar.cpp ('k') | tests/PathOpsExtendedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698