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

Unified Diff: src/utils/SkTaskGroup.h

Issue 684923002: MultiPictureDraw is taskgroup aware. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: actually call Reset() to free the data in each data Created 6 years, 2 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/core/SkTaskGroup.cpp ('k') | src/utils/SkTaskGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkTaskGroup.h
diff --git a/src/utils/SkTaskGroup.h b/src/utils/SkTaskGroup.h
deleted file mode 100644
index c60ceda52e01d5bc7b6c246bcaf3bc1a4c3caecb..0000000000000000000000000000000000000000
--- a/src/utils/SkTaskGroup.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkTaskGroup_DEFINED
-#define SkTaskGroup_DEFINED
-
-#include "SkTypes.h"
-#include "SkRunnable.h"
-
-class SkTaskGroup : SkNoncopyable {
-public:
- // Create one of these in main() to enable SkTaskGroups globally.
- struct Enabler : SkNoncopyable {
- explicit Enabler(int threads = -1); // Default is system-reported core count.
- ~Enabler();
- };
-
- SkTaskGroup();
- ~SkTaskGroup() { this->wait(); }
-
- // Add a task to this SkTaskGroup. It will likely run on another thread.
- // Neither add() method takes owership of any of its parameters.
- void add(SkRunnable*);
- void add(void (*fn)(void*), void* arg);
-
- // Block until all Tasks previously add()ed to this SkTaskGroup have run.
- // You may safely reuse this SkTaskGroup after wait() returns.
- void wait();
-
-private:
- /*atomic*/ int32_t fPending;
-};
-
-#endif//SkTaskGroup_DEFINED
« no previous file with comments | « src/core/SkTaskGroup.cpp ('k') | src/utils/SkTaskGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698