Enable support for Offscreen rendering.

This patch enables support for Off-Screen rendering, which
is essential to support WebGL and other cases like Accelerated
Canvas2D. After this change, we should be able to run all web
pages using WebGL. We still have some conformance test failures,
which will be fixed in follow up patches.

Upstream CL: https://codereview.chromium.org/49533003/