Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: include/effects/SkMergeImageFilter.h

Issue 768183002: Revert of Remove SK_SUPPORT_LEGACY_DEEPFLATTENING. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/effects/SkMatrixImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 20 matching lines...) Expand all
31 return SkNEW_ARGS(SkMergeImageFilter, (filters, count, modes, cropRect, uniqueID)); 31 return SkNEW_ARGS(SkMergeImageFilter, (filters, count, modes, cropRect, uniqueID));
32 } 32 }
33 33
34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter) 34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter)
35 35
36 protected: 36 protected:
37 SkMergeImageFilter(SkImageFilter* filters[], int count, 37 SkMergeImageFilter(SkImageFilter* filters[], int count,
38 const SkXfermode::Mode modes[], 38 const SkXfermode::Mode modes[],
39 const CropRect* cropRect, 39 const CropRect* cropRect,
40 uint32_t uniqueID); 40 uint32_t uniqueID);
41 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
42 explicit SkMergeImageFilter(SkReadBuffer& buffer);
43 #endif
41 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
42 45
43 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 46 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
44 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 47 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
45 48
46 private: 49 private:
47 uint8_t* fModes; // SkXfermode::Mode 50 uint8_t* fModes; // SkXfermode::Mode
48 51
49 // private storage, to avoid dynamically allocating storage for our copy 52 // private storage, to avoid dynamically allocating storage for our copy
50 // of the modes (unless the count is so large we can't fit). 53 // of the modes (unless the count is so large we can't fit).
51 intptr_t fStorage[16]; 54 intptr_t fStorage[16];
52 55
53 void initAllocModes(); 56 void initAllocModes();
54 void initModes(const SkXfermode::Mode []); 57 void initModes(const SkXfermode::Mode []);
55 58
56 typedef SkImageFilter INHERITED; 59 typedef SkImageFilter INHERITED;
57 }; 60 };
58 61
59 #endif 62 #endif
OLDNEW
« no previous file with comments | « include/effects/SkMatrixImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698