зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1060609 (Part 1) - Disable downscale-during-decode when HQ scaling is disabled. r=tn
This commit is contained in:
Родитель
2015a6ea72
Коммит
48ffa83481
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче