theuni/xbmc — pull request #1 by CrystalP (2011-10-15 00:45:18+00:00)
Title: Pick D3D swap effect based on the dirty regions algorithm

Use the swap effects guaranteeing backbuffers only when the dirty regions algorithm requires it.

It could be better to have some metadata in the dirty region algorithms indicating if they need backbuffers to be preserved, as that would avoid spreading out the logic.