Bug 1042291 - Implement a better heuristic for when to use HW accelerated <canvas> r=snorp