Revert 171413 > Move initialization of D3D earlier in present thread lifetime. >  > This improves startup time. >  > Fixed bug where initial window size was treated as a resize and triggered the slow GDI path. >  > Previous version was r171174, which was reverted. This patch is different because it does not initialize D3D until an AcceleratedPresenter is created but does not wait for the first present. >  > BUG=163215,164414,164398 >  > Review URL: https://chromiumcodereview.appspot.com/11445029
Revert 171413
> Move initialization of D3D earlier in present thread lifetime.
> 
> This improves startup time.
> 
> Fixed bug where initial window size was treated as a resize and triggered the slow GDI path.
> 
> Previous version was r171174, which was reverted. This patch is different because it does not initialize D3D until an AcceleratedPresenter is created but does not wait for the first present.
> 
> BUG=163215,164414,164398
> 
> Review URL: https://chromiumcodereview.appspot.com/11445029

TBR=apatrick@chromium.org
Review URL: https://codereview.chromium.org/11472008

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@171584 0039d316-1c4b-4281-b951-d872f2087c98

Chilledheart/chromium,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,Chilledheart/chromium,jaruba/chromium.src,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,dednal/chromium.src,patrickm/chromium.src,Jonekee/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,dednal/chromium.src,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,markYoungH/chromium.src,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,anirudhSK/chromium,ondra-novak/chromium.src,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium,littlstar/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,patrickm/chromium.src,littlstar/chromium.src,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,dednal/chromium.src,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,anirudhSK/chromium,anirudhSK/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,Just-D/chromium-1,markYoungH/chromium.src,chuan9/chromium-crosswalk,patrickm/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,Chilledheart/chromium,dushu1203/chromium.src,zcbenz/cefode-chromium,Just-D/chromium-1,hgl888/chromium-crosswalk,littlstar/chromium.src,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,ltilve/chromium,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,anirudhSK/chromium,dednal/chromium.src,hujiajie/pa-chromium,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,jaruba/chromium.src,Chilledheart/chromium,fujunwei/chromium-crosswalk,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,ondra-novak/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,zcbenz/cefode-chromium,Just-D/chromium-1,jaruba/chromium.src,M4sse/chromium.src,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,M4sse/chromium.src,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,jaruba/chromium.src,nacl-webkit/chrome_deps,patrickm/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,dushu1203/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,anirudhSK/chromium,dushu1203/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,ltilve/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,littlstar/chromium.src,fujunwei/chromium-crosswalk,Just-D/chromium-1,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,jaruba/chromium.src,patrickm/chromium.src,hgl888/chromium-crosswalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,ltilve/chromium,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,dednal/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,ltilve/chromium,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,ondra-novak/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,patrickm/chromium.src,Jonekee/chromium.src,dednal/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,dednal/chromium.src,nacl-webkit/chrome_deps,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,hujiajie/pa-chromium,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,ondra-novak/chromium.src,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,littlstar/chromium.src,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,bright-sparks/chromium-spacewalk,M4sse/chromium.src,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,nacl-webkit/chrome_deps,Jonekee/chromium.src,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,M4sse/chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl