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

Side by Side Diff: dm/DMTaskRunner.cpp

Issue 853883004: Revert of Sketch DM refactor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « dm/DMTaskRunner.h ('k') | dm/DMTestTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "DMTaskRunner.h"
2 #include "DMTask.h"
3
4 namespace DM {
5
6 void TaskRunner::add(CpuTask* task) { fCpuWork.add(task); }
7 void TaskRunner::add(GpuTask* task) { fGpuWork.push(task); }
8
9 void TaskRunner::wait() {
10 GrContextFactory factory;
11 for (int i = 0; i < fGpuWork.count(); i++) {
12 fGpuWork[i]->run(&factory);
13 }
14 fCpuWork.wait();
15 }
16
17 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMTaskRunner.h ('k') | dm/DMTestTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698