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

Side by Side Diff: src/core/SkTaskGroup.h

Issue 1948313002: Revert of SkOncePtr -> SkOnce (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/core/SkPathRef.cpp ('k') | src/core/SkTaskGroup.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkTaskGroup_DEFINED 8 #ifndef SkTaskGroup_DEFINED
9 #define SkTaskGroup_DEFINED 9 #define SkTaskGroup_DEFINED
10 10
(...skipping 21 matching lines...) Expand all
32 void batch(int N, std::function<void(int)> fn); 32 void batch(int N, std::function<void(int)> fn);
33 33
34 // Block until all Tasks previously add()ed to this SkTaskGroup have run. 34 // Block until all Tasks previously add()ed to this SkTaskGroup have run.
35 // You may safely reuse this SkTaskGroup after wait() returns. 35 // You may safely reuse this SkTaskGroup after wait() returns.
36 void wait(); 36 void wait();
37 37
38 private: 38 private:
39 SkAtomic<int32_t> fPending; 39 SkAtomic<int32_t> fPending;
40 }; 40 };
41 41
42 // Returns best estimate of number of CPU cores available to use.
43 int sk_num_cores();
44
42 #endif//SkTaskGroup_DEFINED 45 #endif//SkTaskGroup_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPathRef.cpp ('k') | src/core/SkTaskGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698