Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: skia/ext/convolver_unittest.cc

Issue 13293004: enable SSE2 in skia/convolver for linux32 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wrapped convolvevertically Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: skia/ext/convolver_unittest.cc
diff --git a/skia/ext/convolver_unittest.cc b/skia/ext/convolver_unittest.cc
index 6bf09ee6d43cfa86d0201f46c7f96c9fbfa58ad3..377ed8ed3051c20f491ad0336d8bed80a3041b17 100644
--- a/skia/ext/convolver_unittest.cc
+++ b/skia/ext/convolver_unittest.cc
@@ -211,10 +211,6 @@ TEST(Convolver, AddFilter) {
}
TEST(Convolver, SIMDVerification) {
-#if defined(SIMD_SSE2)
- base::CPU cpu;
- if (!cpu.has_sse2()) return;
-
int source_sizes[][2] = {
{1,1}, {1,2}, {1,3}, {1,4}, {1,5},
{2,1}, {2,2}, {2,3}, {2,4}, {2,5},
@@ -246,14 +242,14 @@ TEST(Convolver, SIMDVerification) {
std::min<int>(arraysize(filter),
source_width - offset));
}
- x_filter.PaddingForSIMD(8);
+ x_filter.PaddingForSIMD();
for (unsigned int p = 0; p < dest_height; ++p) {
unsigned int offset = source_height * p / dest_height;
y_filter.AddFilter(offset, filter,
std::min<int>(arraysize(filter),
source_height - offset));
}
- y_filter.PaddingForSIMD(8);
+ y_filter.PaddingForSIMD();
// Allocate input and output skia bitmap.
SkBitmap source, result_c, result_sse;
@@ -326,7 +322,6 @@ TEST(Convolver, SIMDVerification) {
}
}
}
-#endif
}
} // namespace skia

Powered by Google App Engine
This is Rietveld 408576698