diff options
author | 2014-05-01 15:56:52 +0000 | |
---|---|---|
committer | 2014-05-01 15:56:52 +0000 | |
commit | 2e74f9d375d2c5d0a3eb4acc7cecd35afa6bf4ae (patch) | |
tree | a03f9353cb24e92e456ddf2f4f444fbe42e430de /include/core | |
parent | c2d6a20ef826eddf5348a9dc61597815126f9393 (diff) |
remove code behind SK_SUPPORT_LEGACY_PROCXFERMODE
BUG=skia:
R=scroggo@google.com
Review URL: https://codereview.chromium.org/264923004
git-svn-id: http://skia.googlecode.com/svn/trunk@14504 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkXfermode.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/include/core/SkXfermode.h b/include/core/SkXfermode.h index 9bad1e8d37..88f3f620d2 100644 --- a/include/core/SkXfermode.h +++ b/include/core/SkXfermode.h @@ -17,8 +17,6 @@ class GrEffectRef; class GrTexture; class SkString; -//#define SK_SUPPORT_LEGACY_PROCXFERMODE - /** \class SkXfermode * * SkXfermode is the base class for objects that are called to implement custom @@ -246,54 +244,4 @@ private: typedef SkFlattenable INHERITED; }; -/////////////////////////////////////////////////////////////////////////////// - -#ifdef SK_SUPPORT_LEGACY_PROCXFERMODE -/** \class SkProcXfermode - - SkProcXfermode is a xfermode that applies the specified proc to its colors. - This class is not exported to java. -*/ -class SK_API SkProcXfermode : public SkXfermode { -public: - static SkProcXfermode* Create(SkXfermodeProc proc) { - return SkNEW_ARGS(SkProcXfermode, (proc)); - } - - // overrides from SkXfermode - virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count, - const SkAlpha aa[]) const SK_OVERRIDE; - virtual void xfer16(uint16_t dst[], const SkPMColor src[], int count, - const SkAlpha aa[]) const SK_OVERRIDE; - virtual void xferA8(SkAlpha dst[], const SkPMColor src[], int count, - const SkAlpha aa[]) const SK_OVERRIDE; - - SK_TO_STRING_OVERRIDE() - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkProcXfermode) - -protected: - SkProcXfermode(SkReadBuffer&); - virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; - - // allow subclasses to update this after we unflatten - void setProc(SkXfermodeProc proc) { - fProc = proc; - } - - SkXfermodeProc getProc() const { - return fProc; - } - -#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS -public: -#endif - SkProcXfermode(SkXfermodeProc proc) : fProc(proc) {} - -private: - SkXfermodeProc fProc; - - typedef SkXfermode INHERITED; -}; -#endif - #endif |