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
parent 7a11a32c
...@@ -224,11 +224,18 @@ TEST(Convolver, MAYBE_SIMDVerification) { ...@@ -224,11 +224,18 @@ TEST(Convolver, MAYBE_SIMDVerification) {
{2,1}, {2,2}, {2,3}, {2,4}, {2,5}, {2,1}, {2,2}, {2,3}, {2,4}, {2,5},
{3,1}, {3,2}, {3,3}, {3,4}, {3,5}, {3,1}, {3,2}, {3,3}, {3,4}, {3,5},
{4,1}, {4,2}, {4,3}, {4,4}, {4,5}, {4,1}, {4,2}, {4,3}, {4,4}, {4,5},
#ifdef NDEBUG
{1920, 1080}, {1920, 1080},
{720, 480}, {720, 480},
{1377, 523}, {1377, 523},
{325, 241} }; #endif
{325, 241}
};
#ifdef NDEBUG
int dest_sizes[][2] = { {1280, 1024}, {480, 270}, {177, 123} }; 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 }; float filter[] = { 0.05f, -0.15f, 0.6f, 0.6f, -0.15f, 0.05f };
srand(static_cast<unsigned int>(time(0))); srand(static_cast<unsigned int>(time(0)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment