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

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

Issue 189913021: Implement support for a Context parameter in image filters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Revert all but the Context changes. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/effects/SkMagnifierImageFilter.h ('k') | include/effects/SkMergeImageFilter.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 kernelOffset, tileMod e, convolveAlpha, 64 kernelOffset, tileMod e, convolveAlpha,
65 input, cropRect)); 65 input, cropRect));
66 } 66 }
67 67
68 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter) 68 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter)
69 69
70 protected: 70 protected:
71 SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); 71 SkMatrixConvolutionImageFilter(SkReadBuffer& buffer);
72 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 72 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
73 73
74 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 74 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
75 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 75 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
76 76
77 #if SK_SUPPORT_GPU 77 #if SK_SUPPORT_GPU
78 virtual bool asNewEffect(GrEffectRef** effect, 78 virtual bool asNewEffect(GrEffectRef** effect,
79 GrTexture*, 79 GrTexture*,
80 const SkMatrix& matrix, 80 const SkMatrix& ctm,
81 const SkIRect& bounds) const SK_OVERRIDE; 81 const SkIRect& bounds) const SK_OVERRIDE;
82 #endif 82 #endif
83 83
84 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS 84 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
85 public: 85 public:
86 #endif 86 #endif
87 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, 87 SkMatrixConvolutionImageFilter(const SkISize& kernelSize,
88 const SkScalar* kernel, 88 const SkScalar* kernel,
89 SkScalar gain, 89 SkScalar gain,
90 SkScalar bias, 90 SkScalar bias,
(...skipping 27 matching lines...) Expand all
118 SkBitmap* result, 118 SkBitmap* result,
119 const SkIRect& rect, 119 const SkIRect& rect,
120 const SkIRect& bounds) const; 120 const SkIRect& bounds) const;
121 void filterBorderPixels(const SkBitmap& src, 121 void filterBorderPixels(const SkBitmap& src,
122 SkBitmap* result, 122 SkBitmap* result,
123 const SkIRect& rect, 123 const SkIRect& rect,
124 const SkIRect& bounds) const; 124 const SkIRect& bounds) const;
125 }; 125 };
126 126
127 #endif 127 #endif
OLDNEW
« no previous file with comments | « include/effects/SkMagnifierImageFilter.h ('k') | include/effects/SkMergeImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698