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

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

Issue 1535353002: change all factories to return their base-class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/SkEmbossMaskFilter.h ('k') | include/effects/SkXfermodeImageFilter.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 2012 The Android Open Source Project 2 * Copyright 2012 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 SkMatrixConvolutionImageFilter_DEFINED 8 #ifndef SkMatrixConvolutionImageFilter_DEFINED
9 #define SkMatrixConvolutionImageFilter_DEFINED 9 #define SkMatrixConvolutionImageFilter_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 offset of {1, 1}). 45 offset of {1, 1}).
46 @param tileMode How accesses outside the image are treated. (@see 46 @param tileMode How accesses outside the image are treated. (@see
47 TileMode). 47 TileMode).
48 @param convolveAlpha If true, all channels are convolved. If false, 48 @param convolveAlpha If true, all channels are convolved. If false,
49 only the RGB channels are convolved, and 49 only the RGB channels are convolved, and
50 alpha is copied from the source image. 50 alpha is copied from the source image.
51 @param input The input image filter. If NULL, the src bitmap 51 @param input The input image filter. If NULL, the src bitmap
52 passed to filterImage() is used instead. 52 passed to filterImage() is used instead.
53 @param cropRect The rectangle to which the output processing will be limited. 53 @param cropRect The rectangle to which the output processing will be limited.
54 */ 54 */
55 static SkMatrixConvolutionImageFilter* Create(const SkISize& kernelSize, 55 static SkImageFilter* Create(const SkISize& kernelSize,
56 const SkScalar* kernel, 56 const SkScalar* kernel,
57 SkScalar gain, 57 SkScalar gain,
58 SkScalar bias, 58 SkScalar bias,
59 const SkIPoint& kernelOffset, 59 const SkIPoint& kernelOffset,
60 TileMode tileMode, 60 TileMode tileMode,
61 bool convolveAlpha, 61 bool convolveAlpha,
62 SkImageFilter* input = NULL, 62 SkImageFilter* input = NULL,
63 const CropRect* cropRect = NUL L); 63 const CropRect* cropRect = NULL);
64 64
65 SK_TO_STRING_OVERRIDE() 65 SK_TO_STRING_OVERRIDE()
66 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter) 66 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter)
67 67
68 protected: 68 protected:
69 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, 69 SkMatrixConvolutionImageFilter(const SkISize& kernelSize,
70 const SkScalar* kernel, 70 const SkScalar* kernel,
71 SkScalar gain, 71 SkScalar gain,
72 SkScalar bias, 72 SkScalar bias,
73 const SkIPoint& kernelOffset, 73 const SkIPoint& kernelOffset,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 SkBitmap* result, 111 SkBitmap* result,
112 const SkIRect& rect, 112 const SkIRect& rect,
113 const SkIRect& bounds) const; 113 const SkIRect& bounds) const;
114 void filterBorderPixels(const SkBitmap& src, 114 void filterBorderPixels(const SkBitmap& src,
115 SkBitmap* result, 115 SkBitmap* result,
116 const SkIRect& rect, 116 const SkIRect& rect,
117 const SkIRect& bounds) const; 117 const SkIRect& bounds) const;
118 }; 118 };
119 119
120 #endif 120 #endif
OLDNEW
« no previous file with comments | « include/effects/SkEmbossMaskFilter.h ('k') | include/effects/SkXfermodeImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698