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

Side by Side Diff: src/core/SkXfermode_proccoeff.h

Issue 2177103002: stages for most xfermodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simpler without macro Created 4 years, 5 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
« src/core/SkXfermode.cpp ('K') | « src/core/SkXfermode.cpp ('k') | no next file » | 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 2015 Google Inc. 2 * Copyright 2015 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 SkXfermode_proccoeff_DEFINED 8 #ifndef SkXfermode_proccoeff_DEFINED
9 #define SkXfermode_proccoeff_DEFINED 9 #define SkXfermode_proccoeff_DEFINED
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 #if SK_SUPPORT_GPU 47 #if SK_SUPPORT_GPU
48 sk_sp<GrFragmentProcessor> makeFragmentProcessorForImageFilter( 48 sk_sp<GrFragmentProcessor> makeFragmentProcessorForImageFilter(
49 sk_sp<GrFragmentProcesso r>) const override; 49 sk_sp<GrFragmentProcesso r>) const override;
50 sk_sp<GrXPFactory> asXPFactory() const override; 50 sk_sp<GrXPFactory> asXPFactory() const override;
51 #endif 51 #endif
52 52
53 SK_TO_STRING_OVERRIDE() 53 SK_TO_STRING_OVERRIDE()
54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcCoeffXfermode) 54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcCoeffXfermode)
55 55
56 bool onAppendStages(SkRasterPipeline*) const override;
57
56 protected: 58 protected:
57 void flatten(SkWriteBuffer& buffer) const override; 59 void flatten(SkWriteBuffer& buffer) const override;
58 60
59 Mode getMode() const { return fMode; } 61 Mode getMode() const { return fMode; }
60 62
61 SkXfermodeProc getProc() const { return fProc; } 63 SkXfermodeProc getProc() const { return fProc; }
62 64
63 private: 65 private:
64 SkXfermodeProc fProc; 66 SkXfermodeProc fProc;
65 Mode fMode; 67 Mode fMode;
66 Coeff fSrcCoeff, fDstCoeff; 68 Coeff fSrcCoeff, fDstCoeff;
67 69
68 friend class SkXfermode; 70 friend class SkXfermode;
69 71
70 typedef SkXfermode INHERITED; 72 typedef SkXfermode INHERITED;
71 }; 73 };
72 74
73 #endif // #ifndef SkXfermode_proccoeff_DEFINED 75 #endif // #ifndef SkXfermode_proccoeff_DEFINED
OLDNEW
« src/core/SkXfermode.cpp ('K') | « src/core/SkXfermode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698