OLD | NEW |
| 1 /* |
| 2 * Copyright 2011 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
1 #ifndef _SkTestImageFilters_h | 8 #ifndef _SkTestImageFilters_h |
2 #define _SkTestImageFilters_h | 9 #define _SkTestImageFilters_h |
3 | 10 |
4 #include "SkImageFilter.h" | 11 #include "SkImageFilter.h" |
5 #include "SkPoint.h" | 12 #include "SkPoint.h" |
6 | 13 |
7 // Fun mode that scales down (only) and then scales back up to look pixelated | 14 // Fun mode that scales down (only) and then scales back up to look pixelated |
8 class SK_API SkDownSampleImageFilter : public SkImageFilter { | 15 class SK_API SkDownSampleImageFilter : public SkImageFilter { |
9 public: | 16 public: |
10 static SkDownSampleImageFilter* Create(SkScalar scale, SkImageFilter* input
= NULL) { | 17 static SkDownSampleImageFilter* Create(SkScalar scale, SkImageFilter* input
= NULL) { |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 36 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
30 SkBitmap* result, SkIPoint* loc) const override; | 37 SkBitmap* result, SkIPoint* loc) const override; |
31 | 38 |
32 private: | 39 private: |
33 SkScalar fScale; | 40 SkScalar fScale; |
34 | 41 |
35 typedef SkImageFilter INHERITED; | 42 typedef SkImageFilter INHERITED; |
36 }; | 43 }; |
37 | 44 |
38 #endif | 45 #endif |
OLD | NEW |