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

Unified Diff: include/effects/SkPorterDuff.h

Issue 758133004: Add SK_SUPPORT_LEGACY_PORTER_DUFF macro. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | src/effects/SkPorterDuff.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | src/effects/SkPorterDuff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698