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

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

Issue 22209002: Added ctm matrix to GPU path (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Removed dummy matrix Created 7 years, 4 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/SkDisplacementMapEffect.h ('k') | include/effects/SkXfermodeImageFilter.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 8
9 #ifndef SkMorphologyImageFilter_DEFINED 9 #ifndef SkMorphologyImageFilter_DEFINED
10 #define SkMorphologyImageFilter_DEFINED 10 #define SkMorphologyImageFilter_DEFINED
(...skipping 20 matching lines...) Expand all
31 }; 31 };
32 32
33 class SK_API SkDilateImageFilter : public SkMorphologyImageFilter { 33 class SK_API SkDilateImageFilter : public SkMorphologyImageFilter {
34 public: 34 public:
35 SkDilateImageFilter(int radiusX, int radiusY, SkImageFilter* input = NULL) 35 SkDilateImageFilter(int radiusX, int radiusY, SkImageFilter* input = NULL)
36 : INHERITED(radiusX, radiusY, input) {} 36 : INHERITED(radiusX, radiusY, input) {}
37 37
38 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 38 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
39 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 39 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
40 #if SK_SUPPORT_GPU 40 #if SK_SUPPORT_GPU
41 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult, 41 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm,
42 SkIPoint* offset) SK_OVERRIDE; 42 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
43 #endif 43 #endif
44 44
45 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDilateImageFilter) 45 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDilateImageFilter)
46 46
47 protected: 47 protected:
48 SkDilateImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} 48 SkDilateImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {}
49 49
50 private: 50 private:
51 typedef SkMorphologyImageFilter INHERITED; 51 typedef SkMorphologyImageFilter INHERITED;
52 }; 52 };
53 53
54 class SK_API SkErodeImageFilter : public SkMorphologyImageFilter { 54 class SK_API SkErodeImageFilter : public SkMorphologyImageFilter {
55 public: 55 public:
56 SkErodeImageFilter(int radiusX, int radiusY, SkImageFilter* input = NULL) 56 SkErodeImageFilter(int radiusX, int radiusY, SkImageFilter* input = NULL)
57 : INHERITED(radiusX, radiusY, input) {} 57 : INHERITED(radiusX, radiusY, input) {}
58 58
59 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 59 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
60 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 60 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
61 #if SK_SUPPORT_GPU 61 #if SK_SUPPORT_GPU
62 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult, 62 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm,
63 SkIPoint* offset) SK_OVERRIDE; 63 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
64 #endif 64 #endif
65 65
66 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkErodeImageFilter) 66 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkErodeImageFilter)
67 67
68 protected: 68 protected:
69 SkErodeImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} 69 SkErodeImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {}
70 70
71 private: 71 private:
72 typedef SkMorphologyImageFilter INHERITED; 72 typedef SkMorphologyImageFilter INHERITED;
73 }; 73 };
74 74
75 #endif 75 #endif
OLDNEW
« no previous file with comments | « include/effects/SkDisplacementMapEffect.h ('k') | include/effects/SkXfermodeImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698