google/tracing-framework — pull request #491 by ScottTodd (2014-07-02 21:51:51+00:00)
Title: Fixed WebGL restart with multiple identical contexts.

This fixes restarting WebGL playback with this page: http://threejs.org/examples/webgl_multiple_canvases_grid.html.

Previously, contexts were released and returned again in last in, first out order. Existing WebGL objects were then aligned with different contexts, causing "WebGL: INVALID_OPERATION: bindAttribLocation: object does not belong to this context" type errors.

Once restarting works, overdraw visualization and highlighting can work. These features are almost ready for review/merge, here is a preview:

![multiple-canvases-success_cropped](https://cloud.githubusercontent.com/assets/4010439/3462797/e33647a8-0231-11e4-8fd9-040bd2fa8801.png)