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