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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.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/FEDropShadow.h
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
index cf4bd7abb6100ded98aa9594fa6ddee85573dec0..5cc47519e2c1550bbbf7c6b9e941223e220d2e3f 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
@@ -31,6 +31,12 @@ class PLATFORM_EXPORT FEDropShadow final : public FilterEffect {
static FEDropShadow*
create(Filter*, float, float, float, float, const Color&, float);
+ // Compute which destination area will be affected when applying a drop
+ // shadow effect with |stdDeviation| and |offset| to an area |rect|.
+ static FloatRect mapEffect(const FloatSize& stdDeviation,
+ const FloatPoint& offset,
+ const FloatRect&);
+
void setShadowColor(const Color& color) { m_shadowColor = color; }
void setShadowOpacity(float opacity) { m_shadowOpacity = opacity; }

Powered by Google App Engine
This is Rietveld 408576698