mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CoreGraphics: Remove CoreImage single-channel blur implementation
The CoreImage blur implementation is often significantly slower than the old software blur in common scenarios such as rendering shadows.
This commit is contained in:
parent
95610e6c5e
commit
c46bcb677e
1 changed files with 0 additions and 10 deletions
|
|
@ -113,16 +113,6 @@ public:
|
||||||
applyFilterInArea (area, buildFilter);
|
applyFilterInArea (area, buildFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
void applySingleChannelBoxBlurEffectInArea (Rectangle<int> area, int radius) override
|
|
||||||
{
|
|
||||||
const auto buildFilter = [radius]
|
|
||||||
{
|
|
||||||
return [CIFilter filterWithName: @"CIBoxBlur"
|
|
||||||
withInputParameters: @{ kCIInputRadiusKey: [NSNumber numberWithFloat: (float) radius] }];
|
|
||||||
};
|
|
||||||
applyFilterInArea (area, buildFilter);
|
|
||||||
}
|
|
||||||
|
|
||||||
void multiplyAllAlphasInArea (Rectangle<int> area, float amount) override
|
void multiplyAllAlphasInArea (Rectangle<int> area, float amount) override
|
||||||
{
|
{
|
||||||
const auto buildFilter = [amount]
|
const auto buildFilter = [amount]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue