mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Add pref to control CanOptimizeToImageLayer for large downscale factors.
This resolves #626
This commit is contained in:
parent
d203062c4e
commit
ca5c2ba100
3 changed files with 12 additions and 0 deletions
|
|
@ -3513,6 +3513,11 @@ nsDisplayImageContainer::CanOptimizeToImageLayer(LayerManager* aManager,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (gfxPrefs::ImageLayerizeAlways()) {
|
||||
// If the user decides to trade off quality for performance, so be it!
|
||||
return true;
|
||||
}
|
||||
|
||||
const int32_t factor = mFrame->PresContext()->AppUnitsPerDevPixel();
|
||||
const LayoutDeviceRect destRect =
|
||||
LayoutDeviceRect::FromAppUnits(GetDestRect(), factor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue