fixed #1934: fix bug in CCApplication, fix compatibility in EGLView

fix bug in CCApplication, fix compatibility in EGLView
fixed #1934: added function to reset canvas while keeping the size

added function to reset canvas while keeping the size
Merge pull request #893 from Wu-Hao/master

fixed #1934: fix bug in CCApplication, fix compatibility in EGLView