szeged / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
45 stars 7 forks source link

Skip resize if the old and new dimensions are the same #330

Closed zakorgy closed 4 years ago

zakorgy commented 4 years ago

This fixes an issue we have with Metal backend in Gecko. The screen flickers, because we receive resize messages with the same dimensions we already have, and the swap chain is recreated frequently. In these cases we can skip the swap chain recreation and return early.


This change is Reviewable