Searched defs:SkTaskGroup (Results 1 - 2 of 2) sorted by relevance

/external/skia/src/core/
H A DSkTaskGroup.h16 class SkTaskGroup : SkNoncopyable { class in inherits:SkNoncopyable
18 // Tasks added to this SkTaskGroup will run on its executor.
19 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault());
20 ~SkTaskGroup() { this->wait(); }
22 // Add a task to this SkTaskGroup.
28 // Block until all Tasks previously add()ed to this SkTaskGroup have run.
29 // You may safely reuse this SkTaskGroup after wait() returns.
H A DSkTaskGroup.cpp9 #include "SkTaskGroup.h"
11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} function in class:SkTaskGroup
13 void SkTaskGroup::add(std::function<void(void)> fn) {
21 void SkTaskGroup::batch(int N, std::function<void(int)> fn) {
32 void SkTaskGroup::wait() {
42 SkTaskGroup::Enabler::Enabler(int threads) {

Completed in 399 milliseconds