Bug 1897584 - Fix incorrect order of transformation in TileCacheInstance::pre_update. r=gw

Depends on D211850

Differential Revision: https://phabricator.services.mozilla.com/D211851
This commit is contained in:
Nicolas Silva 2024-05-29 18:37:05 +00:00
parent 91349b1356
commit f1a93849e9

View File

@ -2200,8 +2200,7 @@ impl TileCacheInstance {
}
// Use that compositor transform to calculate a relative local to surface
// TODO(nical): this looks wrong. It should probably be `local_to_device.then(&raster_to_device.inverse())`.
let local_to_raster = local_to_device.pre_transform(&raster_to_device.inverse());
let local_to_raster = local_to_device.then(&raster_to_device.inverse());
const EPSILON: f32 = 0.001;
let compositor_translation_changed =