diff options
author | senorblanco@chromium.org <senorblanco@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 06:47:01 +0000 |
---|---|---|
committer | senorblanco@chromium.org <senorblanco@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 06:47:01 +0000 |
commit | d02a11b2ebf7fa91f79ca70a7a07948f68454e67 (patch) | |
tree | 9e3d68f965cf36baa72972b7f15b0c898d4447d9 /skia/ext/convolver_unittest.cc | |
parent | 7a11a32c40f8530c9eb921a116e070f57e4f9379 (diff) | |
download | chromium_src-d02a11b2ebf7fa91f79ca70a7a07948f68454e67.zip chromium_src-d02a11b2ebf7fa91f79ca70a7a07948f68454e67.tar.gz chromium_src-d02a11b2ebf7fa91f79ca70a7a07948f68454e67.tar.bz2 |
Make the Convolver unit tests run in a sane amout of time in DEBUG.
Since we are only testing correctness and not performance in Debug, we
can use much smaller images and still get decent coverage.
This reduces the runtime in Debug from 17092ms to 191ms.
BUG=338133
Review URL: https://codereview.chromium.org/149063009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/convolver_unittest.cc')
-rw-r--r-- | skia/ext/convolver_unittest.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/skia/ext/convolver_unittest.cc b/skia/ext/convolver_unittest.cc index 8d0c852..c71a591 100644 --- a/skia/ext/convolver_unittest.cc +++ b/skia/ext/convolver_unittest.cc @@ -224,11 +224,18 @@ TEST(Convolver, MAYBE_SIMDVerification) { {2,1}, {2,2}, {2,3}, {2,4}, {2,5}, {3,1}, {3,2}, {3,3}, {3,4}, {3,5}, {4,1}, {4,2}, {4,3}, {4,4}, {4,5}, +#ifdef NDEBUG {1920, 1080}, {720, 480}, {1377, 523}, - {325, 241} }; +#endif + {325, 241} +}; +#ifdef NDEBUG int dest_sizes[][2] = { {1280, 1024}, {480, 270}, {177, 123} }; +#else + int dest_sizes[][2] = { {128, 102}, {48, 27}, {17, 13} }; +#endif float filter[] = { 0.05f, -0.15f, 0.6f, 0.6f, -0.15f, 0.05f }; srand(static_cast<unsigned int>(time(0))); |