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

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

Issue 612483005: Port of https://skia.googlesource.com/skia.git/+/3a49520696b2eca69e57884657d23fd2402ccfd1 to M38 br… (Closed) Base URL: https://skia.googlesource.com/skia.git@m38_2125
Patch Set: Created 6 years, 2 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 | « no previous file | src/effects/SkMatrixConvolutionImageFilter.cpp » ('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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SkMatrixConvolutionImageFilter* 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 = NUL L);
64 return SkNEW_ARGS(SkMatrixConvolutionImageFilter, (kernelSize, kernel, g ain, bias,
65 kernelOffset, tileMod e, convolveAlpha,
66 input, cropRect));
67 }
68 64
69 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter) 65 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter)
70 66
71 protected: 67 protected:
72 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, 68 SkMatrixConvolutionImageFilter(const SkISize& kernelSize,
73 const SkScalar* kernel, 69 const SkScalar* kernel,
74 SkScalar gain, 70 SkScalar gain,
75 SkScalar bias, 71 SkScalar bias,
76 const SkIPoint& kernelOffset, 72 const SkIPoint& kernelOffset,
77 TileMode tileMode, 73 TileMode tileMode,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 SkBitmap* result, 113 SkBitmap* result,
118 const SkIRect& rect, 114 const SkIRect& rect,
119 const SkIRect& bounds) const; 115 const SkIRect& bounds) const;
120 void filterBorderPixels(const SkBitmap& src, 116 void filterBorderPixels(const SkBitmap& src,
121 SkBitmap* result, 117 SkBitmap* result,
122 const SkIRect& rect, 118 const SkIRect& rect,
123 const SkIRect& bounds) const; 119 const SkIRect& bounds) const;
124 }; 120 };
125 121
126 #endif 122 #endif
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkMatrixConvolutionImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698