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

Unified Diff: Source/platform/graphics/filters/FEGaussianBlur.h

Issue 215303003: Remove software path from filters: FEGaussianBlur. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Last changes. Created 6 years, 9 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 | « no previous file | Source/platform/graphics/filters/FEGaussianBlur.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEGaussianBlur.h
diff --git a/Source/platform/graphics/filters/FEGaussianBlur.h b/Source/platform/graphics/filters/FEGaussianBlur.h
index 015450cf8d8375169c8fdae7b1188aa70ad8d340..c10d220d94154b9a90c59a401d3a39a515841549 100644
--- a/Source/platform/graphics/filters/FEGaussianBlur.h
+++ b/Source/platform/graphics/filters/FEGaussianBlur.h
@@ -61,51 +61,16 @@ private:
unsigned kernelSizeY;
};
- static void platformApplyWorker(PlatformApplyParameters*);
-
FEGaussianBlur(Filter*, float, float);
virtual void applySoftware() OVERRIDE;
- virtual bool applySkia() OVERRIDE;
-
- static inline void kernelPosition(int boxBlur, unsigned& std, int& dLeft, int& dRight);
- inline void platformApply(Uint8ClampedArray* srcPixelArray, Uint8ClampedArray* tmpPixelArray, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize);
- inline void platformApplyGeneric(Uint8ClampedArray* srcPixelArray, Uint8ClampedArray* tmpPixelArray, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize);
virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) OVERRIDE;
float m_stdX;
float m_stdY;
};
-inline void FEGaussianBlur::kernelPosition(int boxBlur, unsigned& std, int& dLeft, int& dRight)
-{
- // check http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement for details
- switch (boxBlur) {
- case 0:
- if (!(std % 2)) {
- dLeft = std / 2 - 1;
- dRight = std - dLeft;
- } else {
- dLeft = std / 2;
- dRight = std - dLeft;
- }
- break;
- case 1:
- if (!(std % 2)) {
- dLeft++;
- dRight--;
- }
- break;
- case 2:
- if (!(std % 2)) {
- dRight++;
- std++;
- }
- break;
- }
-}
-
} // namespace WebCore
#endif // FEGaussianBlur_h
« no previous file with comments | « no previous file | Source/platform/graphics/filters/FEGaussianBlur.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698