Merge "Workaround apps that override surfaceCreated" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-22 02:41:50 +00:00
committed by Android (Google) Code Review

View File

@@ -1469,6 +1469,13 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
}
break;
}
} else {
if (finishDrawingRunnable != null) {
Log.w(TAG, "Warning, !readyToDraw() but waiting for " +
"draw finished! Early reporting draw finished.");
finishDrawingRunnable.run();
finishDrawingRunnable = null;
}
}
// By design, this is the only place in a GLThread thread where we wait().
if (LOG_THREADS) {