Index: include/effects/SkPorterDuff.h |
diff --git a/include/effects/SkPorterDuff.h b/include/effects/SkPorterDuff.h |
index e984e8e9b427d1162ff6e004f3c1807a8f3ca0d0..7a62e47960ef85cafa5b8d5c0111614bb8c63c6d 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 |