Bug 1060609 (Part 1) - Disable downscale-during-decode when HQ scaling is disabled. r=tn

This commit is contained in:
Seth Fowler 2015-09-01 14:13:15 -07:00
parent 2015a6ea72
commit 48ffa83481

View File

@ -1601,6 +1601,7 @@ RasterImage::CanDownscaleDuringDecode(const IntSize& aSize, uint32_t aFlags)
// image, we have all the source data and know our size, the flags allow us to
// do it, and a 'good' filter is being used.
if (!mDownscaleDuringDecode || !mHasSize ||
!gfxPrefs::ImageHQDownscalingEnabled() ||
!(aFlags & imgIContainer::FLAG_HIGH_QUALITY_SCALING)) {
return false;
}