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

Unified Diff: tools/threadpool/Runnable.h

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 | « tools/threadpool/CondVar.cpp ('k') | tools/threadpool/ThreadPool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/threadpool/Runnable.h
diff --git a/include/utils/SkRunnable.h b/tools/threadpool/Runnable.h
similarity index 55%
rename from include/utils/SkRunnable.h
rename to tools/threadpool/Runnable.h
index 5acf4dbc61a4ec4f177c14cf594dc3274c50a26a..6ddc95ba2fc07ec7299d9a67892cb766ec78b622 100644
--- a/include/utils/SkRunnable.h
+++ b/tools/threadpool/Runnable.h
@@ -5,21 +5,21 @@
* found in the LICENSE file.
*/
-#ifndef SkRunnable_DEFINED
-#define SkRunnable_DEFINED
+#ifndef Runnable_DEFINED
+#define Runnable_DEFINED
template <typename T>
-struct SkTRunnable {
- virtual ~SkTRunnable() {};
+struct TRunnable {
+ virtual ~TRunnable() {};
virtual void run(T&) = 0;
};
template <>
-struct SkTRunnable<void> {
- virtual ~SkTRunnable() {};
+struct TRunnable<void> {
+ virtual ~TRunnable() {};
virtual void run() = 0;
};
-typedef SkTRunnable<void> SkRunnable;
+typedef TRunnable<void> Runnable;
#endif
« no previous file with comments | « tools/threadpool/CondVar.cpp ('k') | tools/threadpool/ThreadPool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698