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

Unified Diff: Source/core/svg/SVGFEBlendElement.h

Issue 419253002: Use WebBlendMode in FEBlend (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebBlendModeNormal -> "normal" (not "source-over"). Created 6 years, 5 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 | Source/core/svg/SVGFEBlendElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEBlendElement.h
diff --git a/Source/core/svg/SVGFEBlendElement.h b/Source/core/svg/SVGFEBlendElement.h
index d6739136b1c5b656801bca95d0c0db5d7529c14d..f389ff831c896ba98e9cded89d3bcfc24215d4e0 100644
--- a/Source/core/svg/SVGFEBlendElement.h
+++ b/Source/core/svg/SVGFEBlendElement.h
@@ -23,18 +23,24 @@
#include "core/svg/SVGAnimatedEnumeration.h"
#include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
-#include "platform/graphics/filters/FEBlend.h"
namespace blink {
-template<> const SVGEnumerationStringEntries& getStaticStringEntries<BlendModeType>();
-
class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes {
public:
+ enum Mode {
+ ModeUnknown = 0,
+ ModeNormal = 1,
+ ModeMultiply = 2,
+ ModeScreen = 3,
+ ModeDarken = 4,
+ ModeLighten = 5
+ };
+
DECLARE_NODE_FACTORY(SVGFEBlendElement);
SVGAnimatedString* in1() { return m_in1.get(); }
SVGAnimatedString* in2() { return m_in2.get(); }
- SVGAnimatedEnumeration<BlendModeType>* mode() { return m_mode.get(); }
+ SVGAnimatedEnumeration<Mode>* mode() { return m_mode.get(); }
private:
explicit SVGFEBlendElement(Document&);
@@ -47,9 +53,11 @@ private:
RefPtr<SVGAnimatedString> m_in1;
RefPtr<SVGAnimatedString> m_in2;
- RefPtr<SVGAnimatedEnumeration<BlendModeType> > m_mode;
+ RefPtr<SVGAnimatedEnumeration<Mode> > m_mode;
};
+template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGFEBlendElement::Mode>();
+
} // namespace blink
#endif
« no previous file with comments | « no previous file | Source/core/svg/SVGFEBlendElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698