mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
Issue #2364 - use DrawTarget::DrawSurfaceWithShadow to render box shadows on platforms that accelerate it.
This commit is contained in:
parent
8d30faf95f
commit
4beb3b947c
13 changed files with 228 additions and 150 deletions
|
|
@ -99,6 +99,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
|
||||
|
|
@ -122,6 +132,7 @@ public:
|
|||
* constructor, above.
|
||||
*/
|
||||
static IntSize CalculateBlurRadius(const Point& aStandardDeviation);
|
||||
static Float CalculateBlurSigma(int32_t aBlurRadius);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue