diff options
author | Moonchild <moonchild@palemoon.org> | 2023-10-30 13:03:32 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-01 10:31:16 +0100 |
commit | 2fae5d3e6ba64821ce3ffeb74ac372d6496f5593 (patch) | |
tree | 64b617e87058a728414f8fbf0ec919984ade0511 /gfx/2d/Blur.h | |
parent | 5fd365cb76597c272356810f36efba33d8b013fe (diff) | |
download | uxp-2fae5d3e6ba64821ce3ffeb74ac372d6496f5593.tar.gz |
Issue #2364 - use DrawTarget::DrawSurfaceWithShadow to render box
shadows on platforms that accelerate it.
Diffstat (limited to 'gfx/2d/Blur.h')
-rw-r--r-- | gfx/2d/Blur.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/2d/Blur.h b/gfx/2d/Blur.h index d4a9af3e36..0777e1ef1c 100644 --- a/gfx/2d/Blur.h +++ b/gfx/2d/Blur.h @@ -100,6 +100,16 @@ public: Rect* GetDirtyRect(); /** + * Return the spread radius, in pixels. + */ + IntSize GetSpreadRadius() const { return mSpreadRadius; } + + /** + * Return the blur radius, in pixels. + */ + IntSize GetBlurRadius() const { return mBlurRadius; } + + /** * Return the minimum buffer size that should be given to Blur() method. If * zero, the class is not properly setup for blurring. Note that this * includes the extra three bytes on top of the stride*width, where something @@ -122,6 +132,7 @@ public: * constructor, above. */ static IntSize CalculateBlurRadius(const Point& aStandardDeviation); + static Float CalculateBlurSigma(int32_t aBlurRadius); private: |