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

Unified Diff: include/core/SkXfermode.h

Issue 14189024: Add all remaining separable xfer modes to GPU backend. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkXfermode.h
===================================================================
--- include/core/SkXfermode.h (revision 8762)
+++ include/core/SkXfermode.h (working copy)
@@ -87,6 +87,9 @@
[a, c] - Resulting (alpha, color) values
For these equations, the colors are in premultiplied state.
If no xfermode is specified, kSrcOver is assumed.
+ The modes are ordered by those that can be expressed as a pair of Coeffs, followed by those
+ that aren't Coeffs but have separable r,g,b computations, and finally
+ those that are not separable.
*/
enum Mode {
kClear_Mode, //!< [0, 0]
@@ -107,9 +110,9 @@
// Following blend modes are defined in the CSS Compositing standard:
// https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#blending
kScreen_Mode,
- // all above modes can be expressed as pair of src/dst Coeffs
- kCoeffModesCnt,
- kOverlay_Mode = kCoeffModesCnt,
+ kLastCoeffMode = kScreen_Mode,
+
+ kOverlay_Mode,
kDarken_Mode,
kLighten_Mode,
kColorDodge_Mode,
@@ -119,12 +122,12 @@
kDifference_Mode,
kExclusion_Mode,
kMultiply_Mode,
+ kLastSeparableMode = kMultiply_Mode,
kHue_Mode,
kSaturation_Mode,
kColor_Mode,
kLuminosity_Mode,
-
kLastMode = kLuminosity_Mode
};
« no previous file with comments | « no previous file | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698