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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const SkIPoint& target, 57 const SkIPoint& target,
58 TileMode tileMode, 58 TileMode tileMode,
59 bool convolveAlpha, 59 bool convolveAlpha,
60 SkImageFilter* input = NULL, 60 SkImageFilter* input = NULL,
61 const CropRect* cropRect = NULL); 61 const CropRect* cropRect = NULL);
62 virtual ~SkMatrixConvolutionImageFilter(); 62 virtual ~SkMatrixConvolutionImageFilter();
63 63
64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter) 64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage Filter)
65 65
66 protected: 66 protected:
67 SkMatrixConvolutionImageFilter(SkFlattenableReadBuffer& buffer); 67 SkMatrixConvolutionImageFilter(SkReadBuffer& buffer);
68 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
69 69
70 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 70 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
71 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE; 71 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE;
72 72
73 #if SK_SUPPORT_GPU 73 #if SK_SUPPORT_GPU
74 virtual bool asNewEffect(GrEffectRef** effect, 74 virtual bool asNewEffect(GrEffectRef** effect,
75 GrTexture*, 75 GrTexture*,
76 const SkMatrix& matrix, 76 const SkMatrix& matrix,
77 const SkIRect& bounds) const SK_OVERRIDE; 77 const SkIRect& bounds) const SK_OVERRIDE;
78 #endif 78 #endif
(...skipping 22 matching lines...) Expand all
101 SkBitmap* result, 101 SkBitmap* result,
102 const SkIRect& rect, 102 const SkIRect& rect,
103 const SkIRect& bounds); 103 const SkIRect& bounds);
104 void filterBorderPixels(const SkBitmap& src, 104 void filterBorderPixels(const SkBitmap& src,
105 SkBitmap* result, 105 SkBitmap* result,
106 const SkIRect& rect, 106 const SkIRect& rect,
107 const SkIRect& bounds); 107 const SkIRect& bounds);
108 }; 108 };
109 109
110 #endif 110 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698