Review: http://codereview.appspot.com/3969041/
Review: http://codereview.appspot.com/3969041/

Fixed dangling pointers in Surface.

When the surface is reset, either because of device lost or a window
resize, and any of these fail:

CreateDepthStencilSurface
CreateTexture

Some subsset of mSwapChain and/or mDepthStencil would be left
uninitialized. This seemed to happen frequently on WIndows XP boxes.

Example crash dumps:

Thread 0 *CRASHED* ( EXCEPTION_ACCESS_VIOLATION_READ @
0xffffffff800f0004 )

0x014f1aac       [libegl.dll     -
surface.cpp:479]        egl::Surface::getDepthStencil()
0x1001324c       [libglesv2.dll  -
context.cpp:301]        gl::Context::makeCurrent(egl::Display *,egl::Surface *)
0x10018c7e       [libglesv2.dll  - main.cpp:85] gl::makeCurrent(gl::Context
*,egl::Display *,egl::Surface *)
0x10017366       [libglesv2.dll  - context.cpp:3524]    glMakeCurrent
0x014f607c       [libegl.dll     - libegl.cpp:884]      eglMakeCurrent

Thread 0 *CRASHED* ( EXCEPTION_ACCESS_VIOLATION_READ @
0xffffffffe95b5a5d )

0x01131a14       [libegl.dll     - surface.cpp:433]     egl::Surface::swap()
0x01136310       [libegl.dll     - libegl.cpp:1043]     eglSwapBuffers
0x0214ac64       [chrome.dll     -
gl_context_egl.cc:240]  gfx::NativeViewEGLContext::SwapBuffers()


git-svn-id: a070b70d2b8c44c266a3870c0cddd9a0ee470458@531 736b8ea6-26fd-11df-bfd4-992fa37f6226

shairai/angleproject,domokit/waterfall,KTXSoftware/angleproject,larsbergstrom/angle,ehsan/angle,cantren/angleproject,domokit/waterfall,android-ia/platform_external_chromium_org_third_party_angle_dx11,jgcaaprom/android_external_chromium_org_third_party_angle,RepublicMaster/angleproject,cantren/angleproject,KTXSoftware/angleproject,themusicgod1/angleproject,mybios/angle,themusicgod1/angleproject,xuxiandi/angleproject,bsergean/angle,mrobinson/rust-angle,bsergean/angle,mikolalysenko/angle,crezefire/angle,xin3liang/platform_external_chromium_org_third_party_angle,KalebDark/angleproject,bsergean/angle,android-ia/platform_external_chromium_org_third_party_angle,vvuk/angle-old,xin3liang/platform_external_chromium_org_third_party_angle,ecoal95/angle,vvuk/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,KTXSoftware/angleproject,mrobinson/rust-angle,cvsuser-chromium/chromium-third-party_angle_dx11,MIPS/external-chromium_org-third_party-angle,mybios/angle,mrobinson/rust-angle,vvuk/angle-old,crezefire/angle,MIPS/external-chromium_org-third_party-angle,stammen/angleproject,MSOpenTech/angle-win8.0,mrobinson/rust-angle,ghostoy/angle,nandhanurrevanth/angle,xin3liang/platform_external_chromium_org_third_party_angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,csa7mdm/angle,MSOpenTech/angle,crezefire/angle,bsergean/angle,pombreda/angleproject,MSOpenTech/angle,MSOpenTech/angle-win8.0,MIPS/external-chromium_org-third_party-angle_dx11,ppy/angle,cantren/angleproject,pombreda/angleproject,RepublicMaster/angleproject,android-ia/platform_external_chromium_org_third_party_angle_dx11,xuxiandi/angleproject,crezefire/angle,ghostoy/angle,MSOpenTech/angle-win8.0,RepublicMaster/angleproject,csa7mdm/angle,ppy/angle,mlfarrell/angle,mlfarrell/angle,mikolalysenko/angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,shairai/angleproject,stammen/angleproject,larsbergstrom/angle,MIPS/external-chromium_org-third_party-angle,larsbergstrom/angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,ehsan/angle,RepublicMaster/angleproject,KTXSoftware/angleproject,vvuk/angle,MIPS/external-chromium_org-third_party-angle_dx11,csa7mdm/angle,MSOpenTech/angle,cantren/angleproject,jgcaaprom/android_external_chromium_org_third_party_angle,mybios/angle,KalebDark/angleproject,android-ia/platform_external_chromium_org_third_party_angle_dx11,stammen/angleproject,MSOpenTech/angle-win8.0,cvsuser-chromium/chromium-third-party_angle_dx11,mybios/angle,jgcaaprom/android_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle_dx11,shairai/angleproject,cvsuser-chromium/chromium-third-party_angle_dx11,mlfarrell/angle,nandhanurrevanth/angle,MIPS/external-chromium_org-third_party-angle_dx11,KalebDark/angleproject,csa7mdm/angle,ghostoy/angle,android-ia/platform_external_chromium_org_third_party_angle,xuxiandi/angleproject,MSOpenTech/angle,android-ia/platform_external_chromium_org_third_party_angle,stammen/angleproject,nandhanurrevanth/angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,ecoal95/angle,ghostoy/angle,KTXSoftware/angleproject,vvuk/angle,mrobinson/rust-angle,mlfarrell/angle,xuxiandi/angleproject,ppy/angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,ecoal95/angle,mikolalysenko/angle,ehsan/angle,KalebDark/angleproject,themusicgod1/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,larsbergstrom/angle,shairai/angleproject,vvuk/angle-old,ecoal95/angle,ehsan/angle,ppy/angle,android-ia/platform_external_chromium_org_third_party_angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,cvsuser-chromium/chromium-third-party_angle_dx11,vvuk/angle,pombreda/angleproject,mikolalysenko/angle,themusicgod1/angleproject,MIPS/external-chromium_org-third_party-angle,vvuk/angle-old,nandhanurrevanth/angle,ecoal95/angle,jgcaaprom/android_external_chromium_org_third_party_angle,pombreda/angleproject