Closed #2981: Refactor cc.EGLView for multiple resolution

Refactor cc.EGLView for multiple resolution