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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 protected: 70 protected:
71 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, 71 SkMatrixConvolutionImageFilter(const SkISize& kernelSize,
72 const SkScalar* kernel, 72 const SkScalar* kernel,
73 SkScalar gain, 73 SkScalar gain,
74 SkScalar bias, 74 SkScalar bias,
75 const SkIPoint& kernelOffset, 75 const SkIPoint& kernelOffset,
76 TileMode tileMode, 76 TileMode tileMode,
77 bool convolveAlpha, 77 bool convolveAlpha,
78 SkImageFilter* input, 78 SkImageFilter* input,
79 const CropRect* cropRect); 79 const CropRect* cropRect);
80 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
80 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); 81 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer);
82 #endif
81 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 83 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
82 84
83 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 85 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
84 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 86 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE; 87 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE;
86 88
87 89
88 #if SK_SUPPORT_GPU 90 #if SK_SUPPORT_GPU
89 virtual bool asNewEffect(GrEffect** effect, 91 virtual bool asNewEffect(GrEffect** effect,
90 GrTexture*, 92 GrTexture*,
(...skipping 25 matching lines...) Expand all
116 SkBitmap* result, 118 SkBitmap* result,
117 const SkIRect& rect, 119 const SkIRect& rect,
118 const SkIRect& bounds) const; 120 const SkIRect& bounds) const;
119 void filterBorderPixels(const SkBitmap& src, 121 void filterBorderPixels(const SkBitmap& src,
120 SkBitmap* result, 122 SkBitmap* result,
121 const SkIRect& rect, 123 const SkIRect& rect,
122 const SkIRect& bounds) const; 124 const SkIRect& bounds) const;
123 }; 125 };
124 126
125 #endif 127 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698