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

Unified Diff: Source/platform/graphics/filters/FEMorphology.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/FEMorphology.h ('k') | Source/platform/graphics/filters/FEOffset.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEMorphology.cpp
diff --git a/Source/core/platform/graphics/filters/FEMorphology.cpp b/Source/platform/graphics/filters/FEMorphology.cpp
similarity index 97%
rename from Source/core/platform/graphics/filters/FEMorphology.cpp
rename to Source/platform/graphics/filters/FEMorphology.cpp
index 93e0985c637942908c670ab3ac870ca76efef49a..5201a45dcde775923f593c74dc96539344572a78 100644
--- a/Source/core/platform/graphics/filters/FEMorphology.cpp
+++ b/Source/platform/graphics/filters/FEMorphology.cpp
@@ -23,20 +23,16 @@
*/
#include "config.h"
+#include "platform/graphics/filters/FEMorphology.h"
-#include "core/platform/graphics/filters/FEMorphology.h"
-
-
+#include "SkMorphologyImageFilter.h"
#include "platform/graphics/filters/ParallelJobs.h"
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/text/TextStream.h"
#include "wtf/Uint8ClampedArray.h"
#include "wtf/Vector.h"
-#include "SkMorphologyImageFilter.h"
-
-using std::min;
-using std::max;
+using namespace std;
namespace WebCore {
@@ -124,7 +120,7 @@ void FEMorphology::platformApplyGeneric(PaintingData* paintingData, int yStart,
for (int y = yStart; y < yEnd; ++y) {
int extremaStartY = max(0, y - radiusY);
int extremaEndY = min(height - 1, y + radiusY);
- for (unsigned int clrChannel = 0; clrChannel < 4; ++clrChannel) {
+ for (unsigned clrChannel = 0; clrChannel < 4; ++clrChannel) {
extrema.clear();
// Compute extremas for each columns
for (int x = 0; x <= radiusX; ++x) {
@@ -297,7 +293,7 @@ TextStream& FEMorphology::externalRepresentation(TextStream& ts, int indent) con
ts << "[feMorphology";
FilterEffect::externalRepresentation(ts);
ts << " operator=\"" << morphologyOperator() << "\" "
- << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n";
+ << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n";
inputEffect(0)->externalRepresentation(ts, indent + 1);
return ts;
}
« no previous file with comments | « Source/platform/graphics/filters/FEMorphology.h ('k') | Source/platform/graphics/filters/FEOffset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698