Revert 86790 - Roll ANGLE to r654
Revert 86790 - Roll ANGLE to r654

------------------------------------------------------------------------
r654 | nduca@chromium.org | 2011-05-24 18:55:06 -0700 (Tue, 24 May 2011) | 4 lines

Use D3DSWAPEFFECT_FLIPEX on Windows 7.

Reduces frame rate jitters on Windows 7 reported in crbug.com/82925
Review URL: http://codereview.appspot.com/4517096
------------------------------------------------------------------------
r653 | daniel@transgaming.com | 2011-05-17 11:34:24 -0700 (Tue, 17 May 2011) | 3 lines

Add missing newlines to source files

Issue=154
------------------------------------------------------------------------
r652 | daniel@transgaming.com | 2011-05-17 11:34:18 -0700 (Tue, 17 May 2011) | 4 lines

Improve robustness of Context::finish and flush

Trac #16690
Signed-off-by: Nicolas Capens
------------------------------------------------------------------------
r651 | daniel@transgaming.com | 2011-05-13 09:05:22 -0700 (Fri, 13 May 2011) | 7 lines

Fix the order of the error() parameters in Surface.cpp and advertise EGL_ANGLE_d3d_share_handle_client_buffer extension

Trac #16711

Also rename the extension file to match the extension name

Signed-off-by: Nicolas Capens
------------------------------------------------------------------------
r650 | jbauman@chromium.org | 2011-05-12 16:04:07 -0700 (Thu, 12 May 2011) | 6 lines

Add support for eglCreatePbufferFromClientBuffer, taking as input a D3D share handle corresponding to the enum EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE. No spec as of yet, but it does the obvious thing.

BUG=129
TEST=

Review URL: http://codereview.appspot.com/4325048
------------------------------------------------------------------------
r649 | jbauman@chromium.org | 2011-05-12 13:53:34 -0700 (Thu, 12 May 2011) | 8 lines

Use SSE2 to swizzle RGBA to BGRA

Using SSE2 can drastically reduce the amount of time it takes to do glTexImage2D. I've also added a plain-C path that's much faster than the one that was there before.

BUG=151
TEST=

Review URL: http://codereview.appspot.com/4465052
------------------------------------------------------------------------
r648 | apatrick@chromium.org | 2011-05-12 11:15:03 -0700 (Thu, 12 May 2011) | 38 lines

Cache result of D3DPERF_GetStatus.

I profiled the WebGL acquarium with AMD CodeAnalyst and it turns out this function got a lot of hits. Top 10 before change:

CS:EIP     	Symbol + Offset                                                              	64-bit 	Timer samples
0x62a87260 	CBatchFilterI::ProcessBatch                                                  	       	13.41
0x62a171f1 	D3DPERF_GetStatus                                                            	       	6.04
0x629ce831 	CD3DBase::SetVertexShaderConstantF_FP                                        	       	5.12
0x62a88bea 	CBatchFilterI::GetBatchBufferPointer<_LH_SETPIXELSHADERCONSTIMM_TOKEN_SMALL> 	       	4.61
0x6298060b 	UpdateViewportCache                                                          	       	4.2
0x6298da3a 	CD3DBase::UpdateTextures                                                     	       	3.58
0x6298db6b 	CD3DDDIDX10::SetTexture                                                      	       	2.76
0x6298df1d 	CD3DDDIDX10::InsertStreamSource                                              	       	2.46
0x629d1c1a 	CD3DBase::SetPixelShaderConstantF_FP                                         	       	2.25
0x6297efc4 	CD3DHal::SetSamplerState_FP                                                  	       	2.05

10 functions, 186 instructions, Total: 454 samples, 46.47% of shown samples, 2.51% of total session samples

And after:

CS:EIP     	Symbol + Offset                                                              	64-bit 	Timer samples
0x69317260 	CBatchFilterI::ProcessBatch                                                  	       	13.87
0x69318bea 	CBatchFilterI::GetBatchBufferPointer<_LH_SETPIXELSHADERCONSTIMM_TOKEN_SMALL> 	       	5.84
0x6921060b 	UpdateViewportCache                                                          	       	5.29
0x6925e831 	CD3DBase::SetVertexShaderConstantF_FP                                        	       	4.93
0x6921da3a 	CD3DBase::UpdateTextures                                                     	       	4.38
0x6921e034 	CD3DBase::SetStreamSource_FP                                                 	       	3.65
0x69261c1a 	CD3DBase::SetPixelShaderConstantF_FP                                         	       	3.65
0x69227651 	CD3DBase::DrawIndexedPrimitive                                               	       	2.74
0x6920efc4 	CD3DHal::SetSamplerState_FP                                                  	       	2.37
0x6925e9f7 	CD3DBase::SetVertexShaderConstantIntF                                        	       	2.37

10 functions, 152 instructions, Total: 269 samples, 49.09% of shown samples, 0.80% of total session samples

UpdateViewportCache looks like it might be low hanging fruit as well.
Review URL: http://codereview.appspot.com/4535049
------------------------------------------------------------------------

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

TBR=nduca@chromium.org
Review URL: http://codereview.chromium.org/7077022

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

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