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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/filters/FEConvolveMatrix.cpp
diff --git a/Source/platform/graphics/filters/FEConvolveMatrix.cpp b/Source/platform/graphics/filters/FEConvolveMatrix.cpp
index 418f19b460449128d0f45c9f13aa2b648323ff23..a96eaa1608f3cdd2188270bec2c72dc75112223a 100644
--- a/Source/platform/graphics/filters/FEConvolveMatrix.cpp
+++ b/Source/platform/graphics/filters/FEConvolveMatrix.cpp
@@ -32,7 +32,7 @@
#include "wtf/OwnPtr.h"
#include "wtf/Uint8ClampedArray.h"
-namespace WebCore {
+namespace blink {
FEConvolveMatrix::FEConvolveMatrix(Filter* filter, const IntSize& kernelSize,
float divisor, float bias, const IntPoint& targetOffset, EdgeModeType edgeMode,
@@ -460,7 +460,7 @@ void FEConvolveMatrix::applySoftware()
int optimalThreadNumber = (absolutePaintRect().width() * absolutePaintRect().height()) / s_minimalRectDimension;
if (optimalThreadNumber > 1) {
- ParallelJobs<InteriorPixelParameters> parallelJobs(&WebCore::FEConvolveMatrix::setInteriorPixelsWorker, optimalThreadNumber);
+ ParallelJobs<InteriorPixelParameters> parallelJobs(&blink::FEConvolveMatrix::setInteriorPixelsWorker, optimalThreadNumber);
const int numOfThreads = parallelJobs.numberOfJobs();
// Split the job into "heightPerThread" jobs but there a few jobs that need to be slightly larger since
@@ -502,14 +502,14 @@ void FEConvolveMatrix::applySoftware()
}
}
-SkMatrixConvolutionImageFilter::TileMode toSkiaTileMode(WebCore::EdgeModeType edgeMode)
+SkMatrixConvolutionImageFilter::TileMode toSkiaTileMode(blink::EdgeModeType edgeMode)
{
switch (edgeMode) {
- case WebCore::EDGEMODE_DUPLICATE:
+ case blink::EDGEMODE_DUPLICATE:
return SkMatrixConvolutionImageFilter::kClamp_TileMode;
- case WebCore::EDGEMODE_WRAP:
+ case blink::EDGEMODE_WRAP:
return SkMatrixConvolutionImageFilter::kRepeat_TileMode;
- case WebCore::EDGEMODE_NONE:
+ case blink::EDGEMODE_NONE:
return SkMatrixConvolutionImageFilter::kClampToBlack_TileMode;
default:
return SkMatrixConvolutionImageFilter::kClamp_TileMode;
@@ -518,7 +518,7 @@ SkMatrixConvolutionImageFilter::TileMode toSkiaTileMode(WebCore::EdgeModeType ed
}; // unnamed namespace
-namespace WebCore {
+namespace blink {
PassRefPtr<SkImageFilter> FEConvolveMatrix::createImageFilter(SkiaImageFilterBuilder* builder)
{
@@ -574,4 +574,4 @@ TextStream& FEConvolveMatrix::externalRepresentation(TextStream& ts, int indent)
return ts;
}
-}; // namespace WebCore
+}; // namespace blink
« 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