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

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

Issue 464273002: Cleanup namespace usage in platform/graphics/[filters/* to skia/*] and platform/graphics/[B-D]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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.cpp ('k') | Source/platform/graphics/filters/FETurbulence.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEConvolveMatrix.cpp
diff --git a/Source/platform/graphics/filters/FEConvolveMatrix.cpp b/Source/platform/graphics/filters/FEConvolveMatrix.cpp
index ea854710995810b11f32ef35b9ac93f4565b31f2..9bdbd8c288cb6ca96f850e4d7af929c37e5a4512 100644
--- a/Source/platform/graphics/filters/FEConvolveMatrix.cpp
+++ b/Source/platform/graphics/filters/FEConvolveMatrix.cpp
@@ -460,7 +460,7 @@ void FEConvolveMatrix::applySoftware()
int optimalThreadNumber = (absolutePaintRect().width() * absolutePaintRect().height()) / s_minimalRectDimension;
if (optimalThreadNumber > 1) {
- ParallelJobs<InteriorPixelParameters> parallelJobs(&blink::FEConvolveMatrix::setInteriorPixelsWorker, optimalThreadNumber);
+ ParallelJobs<InteriorPixelParameters> parallelJobs(&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,24 +502,20 @@ void FEConvolveMatrix::applySoftware()
}
}
-SkMatrixConvolutionImageFilter::TileMode toSkiaTileMode(blink::EdgeModeType edgeMode)
+SkMatrixConvolutionImageFilter::TileMode toSkiaTileMode(EdgeModeType edgeMode)
{
switch (edgeMode) {
- case blink::EDGEMODE_DUPLICATE:
+ case EDGEMODE_DUPLICATE:
return SkMatrixConvolutionImageFilter::kClamp_TileMode;
- case blink::EDGEMODE_WRAP:
+ case EDGEMODE_WRAP:
return SkMatrixConvolutionImageFilter::kRepeat_TileMode;
- case blink::EDGEMODE_NONE:
+ case EDGEMODE_NONE:
return SkMatrixConvolutionImageFilter::kClampToBlack_TileMode;
default:
return SkMatrixConvolutionImageFilter::kClamp_TileMode;
}
}
-}; // unnamed namespace
-
-namespace blink {
-
PassRefPtr<SkImageFilter> FEConvolveMatrix::createImageFilter(SkiaImageFilterBuilder* builder)
{
RefPtr<SkImageFilter> input(builder->build(inputEffect(0), operatingColorSpace()));
« no previous file with comments | « Source/platform/graphics/filters/FEComposite.cpp ('k') | Source/platform/graphics/filters/FETurbulence.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698