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

Unified Diff: src/effects/SkPorterDuff.cpp

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 | « include/effects/SkPorterDuff.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkPorterDuff.cpp
diff --git a/src/effects/SkPorterDuff.cpp b/src/effects/SkPorterDuff.cpp
index 4cdcf798a1c527b869502ea44ffa163fb2621f16..5564ca7c0232439aadaba9e277c53554f54481ca 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
« no previous file with comments | « include/effects/SkPorterDuff.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698