Fix a DCHECK() crash related to render pass overlay backing reusing on macOS
We assume ScheduleOverlays() will be called for every frame, so we can release not reused overlay backing for ever frame. However ScheduleOverlays() are not called for some cases. So the DCHECK() crash happends, fix the problem by releasing not used render pass overlay backings in SwapBuffers(). Bug: 1135399 Change-Id: I634a254e98d086f7799d76af5d5a82ad2010f854 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507450 Commit-Queue: Peng Huang <penghuang@chromium.org> Auto-Submit: Peng Huang <penghuang@chromium.org> Reviewed-by:Vasiliy Telezhnikov <vasilyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#822207}
Showing
Please register or sign in to comment