diff options
author | 2014-02-05 22:32:02 +0000 | |
---|---|---|
committer | 2014-02-05 22:32:02 +0000 | |
commit | ae761f7545d8ebf181d220169afac2056b057b8c (patch) | |
tree | 73cf6f3c8e384ad332956319046e6536bed97ba4 /src/gpu | |
parent | d2e88f67c9678fbda24ff74039fc1f3aae603e74 (diff) |
Make SkImageFilter methods const.
SkImageFilter had some non-const methods that could all be made const.
This is a first step towards making SkImageFilter immutable.
BUG=skia:2097
R=mtklein@google.com, reed@google.com, robertphillips@google.com
Author: dominikg@chromium.org
Review URL: https://codereview.chromium.org/148883011
git-svn-id: http://skia.googlecode.com/svn/trunk@13330 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 8c272f947a..a3af3c3d08 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1515,7 +1515,7 @@ void SkGpuDevice::internalDrawBitmap(const SkBitmap& bitmap, } static bool filter_texture(SkBaseDevice* device, GrContext* context, - GrTexture* texture, SkImageFilter* filter, + GrTexture* texture, const SkImageFilter* filter, int w, int h, const SkMatrix& ctm, SkBitmap* result, SkIPoint* offset) { SkASSERT(filter); @@ -1694,11 +1694,11 @@ void SkGpuDevice::drawDevice(const SkDraw& draw, SkBaseDevice* device, fContext->drawRectToRect(grPaint, dstRect, srcRect); } -bool SkGpuDevice::canHandleImageFilter(SkImageFilter* filter) { +bool SkGpuDevice::canHandleImageFilter(const SkImageFilter* filter) { return filter->canFilterImageGPU(); } -bool SkGpuDevice::filterImage(SkImageFilter* filter, const SkBitmap& src, +bool SkGpuDevice::filterImage(const SkImageFilter* filter, const SkBitmap& src, const SkMatrix& ctm, SkBitmap* result, SkIPoint* offset) { // want explicitly our impl, so guard against a subclass of us overriding it |