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

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

Issue 582963002: Solo gp (Closed) Base URL: https://skia.googlesource.com/skia.git@no_peb
Patch Set: rebase Created 6 years, 3 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 17 matching lines...) Expand all
28 virtual void xfer16(uint16_t dst[], const SkPMColor src[], int count, 28 virtual void xfer16(uint16_t dst[], const SkPMColor src[], int count,
29 const SkAlpha aa[]) const SK_OVERRIDE; 29 const SkAlpha aa[]) const SK_OVERRIDE;
30 virtual void xferA8(SkAlpha dst[], const SkPMColor src[], int count, 30 virtual void xferA8(SkAlpha dst[], const SkPMColor src[], int count,
31 const SkAlpha aa[]) const SK_OVERRIDE; 31 const SkAlpha aa[]) const SK_OVERRIDE;
32 32
33 virtual bool asMode(Mode* mode) const SK_OVERRIDE; 33 virtual bool asMode(Mode* mode) const SK_OVERRIDE;
34 34
35 virtual bool asCoeff(Coeff* sc, Coeff* dc) const SK_OVERRIDE; 35 virtual bool asCoeff(Coeff* sc, Coeff* dc) const SK_OVERRIDE;
36 36
37 #if SK_SUPPORT_GPU 37 #if SK_SUPPORT_GPU
38 virtual bool asNewEffect(GrEffect** effect, 38 virtual bool asFragmentProcessor(GrFragmentProcessor**,
39 GrTexture* background) const SK_OVERRIDE; 39 GrTexture* background) const SK_OVERRIDE;
40 #endif 40 #endif
41 41
42 SK_TO_STRING_OVERRIDE() 42 SK_TO_STRING_OVERRIDE()
43 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcCoeffXfermode) 43 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcCoeffXfermode)
44 44
45 protected: 45 protected:
46 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING 46 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
47 SkProcCoeffXfermode(SkReadBuffer& buffer); 47 SkProcCoeffXfermode(SkReadBuffer& buffer);
48 #endif 48 #endif
49 49
50 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; 50 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE;
51 51
52 Mode getMode() const { return fMode; } 52 Mode getMode() const { return fMode; }
53 53
54 SkXfermodeProc getProc() const { return fProc; } 54 SkXfermodeProc getProc() const { return fProc; }
55 55
56 private: 56 private:
57 SkXfermodeProc fProc; 57 SkXfermodeProc fProc;
58 Mode fMode; 58 Mode fMode;
59 Coeff fSrcCoeff, fDstCoeff; 59 Coeff fSrcCoeff, fDstCoeff;
60 60
61 friend class SkXfermode; 61 friend class SkXfermode;
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