Bug 738188. Avoid crashing by disabling the screenshot drawing code. r=kats

The crashes seem to be caused by SurfaceChange breaking any future
onDrawFrame calls. We don't seem to handle renewing the context at all. I added
mController.disposeGLContext(); mController.initGLContext(); to the
SizeChange::run() but that doesn't seem to fix it.

Bug 739867 will add this support back.

--HG--
extra : rebase_source : a4f71b22f381756c4285311cd3288b3ef46d5543
This commit is contained in:
Jeff Muizelaar 2012-03-27 21:43:56 -04:00
parent 061ce8f90c
commit 099a08d506

View File

@ -266,6 +266,8 @@ public class LayerRenderer implements GLSurfaceView.Renderer {
* Called whenever a new frame is about to be drawn.
*/
public void onDrawFrame(GL10 gl) {
/* This code is causing crashes when the surface changes. (bug 738188)
* I'm not sure if it actually works, so I'm disabling it now to avoid the crash.
RenderContext pageContext = createPageContext(mView.getController().getViewportMetrics());
RenderContext screenContext = createScreenContext();
Frame frame = createFrame(pageContext, screenContext);
@ -276,6 +278,7 @@ public class LayerRenderer implements GLSurfaceView.Renderer {
frame.drawForeground();
frame.endDrawing();
}
*/
}
private void printCheckerboardStats() {