OLD | NEW |
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 SkMagnifierImageFilter_DEFINED | 9 #ifndef SkMagnifierImageFilter_DEFINED |
10 #define SkMagnifierImageFilter_DEFINED | 10 #define SkMagnifierImageFilter_DEFINED |
(...skipping 10 matching lines...) Expand all Loading... |
21 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMagnifierImageFilter) | 21 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMagnifierImageFilter) |
22 | 22 |
23 protected: | 23 protected: |
24 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset); | 24 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset); |
25 explicit SkMagnifierImageFilter(SkReadBuffer& buffer); | 25 explicit SkMagnifierImageFilter(SkReadBuffer& buffer); |
26 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 26 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
27 | 27 |
28 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 28 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
29 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; | 29 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; |
30 #if SK_SUPPORT_GPU | 30 #if SK_SUPPORT_GPU |
31 virtual bool asNewEffect(GrEffectRef** effect, GrTexture* texture, const SkM
atrix& matrix, const SkIRect& bounds) const SK_OVERRIDE; | 31 virtual bool asNewEffect(GrEffect** effect, GrTexture* texture, const SkMatr
ix& matrix, |
| 32 const SkIRect& bounds) const SK_OVERRIDE; |
32 #endif | 33 #endif |
33 | 34 |
34 private: | 35 private: |
35 SkRect fSrcRect; | 36 SkRect fSrcRect; |
36 SkScalar fInset; | 37 SkScalar fInset; |
37 typedef SkImageFilter INHERITED; | 38 typedef SkImageFilter INHERITED; |
38 }; | 39 }; |
39 | 40 |
40 #endif | 41 #endif |
OLD | NEW |