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

Unified Diff: Source/platform/graphics/filters/FEComposite.cpp

Issue 779963002: Add the 'lighter' composite operation to feComposite. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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 | « Source/platform/graphics/filters/FEComposite.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEComposite.cpp
diff --git a/Source/platform/graphics/filters/FEComposite.cpp b/Source/platform/graphics/filters/FEComposite.cpp
index 066a66b6eb7590bb0d80625f0d6dad2193c15391..bb89b5c8cf1ad4d88d2b35f13f2b7889c2bad6ce 100644
--- a/Source/platform/graphics/filters/FEComposite.cpp
+++ b/Source/platform/graphics/filters/FEComposite.cpp
@@ -184,6 +184,8 @@ SkXfermode::Mode toXfermode(CompositeOperationType mode)
return SkXfermode::kSrcATop_Mode;
case FECOMPOSITE_OPERATOR_XOR:
return SkXfermode::kXor_Mode;
+ case FECOMPOSITE_OPERATOR_LIGHTER:
+ return SkXfermode::kPlus_Mode;
default:
ASSERT_NOT_REACHED();
return SkXfermode::kSrcOver_Mode;
@@ -237,6 +239,9 @@ static TextStream& operator<<(TextStream& ts, const CompositeOperationType& type
case FECOMPOSITE_OPERATOR_ARITHMETIC:
ts << "ARITHMETIC";
break;
+ case FECOMPOSITE_OPERATOR_LIGHTER:
+ ts << "LIGHTER";
+ break;
}
return ts;
}
« no previous file with comments | « Source/platform/graphics/filters/FEComposite.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698