OLD | NEW |
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 |
11 #include "SkXfermode.h" | 11 #include "SkXfermode.h" |
12 #include "SkReadBuffer.h" | 12 #include "SkReadBuffer.h" |
13 #include "SkWriteBuffer.h" | 13 #include "SkWriteBuffer.h" |
14 | 14 |
15 struct ProcCoeff { | 15 struct ProcCoeff { |
16 SkXfermodeProc fProc; | 16 SkXfermodeProc fProc; |
| 17 SkXfermodeProc4f fProc4f; |
17 SkXfermode::Coeff fSC; | 18 SkXfermode::Coeff fSC; |
18 SkXfermode::Coeff fDC; | 19 SkXfermode::Coeff fDC; |
19 }; | 20 }; |
20 | 21 |
21 #define CANNOT_USE_COEFF SkXfermode::Coeff(-1) | 22 #define CANNOT_USE_COEFF SkXfermode::Coeff(-1) |
22 | 23 |
23 class SK_API SkProcCoeffXfermode : public SkXfermode { | 24 class SK_API SkProcCoeffXfermode : public SkXfermode { |
24 public: | 25 public: |
25 SkProcCoeffXfermode(const ProcCoeff& rec, Mode mode) { | 26 SkProcCoeffXfermode(const ProcCoeff& rec, Mode mode) { |
26 fMode = mode; | 27 fMode = mode; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 SkXfermodeProc fProc; | 65 SkXfermodeProc fProc; |
65 Mode fMode; | 66 Mode fMode; |
66 Coeff fSrcCoeff, fDstCoeff; | 67 Coeff fSrcCoeff, fDstCoeff; |
67 | 68 |
68 friend class SkXfermode; | 69 friend class SkXfermode; |
69 | 70 |
70 typedef SkXfermode INHERITED; | 71 typedef SkXfermode INHERITED; |
71 }; | 72 }; |
72 | 73 |
73 #endif // #ifndef SkXfermode_proccoeff_DEFINED | 74 #endif // #ifndef SkXfermode_proccoeff_DEFINED |
OLD | NEW |