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

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

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. Created 6 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
« no previous file with comments | « src/core/SkXfermode.cpp ('k') | src/effects/SkAlphaThresholdFilter.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 #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
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(GrEffectRef** effect, 34 virtual bool asNewEffect(GrEffect** 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
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
OLDNEW
« no previous file with comments | « src/core/SkXfermode.cpp ('k') | src/effects/SkAlphaThresholdFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698