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

Unified Diff: tools/skpdiff/SkDiffContext.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 | « tests/skia_test.cpp ('k') | tools/threadpool/CondVar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpdiff/SkDiffContext.cpp
diff --git a/tools/skpdiff/SkDiffContext.cpp b/tools/skpdiff/SkDiffContext.cpp
index 26898c92f38fc0168b1f998974a6228775c896b7..6b524e9d5f23ac577247d1c07f06f8f6b15da663 100644
--- a/tools/skpdiff/SkDiffContext.cpp
+++ b/tools/skpdiff/SkDiffContext.cpp
@@ -8,11 +8,11 @@
#include "SkBitmap.h"
#include "SkImageDecoder.h"
#include "SkOSFile.h"
-#include "SkRunnable.h"
+#include "Runnable.h"
#include "SkSize.h"
#include "SkStream.h"
#include "SkTDict.h"
-#include "SkThreadPool.h"
+#include "ThreadPool.h"
#include "SkDiffContext.h"
#include "SkImageDiffer.h"
@@ -21,7 +21,7 @@
SkDiffContext::SkDiffContext() {
fDiffers = NULL;
fDifferCount = 0;
- fThreadCount = SkThreadPool::kThreadPerCore;
+ fThreadCount = ThreadPool::kThreadPerCore;
}
SkDiffContext::~SkDiffContext() {
@@ -187,7 +187,7 @@ void SkDiffContext::addDiff(const char* baselinePath, const char* testPath) {
}
}
-class SkThreadedDiff : public SkRunnable {
+class SkThreadedDiff : public Runnable {
public:
SkThreadedDiff() : fDiffContext(NULL) { }
@@ -215,7 +215,7 @@ void SkDiffContext::diffDirectories(const char baselinePath[], const char testPa
return;
}
- SkThreadPool threadPool(fThreadCount);
+ ThreadPool threadPool(fThreadCount);
SkTArray<SkThreadedDiff> runnableDiffs;
runnableDiffs.reset(baselineEntries.count());
@@ -261,7 +261,7 @@ void SkDiffContext::diffPatterns(const char baselinePattern[], const char testPa
return;
}
- SkThreadPool threadPool(fThreadCount);
+ ThreadPool threadPool(fThreadCount);
SkTArray<SkThreadedDiff> runnableDiffs;
runnableDiffs.reset(baselineEntries.count());
« no previous file with comments | « tests/skia_test.cpp ('k') | tools/threadpool/CondVar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698