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

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

Issue 1826893002: Switch new SkImageFilter internal methods over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change method name to drawSpriteWithFilter Created 4 years, 9 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/SkComposeImageFilter.h ('k') | include/effects/SkImageSource.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 #ifndef SkDropShadowImageFilter_DEFINED 8 #ifndef SkDropShadowImageFilter_DEFINED
9 #define SkDropShadowImageFilter_DEFINED 9 #define SkDropShadowImageFilter_DEFINED
10 10
(...skipping 18 matching lines...) Expand all
29 return new SkDropShadowImageFilter(dx, dy, sigmaX, sigmaY, color, shadow Mode, input, 29 return new SkDropShadowImageFilter(dx, dy, sigmaX, sigmaY, color, shadow Mode, input,
30 cropRect); 30 cropRect);
31 } 31 }
32 32
33 SkRect computeFastBounds(const SkRect&) const override; 33 SkRect computeFastBounds(const SkRect&) const override;
34 SK_TO_STRING_OVERRIDE() 34 SK_TO_STRING_OVERRIDE()
35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
36 36
37 protected: 37 protected:
38 void flatten(SkWriteBuffer&) const override; 38 void flatten(SkWriteBuffer&) const override;
39 SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&, 39 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
40 SkIPoint* offset) const override; 40 SkIPoint* offset) const override;
41 SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection ) const override; 41 SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection ) const override;
42 42
43 private: 43 private:
44 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, 44 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor,
45 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect); 45 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect);
46 46
47 SkScalar fDx, fDy, fSigmaX, fSigmaY; 47 SkScalar fDx, fDy, fSigmaX, fSigmaY;
48 SkColor fColor; 48 SkColor fColor;
49 ShadowMode fShadowMode; 49 ShadowMode fShadowMode;
50 50
51 typedef SkImageFilter INHERITED; 51 typedef SkImageFilter INHERITED;
52 }; 52 };
53 53
54 #endif 54 #endif
OLDNEW
« no previous file with comments | « include/effects/SkComposeImageFilter.h ('k') | include/effects/SkImageSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698