OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The Android Open Source Project | 2 * Copyright 2013 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 SkXfermodeImageFilter_DEFINED | 8 #ifndef SkXfermodeImageFilter_DEFINED |
9 #define SkXfermodeImageFilter_DEFINED | 9 #define SkXfermodeImageFilter_DEFINED |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 SkIPoint* offset) const SK_OVERRIDE; | 39 SkIPoint* offset) const SK_OVERRIDE; |
40 #if SK_SUPPORT_GPU | 40 #if SK_SUPPORT_GPU |
41 virtual bool canFilterImageGPU() const SK_OVERRIDE; | 41 virtual bool canFilterImageGPU() const SK_OVERRIDE; |
42 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context
& ctx, | 42 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context
& ctx, |
43 SkBitmap* result, SkIPoint* offset) const SK_OVE
RRIDE; | 43 SkBitmap* result, SkIPoint* offset) const SK_OVE
RRIDE; |
44 #endif | 44 #endif |
45 | 45 |
46 protected: | 46 protected: |
47 SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* inputs[2], | 47 SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* inputs[2], |
48 const CropRect* cropRect); | 48 const CropRect* cropRect); |
| 49 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
49 explicit SkXfermodeImageFilter(SkReadBuffer& buffer); | 50 explicit SkXfermodeImageFilter(SkReadBuffer& buffer); |
| 51 #endif |
50 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 52 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
51 | 53 |
52 private: | 54 private: |
53 SkXfermode* fMode; | 55 SkXfermode* fMode; |
54 typedef SkImageFilter INHERITED; | 56 typedef SkImageFilter INHERITED; |
55 }; | 57 }; |
56 | 58 |
57 #endif | 59 #endif |
OLD | NEW |