Bug 847714 - Halve drawing buffer sizes until resize succeeds - r=bjacob