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 #ifndef SkMergeImageFilter_DEFINED | 8 #ifndef SkMergeImageFilter_DEFINED |
9 #define SkMergeImageFilter_DEFINED | 9 #define SkMergeImageFilter_DEFINED |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 virtual ~SkMergeImageFilter(); | 23 virtual ~SkMergeImageFilter(); |
24 | 24 |
25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter) | 25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter) |
26 | 26 |
27 protected: | 27 protected: |
28 SkMergeImageFilter(SkReadBuffer& buffer); | 28 SkMergeImageFilter(SkReadBuffer& buffer); |
29 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 29 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
30 | 30 |
31 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 31 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, |
32 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE; | 32 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE; |
33 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) SK_OV
ERRIDE; | |
34 | |
35 private: | 33 private: |
36 uint8_t* fModes; // SkXfermode::Mode | 34 uint8_t* fModes; // SkXfermode::Mode |
37 | 35 |
38 // private storage, to avoid dynamically allocating storage for our copy | 36 // private storage, to avoid dynamically allocating storage for our copy |
39 // of the modes (unless the count is so large we can't fit). | 37 // of the modes (unless the count is so large we can't fit). |
40 intptr_t fStorage[16]; | 38 intptr_t fStorage[16]; |
41 | 39 |
42 void initAllocModes(); | 40 void initAllocModes(); |
43 void initModes(const SkXfermode::Mode []); | 41 void initModes(const SkXfermode::Mode []); |
44 | 42 |
45 typedef SkImageFilter INHERITED; | 43 typedef SkImageFilter INHERITED; |
46 }; | 44 }; |
47 | 45 |
48 #endif | 46 #endif |
OLD | NEW |