mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
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:
parent
c0f0a39e87
commit
7613f6442d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user