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

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: 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
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..928cf4541690f52b4a95282bda0c910d762da31c 100644
--- a/Source/platform/graphics/filters/FilterOperations.cpp
+++ b/Source/platform/graphics/filters/FilterOperations.cpp
@@ -34,14 +34,13 @@ namespace WebCore {
static inline IntSize outsetSizeForBlur(float stdDeviation)
{
- unsigned kernelSizeX = 0;
- unsigned kernelSizeY = 0;
- FEGaussianBlur::calculateUnscaledKernelSize(kernelSizeX, kernelSizeY, stdDeviation, stdDeviation);
+ IntSize kernelSize(0, 0);
pdr. 2014/03/26 00:00:13 Is this needed?
+ 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;
}

Powered by Google App Engine
This is Rietveld 408576698