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

Side by Side Diff: include/effects/SkBlurImageFilter.h

Issue 148883011: Make SkImageFilter methods const. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More fixes to gm/ Created 6 years, 10 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 unified diff | Download patch
« no previous file with comments | « include/effects/SkBitmapSource.h ('k') | include/effects/SkColorFilterImageFilter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The Android Open Source Project 2 * Copyright 2011 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkBlurImageFilter_DEFINED 8 #ifndef SkBlurImageFilter_DEFINED
9 #define SkBlurImageFilter_DEFINED 9 #define SkBlurImageFilter_DEFINED
10 10
11 #include "SkImageFilter.h" 11 #include "SkImageFilter.h"
12 #include "SkSize.h" 12 #include "SkSize.h"
13 13
14 class SK_API SkBlurImageFilter : public SkImageFilter { 14 class SK_API SkBlurImageFilter : public SkImageFilter {
15 public: 15 public:
16 SkBlurImageFilter(SkScalar sigmaX, 16 SkBlurImageFilter(SkScalar sigmaX,
17 SkScalar sigmaY, 17 SkScalar sigmaY,
18 SkImageFilter* input = NULL, 18 SkImageFilter* input = NULL,
19 const CropRect* cropRect = NULL); 19 const CropRect* cropRect = NULL);
20 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 20 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
21 21
22 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter) 22 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter)
23 23
24 protected: 24 protected:
25 explicit SkBlurImageFilter(SkReadBuffer& buffer); 25 explicit SkBlurImageFilter(SkReadBuffer& buffer);
26 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 26 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
27 27
28 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 28 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
29 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 29 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE;
30 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 30 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
31 SkIRect* dst) const SK_OVERRIDE; 31 SkIRect* dst) const SK_OVERRIDE;
32 32
33 bool canFilterImageGPU() const SK_OVERRIDE { return true; } 33 bool canFilterImageGPU() const SK_OVERRIDE { return true; }
34 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm, 34 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm,
35 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 35 SkBitmap* result, SkIPoint* offset) const SK_OVE RRIDE;
36 36
37 private: 37 private:
38 SkSize fSigma; 38 SkSize fSigma;
39 typedef SkImageFilter INHERITED; 39 typedef SkImageFilter INHERITED;
40 }; 40 };
41 41
42 #endif 42 #endif
OLDNEW
« no previous file with comments | « include/effects/SkBitmapSource.h ('k') | include/effects/SkColorFilterImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698