Bug 1591758 - Fix dirty rects for OS compositors without partial updates. r=nical

Differential Revision: https://phabricator.services.mozilla.com/D51773

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Glenn Watson 2019-11-05 08:43:10 +00:00
parent c0f0a39e87
commit 7613f6442d

View File

@ -828,6 +828,13 @@ impl Tile {
}
}
// The dirty rect will be set correctly by now. If the underlying platform
// doesn't support partial updates, and this tile isn't valid, force the dirty
// rect to be the size of the entire tile.
if !self.is_valid && !supports_dirty_rects {
self.dirty_rect = self.rect;
}
// See if this tile is a simple color, in which case we can just draw
// it as a rect, and avoid allocating a texture surface and drawing it.
// TODO(gw): Initial native compositor interface doesn't support simple