Index: src/effects/SkMatrixConvolutionImageFilter.cpp |
diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp |
index b73f623aec7be1ab4dd2a2b87c5358940dde258b..43ebc6ce66b294f42ddfba66cfaac5ecc9f9eebc 100644 |
--- a/src/effects/SkMatrixConvolutionImageFilter.cpp |
+++ b/src/effects/SkMatrixConvolutionImageFilter.cpp |
@@ -152,7 +152,7 @@ template<class PixelFetcher, bool convolveAlpha> |
void SkMatrixConvolutionImageFilter::filterPixels(const SkBitmap& src, |
SkBitmap* result, |
const SkIRect& rect, |
- const SkIRect& bounds) { |
+ const SkIRect& bounds) const { |
for (int y = rect.fTop; y < rect.fBottom; ++y) { |
SkPMColor* dptr = result->getAddr32(rect.fLeft - bounds.fLeft, y - bounds.fTop); |
for (int x = rect.fLeft; x < rect.fRight; ++x) { |
@@ -192,7 +192,7 @@ template<class PixelFetcher> |
void SkMatrixConvolutionImageFilter::filterPixels(const SkBitmap& src, |
SkBitmap* result, |
const SkIRect& rect, |
- const SkIRect& bounds) { |
+ const SkIRect& bounds) const { |
if (fConvolveAlpha) { |
filterPixels<PixelFetcher, true>(src, result, rect, bounds); |
} else { |
@@ -203,14 +203,14 @@ void SkMatrixConvolutionImageFilter::filterPixels(const SkBitmap& src, |
void SkMatrixConvolutionImageFilter::filterInteriorPixels(const SkBitmap& src, |
SkBitmap* result, |
const SkIRect& rect, |
- const SkIRect& bounds) { |
+ const SkIRect& bounds) const { |
filterPixels<UncheckedPixelFetcher>(src, result, rect, bounds); |
} |
void SkMatrixConvolutionImageFilter::filterBorderPixels(const SkBitmap& src, |
SkBitmap* result, |
const SkIRect& rect, |
- const SkIRect& bounds) { |
+ const SkIRect& bounds) const { |
switch (fTileMode) { |
case kClamp_TileMode: |
filterPixels<ClampPixelFetcher>(src, result, rect, bounds); |
@@ -253,7 +253,7 @@ bool SkMatrixConvolutionImageFilter::onFilterImage(Proxy* proxy, |
const SkBitmap& source, |
const SkMatrix& matrix, |
SkBitmap* result, |
- SkIPoint* offset) { |
+ SkIPoint* offset) const { |
SkBitmap src = source; |
SkIPoint srcOffset = SkIPoint::Make(0, 0); |
if (getInput(0) && !getInput(0)->filterImage(proxy, source, matrix, &src, &srcOffset)) { |