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

Unified Diff: Source/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h

Issue 604373003: [WIP] Supporting arm_neon_optional flag for blink platform. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/cpu/arm/filters/FECompositeArithmeticNEON.h
diff --git a/Source/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h b/Source/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h
index bbf793e5ec2628ebfb75f23af25eb68e90bbdad0..a196e201810aef6e85d6a57384702124122650fd 100644
--- a/Source/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h
+++ b/Source/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h
@@ -72,24 +72,26 @@ inline void FEComposite::computeArithmeticPixelsNeon(unsigned char* source, unsi
}
}
-inline void FEComposite::platformArithmeticNeon(unsigned char* source, unsigned char* destination,
- unsigned pixelArrayLength, float k1, float k2, float k3, float k4)
+inline void FEComposite::arithmeticSoftwareNEON(unsigned char* source, unsigned char* destination,
+ int pixelArrayLength, float k1, float k2, float k3, float k4)
{
+ ASSERT(!(pixelArrayLength & 0x3));
+
if (!k4) {
if (!k1) {
- computeArithmeticPixelsNeon<0, 0>(source, destination, pixelArrayLength, k1, k2, k3, k4);
+ computeArithmeticPixelsNeon<0, 0>(source, destination, static_cast<unsigned>(pixelArrayLength), k1, k2, k3, k4);
return;
}
- computeArithmeticPixelsNeon<1, 0>(source, destination, pixelArrayLength, k1, k2, k3, k4);
+ computeArithmeticPixelsNeon<1, 0>(source, destination, static_cast<unsigned>(pixelArrayLength), k1, k2, k3, k4);
return;
}
if (!k1) {
- computeArithmeticPixelsNeon<0, 1>(source, destination, pixelArrayLength, k1, k2, k3, k4);
+ computeArithmeticPixelsNeon<0, 1>(source, destination, static_cast<unsigned>(pixelArrayLength), k1, k2, k3, k4);
return;
}
- computeArithmeticPixelsNeon<1, 1>(source, destination, pixelArrayLength, k1, k2, k3, k4);
+ computeArithmeticPixelsNeon<1, 1>(source, destination, static_cast<unsigned>(pixelArrayLength), k1, k2, k3, k4);
}
} // namespace blink
« no previous file with comments | « Source/platform/graphics/cpu/arm/filters/FEBlendNEON.h ('k') | Source/platform/graphics/cpu/arm/filters/FilterEffectNEON.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698