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

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

Issue 211513003: Returning IntSize to store calculated kernel size values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove const float from Filter.h 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 | « Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FilterOperations.cpp
diff --git a/Source/platform/graphics/filters/FilterOperations.cpp b/Source/platform/graphics/filters/FilterOperations.cpp
index 336ccb1abcc5b00eb7d24f89722644d43a4388ba..8083ae747705ea5c683695aedb2685e5162b0c5e 100644
--- a/Source/platform/graphics/filters/FilterOperations.cpp
+++ b/Source/platform/graphics/filters/FilterOperations.cpp
@@ -34,14 +34,12 @@ namespace WebCore {
static inline IntSize outsetSizeForBlur(float stdDeviation)
{
- unsigned kernelSizeX = 0;
- unsigned kernelSizeY = 0;
- FEGaussianBlur::calculateUnscaledKernelSize(kernelSizeX, kernelSizeY, stdDeviation, stdDeviation);
+ IntSize kernelSize = FEGaussianBlur::calculateUnscaledKernelSize(FloatPoint(stdDeviation, stdDeviation));
IntSize outset;
// We take the half kernel size and multiply it with three, because we run box blur three times.
- outset.setWidth(3 * kernelSizeX * 0.5f);
- outset.setHeight(3 * kernelSizeY * 0.5f);
+ outset.setWidth(3 * kernelSize.width() * 0.5f);
+ outset.setHeight(3 * kernelSize.height() * 0.5f);
return outset;
}
« no previous file with comments | « Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698