Bug 805406: Do not validate ThebesLayers when the D2D device is invalid. r=jrmuizel
Bug 969580 - Part 1: Expose DiscardAll to SurfaceCache public interface. r=seth
Bug 969580 - Part 2: Discard everything in the surfacecache when Direct2D malfunctions. r=seth