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

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

Issue 107713004: Move all filters-related files from core/platform to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Maybe fix win build. Created 7 years 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/FEBlend.h ('k') | Source/platform/graphics/filters/FEColorMatrix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEBlend.cpp
diff --git a/Source/core/platform/graphics/filters/FEBlend.cpp b/Source/platform/graphics/filters/FEBlend.cpp
similarity index 98%
rename from Source/core/platform/graphics/filters/FEBlend.cpp
rename to Source/platform/graphics/filters/FEBlend.cpp
index 524013b71fcc3b8c8e8ba3017a09456ffbc2f39e..0953b91c784ffe2ac0d9f059d21034a354a7868b 100644
--- a/Source/core/platform/graphics/filters/FEBlend.cpp
+++ b/Source/platform/graphics/filters/FEBlend.cpp
@@ -23,18 +23,17 @@
*/
#include "config.h"
+#include "platform/graphics/filters/FEBlend.h"
-#include "core/platform/graphics/cpu/arm/filters/FEBlendNEON.h"
-#include "core/platform/graphics/filters/FEBlend.h"
+#include "SkBitmapSource.h"
+#include "SkXfermodeImageFilter.h"
#include "platform/graphics/GraphicsContext.h"
+#include "platform/graphics/cpu/arm/filters/FEBlendNEON.h"
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/graphics/skia/NativeImageSkia.h"
#include "platform/text/TextStream.h"
#include "wtf/Uint8ClampedArray.h"
-#include "SkBitmapSource.h"
-#include "SkXfermodeImageFilter.h"
-
typedef unsigned char (*BlendType)(unsigned char colorA, unsigned char colorB, unsigned char alphaA, unsigned char alphaB);
namespace WebCore {
@@ -166,8 +165,9 @@ void FEBlend::applySoftware()
ASSERT(pixelArrayLength == srcPixelArrayB->length());
#if HAVE(ARM_NEON_INTRINSICS)
- if (pixelArrayLength >= 8)
+ if (pixelArrayLength >= 8) {
platformApplyNEON(srcPixelArrayA->data(), srcPixelArrayB->data(), dstPixelArray->data(), pixelArrayLength);
+ }
else { // If there is just one pixel we expand it to two.
ASSERT(pixelArrayLength > 0);
uint32_t sourceA[2] = {0, 0};
« no previous file with comments | « Source/platform/graphics/filters/FEBlend.h ('k') | Source/platform/graphics/filters/FEColorMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698