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

Unified Diff: Source/platform/graphics/filters/FEConvolveMatrix.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
Index: Source/platform/graphics/filters/FEConvolveMatrix.cpp
diff --git a/Source/core/platform/graphics/filters/FEConvolveMatrix.cpp b/Source/platform/graphics/filters/FEConvolveMatrix.cpp
similarity index 99%
rename from Source/core/platform/graphics/filters/FEConvolveMatrix.cpp
rename to Source/platform/graphics/filters/FEConvolveMatrix.cpp
index b0697ea5c2f944ad6e95f02ea12ca2547d17a025..454541e0b80b37a7fef0ca80fcea3c52ae089a68 100644
--- a/Source/core/platform/graphics/filters/FEConvolveMatrix.cpp
+++ b/Source/platform/graphics/filters/FEConvolveMatrix.cpp
@@ -23,17 +23,15 @@
*/
#include "config.h"
+#include "platform/graphics/filters/FEConvolveMatrix.h"
-#include "core/platform/graphics/filters/FEConvolveMatrix.h"
-
+#include "SkMatrixConvolutionImageFilter.h"
#include "platform/graphics/filters/ParallelJobs.h"
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/text/TextStream.h"
#include "wtf/OwnPtr.h"
#include "wtf/Uint8ClampedArray.h"
-#include "SkMatrixConvolutionImageFilter.h"
-
namespace WebCore {
FEConvolveMatrix::FEConvolveMatrix(Filter* filter, const IntSize& kernelSize,
@@ -240,8 +238,9 @@ ALWAYS_INLINE void setDestinationPixels(Uint8ClampedArray* image, int& pixel, fl
if (preserveAlphaValues) {
image->set(pixel, src->item(pixel));
++pixel;
- } else
+ } else {
image->set(pixel++, maxAlpha);
+ }
}
#if defined(_MSC_VER) && (_MSC_VER >= 1700)
« no previous file with comments | « Source/platform/graphics/filters/FEConvolveMatrix.h ('k') | Source/platform/graphics/filters/FEDiffuseLighting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698