Fix first paint time metric in hardware accelerated mode.
Fix first paint time metric in hardware accelerated mode.

The didCompleteSwapBuffers() and OnSwapBuffersComplete() are responsible to
call DidFlushPaint() when hardware accelerated. The first for threaded
compositing and the latter for single threaded compositing.
    
Calling it in OnUpdateRectAck() was too early.
    
BUG=None
TEST=Manually verified trace on all combinations of compositing-on-all-pages
          and threaded-compositing on google, youtube and poster circle.

Review URL: https://chromiumcodereview.appspot.com/10452003

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

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