OLD | NEW |
1 #ifndef SkXfermode_proccoeff_DEFINED | 1 #ifndef SkXfermode_proccoeff_DEFINED |
2 #define SkXfermode_proccoeff_DEFINED | 2 #define SkXfermode_proccoeff_DEFINED |
3 | 3 |
4 #include "SkXfermode.h" | 4 #include "SkXfermode.h" |
5 #include "SkReadBuffer.h" | 5 #include "SkReadBuffer.h" |
6 #include "SkWriteBuffer.h" | 6 #include "SkWriteBuffer.h" |
7 | 7 |
8 struct ProcCoeff { | 8 struct ProcCoeff { |
9 SkXfermodeProc fProc; | 9 SkXfermodeProc fProc; |
10 SkXfermode::Coeff fSC; | 10 SkXfermode::Coeff fSC; |
(...skipping 13 matching lines...) Expand all Loading... |
24 virtual void xfer16(uint16_t dst[], const SkPMColor src[], int count, | 24 virtual void xfer16(uint16_t dst[], const SkPMColor src[], int count, |
25 const SkAlpha aa[]) const SK_OVERRIDE; | 25 const SkAlpha aa[]) const SK_OVERRIDE; |
26 virtual void xferA8(SkAlpha dst[], const SkPMColor src[], int count, | 26 virtual void xferA8(SkAlpha dst[], const SkPMColor src[], int count, |
27 const SkAlpha aa[]) const SK_OVERRIDE; | 27 const SkAlpha aa[]) const SK_OVERRIDE; |
28 | 28 |
29 virtual bool asMode(Mode* mode) const SK_OVERRIDE; | 29 virtual bool asMode(Mode* mode) const SK_OVERRIDE; |
30 | 30 |
31 virtual bool asCoeff(Coeff* sc, Coeff* dc) const SK_OVERRIDE; | 31 virtual bool asCoeff(Coeff* sc, Coeff* dc) const SK_OVERRIDE; |
32 | 32 |
33 #if SK_SUPPORT_GPU | 33 #if SK_SUPPORT_GPU |
34 virtual bool asNewEffect(GrEffect** effect, | 34 virtual bool asNewEffect(GrEffectRef** effect, |
35 GrTexture* background) const SK_OVERRIDE; | 35 GrTexture* background) const SK_OVERRIDE; |
36 #endif | 36 #endif |
37 | 37 |
38 SK_TO_STRING_OVERRIDE() | 38 SK_TO_STRING_OVERRIDE() |
39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcCoeffXfermode) | 39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcCoeffXfermode) |
40 | 40 |
41 protected: | 41 protected: |
42 SkProcCoeffXfermode(const ProcCoeff& rec, Mode mode) { | 42 SkProcCoeffXfermode(const ProcCoeff& rec, Mode mode) { |
43 fMode = mode; | 43 fMode = mode; |
44 fProc = rec.fProc; | 44 fProc = rec.fProc; |
(...skipping 12 matching lines...) Expand all Loading... |
57 | 57 |
58 private: | 58 private: |
59 SkXfermodeProc fProc; | 59 SkXfermodeProc fProc; |
60 Mode fMode; | 60 Mode fMode; |
61 Coeff fSrcCoeff, fDstCoeff; | 61 Coeff fSrcCoeff, fDstCoeff; |
62 | 62 |
63 typedef SkXfermode INHERITED; | 63 typedef SkXfermode INHERITED; |
64 }; | 64 }; |
65 | 65 |
66 #endif // #ifndef SkXfermode_proccoeff_DEFINED | 66 #endif // #ifndef SkXfermode_proccoeff_DEFINED |
OLD | NEW |