Slows down frames per second, and moves from CIImage to NSImage.
Slows down frames per second, and moves from CIImage to NSImage.

The close button animation was causing issues, so I did some work to improve performance. According to samples, CIImage was actually taking longer than NSImage and we were running at an insane FPS.

BUG=89232
TEST=See Applescript in bug (http://code.google.com/p/chromium/issues/detail?id=89232#c12)

Review URL: http://codereview.chromium.org/7399034

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

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