Add --threads to tests binary, to run non-GPU tests on multiple cores.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 19 Apr 2013 13:24:28 +0000 (13:24 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 19 Apr 2013 13:24:28 +0000 (13:24 +0000)
commit197845ae157da0175bb8dd05c4fd9eb9cd935e54
treec9f2f7aae7954acfd6aec8dc0760ed4693c035ef
parent5920ac276877b36624e07baf97c7768e80a07f98
Add --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=
R=borenet@google.com, djsollen@google.com, scroggo@google.com, reed@google.com

Author: mtklein@google.com

Review URL: https://chromiumcodereview.appspot.com/13855007

git-svn-id: http://skia.googlecode.com/svn/trunk@8763 2bbb7eff-a529-9590-31e7-b0007b416f81
tests/GrContextFactoryTest.cpp
tests/Test.cpp
tests/Test.h
tests/skia_test.cpp