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

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

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
« no previous file with comments | « Source/platform/graphics/filters/FEComposite.h ('k') | Source/platform/graphics/filters/FEGaussianBlur.cpp » ('j') | 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 de333026e83e25fc0b638e8645799330846226dd..0f395053b71011fc95d1a09b8537a73fe52697c1 100644
--- a/Source/platform/graphics/filters/FEComposite.cpp
+++ b/Source/platform/graphics/filters/FEComposite.cpp
@@ -30,7 +30,9 @@
#include "SkXfermodeImageFilter.h"
#include "platform/graphics/GraphicsContext.h"
+#if HAVE(ARM_NEON_INTRINSICS)
#include "platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h"
+#endif
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/text/TextStream.h"
#include "third_party/skia/include/core/SkDevice.h"
@@ -223,12 +225,7 @@ inline void FEComposite::platformArithmeticSoftware(Uint8ClampedArray* source, U
int length = source->length();
ASSERT(length == static_cast<int>(destination->length()));
// The selection here eventually should happen dynamically.
-#if HAVE(ARM_NEON_INTRINSICS)
- ASSERT(!(length & 0x3));
- platformArithmeticNeon(source->data(), destination->data(), length, k1, k2, k3, k4);
-#else
- arithmeticSoftware(source->data(), destination->data(), length, k1, k2, k3, k4);
-#endif
+ WTF_CPU_ARM_NEON_WRAP(arithmeticSoftware)(source->data(), destination->data(), length, k1, k2, k3, k4);
}
FloatRect FEComposite::determineAbsolutePaintRect(const FloatRect& originalRequestedRect)
« no previous file with comments | « Source/platform/graphics/filters/FEComposite.h ('k') | Source/platform/graphics/filters/FEGaussianBlur.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698