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

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

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. Created 6 years, 5 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/SkMagnifierImageFilter.h ('k') | include/effects/SkPerlinNoiseShader.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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const CropRect* cropRect); 79 const CropRect* cropRect);
80 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); 80 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer);
81 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 81 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
82 82
83 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 83 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
84 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 84 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE; 85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE;
86 86
87 87
88 #if SK_SUPPORT_GPU 88 #if SK_SUPPORT_GPU
89 virtual bool asNewEffect(GrEffectRef** effect, 89 virtual bool asNewEffect(GrEffect** effect,
90 GrTexture*, 90 GrTexture*,
91 const SkMatrix& ctm, 91 const SkMatrix& ctm,
92 const SkIRect& bounds) const SK_OVERRIDE; 92 const SkIRect& bounds) const SK_OVERRIDE;
93 #endif 93 #endif
94 94
95 private: 95 private:
96 SkISize fKernelSize; 96 SkISize fKernelSize;
97 SkScalar* fKernel; 97 SkScalar* fKernel;
98 SkScalar fGain; 98 SkScalar fGain;
99 SkScalar fBias; 99 SkScalar fBias;
(...skipping 16 matching lines...) Expand all
116 SkBitmap* result, 116 SkBitmap* result,
117 const SkIRect& rect, 117 const SkIRect& rect,
118 const SkIRect& bounds) const; 118 const SkIRect& bounds) const;
119 void filterBorderPixels(const SkBitmap& src, 119 void filterBorderPixels(const SkBitmap& src,
120 SkBitmap* result, 120 SkBitmap* result,
121 const SkIRect& rect, 121 const SkIRect& rect,
122 const SkIRect& bounds) const; 122 const SkIRect& bounds) const;
123 }; 123 };
124 124
125 #endif 125 #endif
OLDNEW
« no previous file with comments | « include/effects/SkMagnifierImageFilter.h ('k') | include/effects/SkPerlinNoiseShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698