Closed Bug 1046118 Opened 11 years ago Closed 11 years ago

Provide some visual feedback when texture allocation fails in a tiled layer

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: nical, Assigned: nical)

Details

If we fail to allocate a tile for whatever reason, rendering is going to be broken (there is going to be a missing tile in the compositing). I'd like to make it visually obvious when this happens, so that we can easily tell the difference between running short on video memory and having a bug in the tiling code (as in misplaced tile, etc.). I'm thinking something simple like render a pink rectangle where the tile should have been displayed, and maybe do it only in debug builds or put it behind a pref. Thoughts?
Summary: Provide some visual feedback when an error happens in the tiling code → Provide some visual feedback when texture allocation fails in a tiled layer
We talked about it during the daily meeting, and the conclusion was, let's do this and use a pref to decide whether it is best to crash the app (or the browser in the case of non-e10s desktop firefox) or render a pink marker.
Makes sense to go with the pref, especially if there may be security concerns with not crashing.
More work than its worth. Plus, at the moment we'd rather make sure that allocation never fails (except when running out of memory in which case gfx starts glitching anyways) and crash when it does, so visual feedback for tile allocation failures won't help that much at this point. Marking wontfix for now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.