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

Unified Diff: Source/platform/graphics/cpu/arm/filters/FEBlendNEON.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 | « Source/core/svg/SVGFEBlendElement.cpp ('k') | Source/platform/graphics/filters/FEBlend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h
diff --git a/Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h b/Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h
index 7e0542c8f35fb846ca1959c73ba98059e3df9e19..3cd842879b088c56403824ca0b9e782c50ae0421 100644
--- a/Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h
+++ b/Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h
@@ -130,22 +130,21 @@ void FEBlend::platformApplyNEON(unsigned char* srcPixelArrayA, unsigned char* sr
uint16x8_t result;
switch (m_mode) {
- case FEBLEND_MODE_NORMAL:
+ case WebBlendModeNormal:
result = FEBlendUtilitiesNEON::normal(doubblePixelA, doubblePixelB, alphaA, alphaB, sixteenConst255, sixteenConstOne);
break;
- case FEBLEND_MODE_MULTIPLY:
+ case WebBlendModeMultiply:
result = FEBlendUtilitiesNEON::multiply(doubblePixelA, doubblePixelB, alphaA, alphaB, sixteenConst255, sixteenConstOne);
break;
- case FEBLEND_MODE_SCREEN:
+ case WebBlendModeScreen:
result = FEBlendUtilitiesNEON::screen(doubblePixelA, doubblePixelB, alphaA, alphaB, sixteenConst255, sixteenConstOne);
break;
- case FEBLEND_MODE_DARKEN:
+ case WebBlendModeDarken:
result = FEBlendUtilitiesNEON::darken(doubblePixelA, doubblePixelB, alphaA, alphaB, sixteenConst255, sixteenConstOne);
break;
- case FEBLEND_MODE_LIGHTEN:
+ case WebBlendModeLighten:
result = FEBlendUtilitiesNEON::lighten(doubblePixelA, doubblePixelB, alphaA, alphaB, sixteenConst255, sixteenConstOne);
break;
- case FEBLEND_MODE_UNKNOWN:
default:
result = vdupq_n_u16(0);
break;
« no previous file with comments | « Source/core/svg/SVGFEBlendElement.cpp ('k') | Source/platform/graphics/filters/FEBlend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698