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

Unified Diff: Source/platform/graphics/filters/FEBlend.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
Index: Source/platform/graphics/filters/FEBlend.h
diff --git a/Source/platform/graphics/filters/FEBlend.h b/Source/platform/graphics/filters/FEBlend.h
index 586fd08acf221ef8221fafb2170b39d4ded668d9..3dd1fcd5c9bcb29669521ab799fb730c757ee8c5 100644
--- a/Source/platform/graphics/filters/FEBlend.h
+++ b/Source/platform/graphics/filters/FEBlend.h
@@ -28,21 +28,12 @@
namespace blink {
-enum BlendModeType {
- FEBLEND_MODE_UNKNOWN = 0,
- FEBLEND_MODE_NORMAL = 1,
- FEBLEND_MODE_MULTIPLY = 2,
- FEBLEND_MODE_SCREEN = 3,
- FEBLEND_MODE_DARKEN = 4,
- FEBLEND_MODE_LIGHTEN = 5
-};
-
class PLATFORM_EXPORT FEBlend : public FilterEffect {
public:
- static PassRefPtr<FEBlend> create(Filter*, BlendModeType);
+ static PassRefPtr<FEBlend> create(Filter*, WebBlendMode);
- BlendModeType blendMode() const;
- bool setBlendMode(BlendModeType);
+ WebBlendMode blendMode() const;
+ bool setBlendMode(WebBlendMode);
void platformApplyGeneric(unsigned char* srcPixelArrayA, unsigned char* srcPixelArrayB, unsigned char* dstPixelArray,
unsigned colorArrayLength);
@@ -53,11 +44,12 @@ public:
virtual TextStream& externalRepresentation(TextStream&, int indention) const OVERRIDE;
private:
- FEBlend(Filter*, BlendModeType);
+ FEBlend(Filter*, WebBlendMode);
virtual void applySoftware() OVERRIDE;
+ bool applySoftwareNEON();
- BlendModeType m_mode;
+ WebBlendMode m_mode;
};
} // namespace blink
« no previous file with comments | « Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h ('k') | Source/platform/graphics/filters/FEBlend.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698