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

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

Issue 1670063002: extend modecolorfilter to 4f (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove pin for modulate Created 4 years, 10 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 | « src/core/SkXfermode.cpp ('k') | tests/SkColor4fTest.cpp » ('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 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
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
OLDNEW
« no previous file with comments | « src/core/SkXfermode.cpp ('k') | tests/SkColor4fTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698