formatted code.
remove unneeded synchronization. isolated the RenderMode enum class.
formatted code. remove unneeded method.
do not start rendering thread in main activity. start it in
surfaceview's surfaceCreated().
formatted code.
automatic code clean up.