diff options
author | tfarina <tfarina@chromium.org> | 2014-12-03 13:13:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-03 13:13:02 -0800 |
commit | 9ed02e40d1069a99c89013b2d442d20e07913206 (patch) | |
tree | a53bc5816ae12f2ab12dd110f196ef7d5d616e95 /src/effects | |
parent | 4f10844149bbc05f0259a1b3199c2f995756ed60 (diff) |
Add SK_SUPPORT_LEGACY_PORTER_DUFF macro.
This trick will be used to remove deprecated SkPorterDuff API. But first
we need to add it so Android can be updated later.
BUG=skia:3178
R=scroggo@google.com
Review URL: https://codereview.chromium.org/758133004
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkPorterDuff.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/effects/SkPorterDuff.cpp b/src/effects/SkPorterDuff.cpp index 4cdcf798a1..5564ca7c02 100644 --- a/src/effects/SkPorterDuff.cpp +++ b/src/effects/SkPorterDuff.cpp @@ -10,6 +10,8 @@ #include "SkPorterDuff.h" #include "SkXfermode.h" +#ifdef SK_SUPPORT_LEGACY_PORTER_DUFF + /* This file just exists as a compatibility layer, gluing the PorterDuff API into the (extended) SkXfermode API */ @@ -85,3 +87,5 @@ SkXfermodeProc SkPorterDuff::GetXfermodeProc(Mode mode) { SkXfermodeProc16 SkPorterDuff::GetXfermodeProc16(Mode mode, SkColor srcColor) { return SkXfermode::GetProc16(gPairs[mode].fXF, srcColor); } + +#endif |