I'm not sure what the point of the WebGLStateRestorer class was. It's always constructed with a false parameter, and then isn't even assigned to a local variable so wouldn't have worked anyway. Meanwhile there are also LOTS of calls to cleanupAfterGraphicsCall, the majority of which pass in false, making them a no-op. I replaced the handful of cleanupAfterGraphicsCall(true) with the call to markContextChanged().
<rdar://problem/16022970>
Created attachment 223673 [details] Patch
Comment on attachment 223673 [details] Patch Looks reasonable and definitely cleaner. r=me
Committed r163763: <http://trac.webkit.org/changeset/163763>