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

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

Issue 684923002: MultiPictureDraw is taskgroup aware. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix compile warning in SampleApp.cpp Created 6 years, 1 month 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
OLDNEW
1 #include "SkTaskGroup.h" 1 #include "SkTaskGroup.h"
2 2
3 #include "SkCondVar.h" 3 #include "SkCondVar.h"
4 #include "SkTDArray.h" 4 #include "SkTDArray.h"
5 #include "SkThread.h" 5 #include "SkThread.h"
6 #include "SkThreadUtils.h" 6 #include "SkThreadUtils.h"
7 7
8 #if defined(SK_BUILD_FOR_WIN32) 8 #if defined(SK_BUILD_FOR_WIN32)
9 static inline int num_cores() { 9 static inline int num_cores() {
10 SYSTEM_INFO sysinfo; 10 SYSTEM_INFO sysinfo;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 SkTaskGroup::Enabler::~Enabler() { 141 SkTaskGroup::Enabler::~Enabler() {
142 SkDELETE(ThreadPool::gGlobal); 142 SkDELETE(ThreadPool::gGlobal);
143 } 143 }
144 144
145 SkTaskGroup::SkTaskGroup() : fPending(0) {} 145 SkTaskGroup::SkTaskGroup() : fPending(0) {}
146 146
147 void SkTaskGroup::add(SkRunnable* task) { ThreadPool::Add(task, &fPending); } 147 void SkTaskGroup::add(SkRunnable* task) { ThreadPool::Add(task, &fPending); }
148 void SkTaskGroup::wait() { ThreadPool::Wait(&fPending); } 148 void SkTaskGroup::wait() { ThreadPool::Wait(&fPending); }
149 149
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698