diff options
author | hubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-09 00:32:02 +0000 |
---|---|---|
committer | hubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-09 00:32:02 +0000 |
commit | c1ca6584f76cf0e5eb275f9d360320eac1c446ff (patch) | |
tree | 4b8501a81563bec9e868652c8711f2e1dbfb2aac /skia/ext/image_operations.cc | |
parent | 074750d984a67445e16cefb4bfbaa9868745ff4f (diff) | |
download | chromium_src-c1ca6584f76cf0e5eb275f9d360320eac1c446ff.zip chromium_src-c1ca6584f76cf0e5eb275f9d360320eac1c446ff.tar.gz chromium_src-c1ca6584f76cf0e5eb275f9d360320eac1c446ff.tar.bz2 |
enable SSE2 in skia/convolver for linux32
BUG=181072
Review URL: https://chromiumcodereview.appspot.com/13293004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/image_operations.cc')
-rw-r--r-- | skia/ext/image_operations.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc index 43f8a08..b1cdade 100644 --- a/skia/ext/image_operations.cc +++ b/skia/ext/image_operations.cc @@ -300,7 +300,7 @@ void ResizeFilter::ComputeFilters(int src_size, static_cast<int>(fixed_filter_values->size())); } - output->PaddingForSIMD(8); + output->PaddingForSIMD(); } ImageOperations::ResizeMethod ResizeMethodToAlgorithmMethod( @@ -509,7 +509,6 @@ SkBitmap ImageOperations::ResizeBasic(const SkBitmap& source, reinterpret_cast<const uint8*>(source.getPixels()); // Convolve into the result. - base::CPU cpu; SkBitmap result; result.setConfig(SkBitmap::kARGB_8888_Config, dest_subset.width(), dest_subset.height()); @@ -521,7 +520,7 @@ SkBitmap ImageOperations::ResizeBasic(const SkBitmap& source, !source.isOpaque(), filter.x_filter(), filter.y_filter(), static_cast<int>(result.rowBytes()), static_cast<unsigned char*>(result.getPixels()), - cpu.has_sse2()); + true); // Preserve the "opaque" flag for use as an optimization later. result.setIsOpaque(source.isOpaque()); |