|
DM: make GPU tasks multithreaded again. Big refactor.
The main meat of things is in SkThreadPool. We can now give SkThreadPool a
type for each thread to create and destroy on its local stack. It's TLS
without going through SkTLS.
I've split the DM tasks into CpuTasks that run on threads with no TLS, and
GpuTasks that run on threads with a thread local GrContextFactory.
The old CpuTask and GpuTask have been renamed to CpuGMTask and GpuGMTask.
Upshot: default run of out/Debug/dm goes from ~45 seconds to ~20 seconds.
BUG=skia:
Committed: http://code.google.com/p/skia/source/detail?r=13632
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+388 lines, -560 lines) |
Patch |
|
M |
dm/DM.cpp
|
View
|
1
2
3
|
5 chunks |
+19 lines, -13 lines |
0 comments
|
Download
|
|
M |
dm/DMBenchTask.h
|
View
|
|
4 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
dm/DMBenchTask.cpp
|
View
|
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
A + |
dm/DMCpuGMTask.h
|
View
|
|
3 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
|
A + |
dm/DMCpuGMTask.cpp
|
View
|
1
2
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
D |
dm/DMCpuTask.h
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
D |
dm/DMCpuTask.cpp
|
View
|
|
1 chunk |
+0 lines, -60 lines |
0 comments
|
Download
|
|
M |
dm/DMExpectationsTask.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMExpectationsTask.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
dm/DMGpuGMTask.h
|
View
|
|
3 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
|
A + |
dm/DMGpuGMTask.cpp
|
View
|
|
4 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
|
D |
dm/DMGpuTask.h
|
View
|
|
1 chunk |
+0 lines, -43 lines |
0 comments
|
Download
|
|
D |
dm/DMGpuTask.cpp
|
View
|
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
|
M |
dm/DMPipeTask.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMPipeTask.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
dm/DMReplayTask.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMReplayTask.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
dm/DMSerializeTask.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMSerializeTask.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
dm/DMTask.h
|
View
|
1
2
|
2 chunks |
+33 lines, -22 lines |
0 comments
|
Download
|
|
M |
dm/DMTask.cpp
|
View
|
1
2
|
1 chunk |
+33 lines, -27 lines |
0 comments
|
Download
|
|
M |
dm/DMTaskRunner.h
|
View
|
1
2
|
1 chunk |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
dm/DMTaskRunner.cpp
|
View
|
1
2
|
1 chunk |
+8 lines, -37 lines |
0 comments
|
Download
|
|
M |
dm/DMTestTask.h
|
View
|
|
1 chunk |
+31 lines, -18 lines |
0 comments
|
Download
|
|
M |
dm/DMTestTask.cpp
|
View
|
|
2 chunks |
+25 lines, -11 lines |
0 comments
|
Download
|
|
M |
dm/DMTileGridTask.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMTileGridTask.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
dm/DMWriteTask.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMWriteTask.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gyp/dm.gyp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gyp/utils.gyp
|
View
|
1
2
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/utils/SkRunnable.h
|
View
|
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/utils/SkThreadPool.h
|
View
|
1
2
|
3 chunks |
+150 lines, -11 lines |
0 comments
|
Download
|
|
D |
src/utils/SkThreadPool.cpp
|
View
|
|
1 chunk |
+0 lines, -127 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|