aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects
diff options
context:
space:
mode:
authorGravatar tfarina <tfarina@chromium.org>2014-12-03 13:13:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-03 13:13:02 -0800
commit9ed02e40d1069a99c89013b2d442d20e07913206 (patch)
treea53bc5816ae12f2ab12dd110f196ef7d5d616e95 /include/effects
parent4f10844149bbc05f0259a1b3199c2f995756ed60 (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 'include/effects')
-rw-r--r--include/effects/SkPorterDuff.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/effects/SkPorterDuff.h b/include/effects/SkPorterDuff.h
index e984e8e9b4..7a62e47960 100644
--- a/include/effects/SkPorterDuff.h
+++ b/include/effects/SkPorterDuff.h
@@ -11,6 +11,12 @@
#include "SkColor.h"
#include "SkXfermode.h"
+//#define SK_SUPPORT_LEGACY_PORTER_DUFF
+
+// Temporary guard until we can remove the dependencies in android. Then we
+// plan to remove this entirely.
+#ifdef SK_SUPPORT_LEGACY_PORTER_DUFF
+
class SkXfermode;
class SK_API SkPorterDuff {
@@ -77,3 +83,5 @@ public:
} SK_ATTR_DEPRECATED("use SkXfermode::Mode");
#endif
+
+#endif