diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-14 16:58:55 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-14 16:58:55 +0000 |
commit | 87080c619c9d60f0ed3aa988d89b36c35eca95b1 (patch) | |
tree | 93d5c34a529858c1d891a55a092ee53efd06976b /skia/ext/convolver.cc | |
parent | c31085d9656ff79a389318ffc7afed0fd2cd296c (diff) | |
download | chromium_src-87080c619c9d60f0ed3aa988d89b36c35eca95b1.zip chromium_src-87080c619c9d60f0ed3aa988d89b36c35eca95b1.tar.gz chromium_src-87080c619c9d60f0ed3aa988d89b36c35eca95b1.tar.bz2 |
Remove a bunch of base dependencies from skia/ext. The only nontrivial change is
in bitmap_platform_device_mac. The refcounting now matches the way the Windows
file works.
Review URL: http://codereview.chromium.org/17627
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/convolver.cc')
-rw-r--r-- | skia/ext/convolver.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/convolver.cc b/skia/ext/convolver.cc index 930f9e5..f826b53 100644 --- a/skia/ext/convolver.cc +++ b/skia/ext/convolver.cc @@ -127,7 +127,7 @@ void ConvolveHorizontally(const unsigned char* src_data, const unsigned char* row_to_filter = &src_data[filter_offset * 4]; // Apply the filter to the row to get the destination pixel in |accum|. - int32 accum[4] = {0}; + int accum[4] = {0}; for (int filter_x = 0; filter_x < filter_length; filter_x++) { ConvolusionFilter1D::Fixed cur_filter = filter_values[filter_x]; accum[0] += cur_filter * row_to_filter[filter_x * 4 + 0]; @@ -174,7 +174,7 @@ void ConvolveVertically(const ConvolusionFilter1D::Fixed* filter_values, int byte_offset = out_x * 4; // Apply the filter to one column of pixels. - int32 accum[4] = {0}; + int accum[4] = {0}; for (int filter_y = 0; filter_y < filter_length; filter_y++) { ConvolusionFilter1D::Fixed cur_filter = filter_values[filter_y]; accum[0] += cur_filter * source_data_rows[filter_y][byte_offset + 0]; |