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

Side by Side Diff: include/effects/SkDropShadowImageFilter.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/SkDisplacementMapEffect.h ('k') | include/effects/SkMagnifierImageFilter.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 2013 Google Inc. 2 * Copyright 2013 Google Inc.
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 #include "SkColor.h" 8 #include "SkColor.h"
9 #include "SkImageFilter.h" 9 #include "SkImageFilter.h"
10 #include "SkScalar.h" 10 #include "SkScalar.h"
11 11
12 class SK_API SkDropShadowImageFilter : public SkImageFilter { 12 class SK_API SkDropShadowImageFilter : public SkImageFilter {
13 public: 13 public:
14 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor, S kImageFilter* input = NULL); 14 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor, S kImageFilter* input = NULL);
15 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 15 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
16 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 16 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
17 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) 17 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
18 18
19 protected: 19 protected:
20 explicit SkDropShadowImageFilter(SkReadBuffer&); 20 explicit SkDropShadowImageFilter(SkReadBuffer&);
21 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 21 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
22 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const SkMatrix&, SkBitmap* result, SkIPoint* loc) SK_OVERRIDE; 22 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const SkMatrix&, SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
23 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 23 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
24 SkIRect* dst) const SK_OVERRIDE; 24 SkIRect* dst) const SK_OVERRIDE;
25 25
26 26
27 27
28 private: 28 private:
29 SkScalar fDx, fDy, fSigmaX, fSigmaY; 29 SkScalar fDx, fDy, fSigmaX, fSigmaY;
30 SkColor fColor; 30 SkColor fColor;
31 typedef SkImageFilter INHERITED; 31 typedef SkImageFilter INHERITED;
32 }; 32 };
OLDNEW
« no previous file with comments | « include/effects/SkDisplacementMapEffect.h ('k') | include/effects/SkMagnifierImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698