mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 832446 - Don't use the high-quality downscaler on multipart images. r=jrmuizel
This commit is contained in:
parent
f45b8b872b
commit
441cdfe6be
@ -2905,8 +2905,10 @@ RasterImage::CanScale(gfxPattern::GraphicsFilter aFilter,
|
||||
{
|
||||
// The high-quality scaler requires Skia.
|
||||
#ifdef MOZ_ENABLE_SKIA
|
||||
// We don't use the scaler for animated or multipart images to avoid doing a
|
||||
// bunch of work on an image that just gets thrown away.
|
||||
if (gHQDownscaling && aFilter == gfxPattern::FILTER_GOOD &&
|
||||
!mAnim && mDecoded && IsDownscale(aScale)) {
|
||||
!mAnim && mDecoded && !mMultipart && IsDownscale(aScale)) {
|
||||
gfxFloat factor = gHQDownscalingMinFactor / 1000.0;
|
||||
return (aScale.width < factor || aScale.height < factor);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user