Fix NativeThemeWin with --enable-accelerated-drawing path.
Fix NativeThemeWin with --enable-accelerated-drawing path.

Do a local copy of the bitmap pixels to a temporary bitmap whose pixels are created with |allocPixels()| and hence refcounted.

This is necessary because SkPicture defers drawing until some time after the |drawBitmap()| call and expects the ref-counting mechanism to hold on to the pixels for it.

BUG=none
TEST=manual using --enable-accelerated-drawing and --force-compositing-mode flags

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

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

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