mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1144534 - If we have tiling, don't reduce layer resolution for large transforms. r=mattwoodrow
This commit is contained in:
parent
9dd10935ab
commit
2522db05ac
@ -5118,9 +5118,11 @@ ChooseScaleAndSetTransform(FrameLayerBuilder* aLayerBuilder,
|
||||
scale = gfxSize(1.0, 1.0);
|
||||
}
|
||||
// If this is a transform container layer, then pre-rendering might
|
||||
// mean we try render a layer bigger than the max texture size. Apply
|
||||
// clmaping to prevent this.
|
||||
if (aTransform) {
|
||||
// mean we try render a layer bigger than the max texture size. If we have
|
||||
// tiling, that's not a problem, since we'll automatically choose a tiled
|
||||
// layer for layers of that size. If not, we need to apply clamping to
|
||||
// prevent this.
|
||||
if (aTransform && !gfxPrefs::LayersTilesEnabled()) {
|
||||
RestrictScaleToMaxLayerSize(scale, aVisibleRect, aContainerFrame, aLayer);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user