DescriptionAdd --threads to tests binary, to run non-GPU tests on multiple cores.
On my quad-core laptop I can get about a 3x speedup:
Debug, --threads 0 40.99s
Debug, --threads 8 14.39s
Release, --threads 0 8.24s
Release, --threads 8 2.80s
I also removed some unused Test.{h,cpp} APIs and refactored a little to make
things thread-safer.
BUG=
Committed: http://code.google.com/p/skia/source/detail?r=8763
Patch Set 1 #Patch Set 2 : Lint #Patch Set 3 : set default to 8 #
Total comments: 8
Patch Set 4 : updates from scroggo's review #Patch Set 5 : SkTScopedPtr -> SkAutoTDelete, and clean up merge conflicts with codereview.chromium.org/14002007 #
Messages
Total messages: 22 (0 generated)
|