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

Unified Diff: include/core/SkXfermode.h

Issue 22918012: Add luminance mask transfer modes. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 months 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
Index: include/core/SkXfermode.h
diff --git a/include/core/SkXfermode.h b/include/core/SkXfermode.h
index ef00f71b75ecb95bf4a900718efb79356e0a1b35..991fee500dc479e571b680c17cacad9a4d43f35a 100644
--- a/include/core/SkXfermode.h
+++ b/include/core/SkXfermode.h
@@ -127,7 +127,14 @@ public:
kSaturation_Mode,
kColor_Mode,
kLuminosity_Mode,
- kLastMode = kLuminosity_Mode
+
+ // Luminance mask modes, to support SVG & CSS luminance masks.
+ // http://www.w3.org/TR/SVG/masking.html#Masking
+ // http://www.w3.org/TR/css-masking/
+ kSrcInLum_Mode,
reed1 2013/08/20 17:21:35 Can we initially introduce this xfermode w/o addin
+ kDstInLum_Mode,
+
+ kLastMode = kDstInLum_Mode
};
/**
« no previous file with comments | « gm/xfermodes3.cpp ('k') | src/core/SkXfermode.cpp » ('j') | src/pdf/SkPDFGraphicState.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698