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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 4 months 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/SkLightingImageFilter.h ('k') | include/effects/SkMagnifierImageFilter.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 2013 Google Inc. 2 * Copyright 2013 Google Inc.
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 SkLumaColorFilter_DEFINED 8 #ifndef SkLumaColorFilter_DEFINED
9 #define SkLumaColorFilter_DEFINED 9 #define SkLumaColorFilter_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 virtual void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const SK_OVERRIDE; 28 virtual void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const SK_OVERRIDE;
29 29
30 #if SK_SUPPORT_GPU 30 #if SK_SUPPORT_GPU
31 virtual GrEffect* asNewEffect(GrContext*) const SK_OVERRIDE; 31 virtual GrEffect* asNewEffect(GrContext*) const SK_OVERRIDE;
32 #endif 32 #endif
33 33
34 SK_TO_STRING_OVERRIDE() 34 SK_TO_STRING_OVERRIDE()
35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLumaColorFilter) 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLumaColorFilter)
36 36
37 protected: 37 protected:
38 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
38 SkLumaColorFilter(SkReadBuffer& buffer); 39 SkLumaColorFilter(SkReadBuffer& buffer);
40 #endif
39 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 41 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
40 42
41 private: 43 private:
42 SkLumaColorFilter(); 44 SkLumaColorFilter();
43 45
44 typedef SkColorFilter INHERITED; 46 typedef SkColorFilter INHERITED;
45 }; 47 };
46 48
47 #endif 49 #endif
OLDNEW
« no previous file with comments | « include/effects/SkLightingImageFilter.h ('k') | include/effects/SkMagnifierImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698