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

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

Issue 2393993004: Consolidate FilterOperation and FilterEffect mapRect implementations (Closed)
Patch Set: Rebase; Drop stale comment. Created 4 years, 2 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: third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.h
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.h b/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.h
index 2d5973a207d4fc63c93f5e13b3aa1b49d4239dab..ca0e2d310e6672b132d6ad0e2eade049574967dc 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.h
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.h
@@ -31,8 +31,9 @@ class PLATFORM_EXPORT FEGaussianBlur final : public FilterEffect {
public:
static FEGaussianBlur* create(Filter*, float, float);
- static IntSize calculateKernelSize(const Filter*, const FloatPoint& std);
- static IntSize calculateUnscaledKernelSize(const FloatPoint& std);
+ // Compute which destination area will be affected when applying a gaussian
+ // blur effect with |stdDeviation| to an area |rect|.
+ static FloatRect mapEffect(const FloatSize& stdDeviation, const FloatRect&);
TextStream& externalRepresentation(TextStream&, int indention) const override;

Powered by Google App Engine
This is Rietveld 408576698