Unreviewed, rolling out r187812.
[WebKit-https.git] / Source / ThirdParty / ANGLE / ChangeLog
1 2015-07-03  Dan Bernstein  <mitz@apple.com>
2
3         [Xcode] Update some build settings as recommended by Xcode 7
4         https://bugs.webkit.org/show_bug.cgi?id=146597
5
6         Reviewed by Sam Weinig.
7
8         * ANGLE.xcodeproj/project.pbxproj: Enabled CLANG_WARN_BOOL_CONVERSION,
9         CLANG_WARN_ENUM_CONVERSION, CLANG_WARN_INT_CONVERSION, ENABLE_STRICT_OBJC_MSGSEND and
10         GCC_NO_COMMON_BLOCKS.
11
12         * Configurations/Base.xcconfig: Updated LastUpgradeCheck.
13
14 2015-07-03  Per Arne Vollan  <peavo@outlook.com>
15
16         [WinCairo][WebGL] Enable HLSL.
17         https://bugs.webkit.org/show_bug.cgi?id=146559
18
19         Reviewed by Alex Christensen.
20
21         High Level Shader Language needs to be enabled for WebGL to work on Windows.
22
23         * ANGLE.vcxproj/translatorCommon.props:
24         * ANGLE.vcxproj/translator_hlsl.vcxproj:
25         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
26
27 2015-07-01  Alex Christensen  <achristensen@webkit.org>
28
29         Re-enable WebGL on WinCairo
30         https://bugs.webkit.org/show_bug.cgi?id=146537
31
32         Reviewed by Csaba Osztrogonác.
33
34         * ANGLE.vcxproj/DirectX32.props:
35         * ANGLE.vcxproj/DirectX64.props:
36         * ANGLE.vcxproj/libGLESv2Common.props:
37         Update DirectX directories to use the Windows SDK instead of the June 2010 DirectX SDK.
38
39 2015-07-01  Alex Christensen  <achristensen@webkit.org>
40
41         Fix ANGLE Windows build after r186169.
42         https://bugs.webkit.org/show_bug.cgi?id=146532
43
44         Reviewed by Brent Fulgham.
45
46         * ANGLE.vcxproj/libEGL.vcxproj:
47         * ANGLE.vcxproj/libEGL.vcxproj.filters:
48         * ANGLE.vcxproj/libGLESv2.vcxproj:
49         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
50         * ANGLE.vcxproj/libGLESv2Common.props:
51         * ANGLE.vcxproj/translator_common.vcxproj:
52         * ANGLE.vcxproj/translator_common.vcxproj.filters:
53         * ANGLE.vcxproj/translator_glsl.vcxproj:
54         * ANGLE.vcxproj/translator_glsl.vcxproj.filters:
55         * ANGLE.vcxproj/translator_hlsl.vcxproj:
56         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
57         Update Windows build to build new files.
58
59 2015-06-30  Alex Christensen  <achristensen@webkit.org>
60
61         Update ANGLE to b11e2483742db884bd0af41f78f528240577356b.
62         https://bugs.webkit.org/show_bug.cgi?id=145010
63
64         Reviewed by Dean Jackson.
65
66         Huge list of source changes omitted.
67         ROLL DEPS!
68
69 2015-05-26  Dan Bernstein  <mitz@apple.com>
70
71         <rdar://problem/21104551> Update build settings
72
73         Reviewed by Anders Carlsson.
74
75         * Configurations/Base.xcconfig:
76         * Configurations/DebugRelease.xcconfig:
77
78 2015-05-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
79
80         REGRESSION(r181571): Build broken when USE(OPENGL_ES_2) is defined.
81         https://bugs.webkit.org/show_bug.cgi?id=145156
82
83         Reviewed by Alex Christensen.
84
85         * include/GLES2/gl2softlinking.h: Revert r181589. Vertex Array Objects are not in GLESv2.
86
87 2015-05-11  Brent Fulgham  <bfulgham@apple.com>
88
89         [Win] Move Windows build target to Windows 7 (or newer)
90         https://bugs.webkit.org/show_bug.cgi?id=144890
91         <rdar://problem/20707307>
92
93         Reviewed by Anders Carlsson.
94
95         Update linked SDK and minimal Windows level to be compatible with
96         Windows 7 or newer.
97
98         * ANGLE.vcxproj/libEGL.vcxproj:
99         * ANGLE.vcxproj/libGLESv2.vcxproj:
100         * ANGLE.vcxproj/preprocessor.vcxproj:
101         * ANGLE.vcxproj/translator_common.vcxproj:
102         * ANGLE.vcxproj/translator_glsl.vcxproj:
103         * ANGLE.vcxproj/translator_hlsl.vcxproj:
104
105 2015-05-07  Dan Bernstein  <mitz@apple.com>
106
107         <rdar://problem/19317140> [Xcode] Remove usage of AspenFamily.xcconfig in Source/
108         https://bugs.webkit.org/show_bug.cgi?id=144727
109
110         Reviewed by Darin Adler.
111
112         * Configurations/Base.xcconfig: Don’t include AspenFamily.xcconfig, and define
113         INSTALL_PATH_PREFIX and LD_DYLIB_INSTALL_NAME for the iOS 8.x Simulator.
114
115 2015-04-01  Alex Christensen  <achristensen@webkit.org>
116
117         Progress towards CMake on Windows and Mac.
118         https://bugs.webkit.org/show_bug.cgi?id=143293
119
120         Reviewed by Filip Pizlo.
121
122         * include/GLES2/gl2.h:
123         Temporarily disabled WebGL on Windows CMake builds.
124
125 2015-03-17  Zan Dobersek  <zdobersek@igalia.com>
126
127         [CMake] Use a forwarding header for ANGLE's ShaderLang.h to avoid picking up ANGLE's EGL headers
128         https://bugs.webkit.org/show_bug.cgi?id=142530
129
130         Reviewed by Darin Adler.
131
132         * ANGLE/ShaderLang.h: Added. Includes include/GLSLANG/ShaderLang.h. Used in WebCore
133         so we can avoid using ANGLE's EGL headers and use the system-default headers instead.
134
135 2015-03-16  Roger Fong  <roger_fong@apple.com>
136
137         [Win] Unreviewed build fix after r181571.
138
139         * include/GLES2/gl2softlinking.h:
140
141 2015-03-12  Brent Fulgham  <bfulgham@apple.com>
142
143         [Win] Unreviewed build fix (part 2).
144
145         * ANGLE.vcxproj/libGLESv2Common.props: Missed a directory separator.
146
147 2015-03-12  Brent Fulgham  <bfulgham@apple.com>
148
149         [Win] Unreviewed build fix for some DirectX SDK Installs
150
151         * ANGLE.vcxproj/libGLESv2Common.props: Correct path for Lib and
152         Include paths based on problems others have had building WebKit
153         under different Windows and DirectX revisions.
154
155 2015-02-20  Alexey Proskuryakov  <ap@apple.com>
156
157         Remove svn:keywords property.
158
159         As far as I can tell, the property had no effect on any of these files, but also,
160         when it has effect it's likely harmful.
161
162         * ANGLE.txt: Removed property svn:keywords.
163         * src/common/RefCountObject.cpp: Removed property svn:keywords.
164         * src/common/RefCountObject.h: Removed property svn:keywords.
165         * src/compiler/translator/BaseTypes.h: Removed property svn:keywords.
166         * src/compiler/translator/BuiltInFunctionEmulator.cpp: Removed property svn:keywords.
167         * src/compiler/translator/BuiltInFunctionEmulator.h: Removed property svn:keywords.
168         * src/compiler/translator/CodeGen.cpp: Removed property svn:keywords.
169         * src/compiler/translator/Common.h: Removed property svn:keywords.
170         * src/compiler/translator/Compiler.cpp: Removed property svn:keywords.
171         * src/compiler/translator/ConstantUnion.h: Removed property svn:keywords.
172         * src/compiler/translator/DetectCallDepth.cpp: Removed property svn:keywords.
173         * src/compiler/translator/DetectCallDepth.h: Removed property svn:keywords.
174         * src/compiler/translator/DetectDiscontinuity.cpp: Removed property svn:keywords.
175         * src/compiler/translator/DetectDiscontinuity.h: Removed property svn:keywords.
176         * src/compiler/translator/Diagnostics.cpp: Removed property svn:keywords.
177         * src/compiler/translator/Diagnostics.h: Removed property svn:keywords.
178         * src/compiler/translator/DirectiveHandler.cpp: Removed property svn:keywords.
179         * src/compiler/translator/DirectiveHandler.h: Removed property svn:keywords.
180         * src/compiler/translator/ExtensionBehavior.h: Removed property svn:keywords.
181         * src/compiler/translator/ForLoopUnroll.cpp: Removed property svn:keywords.
182         * src/compiler/translator/ForLoopUnroll.h: Removed property svn:keywords.
183         * src/compiler/translator/HashNames.h: Removed property svn:keywords.
184         * src/compiler/translator/InfoSink.cpp: Removed property svn:keywords.
185         * src/compiler/translator/InfoSink.h: Removed property svn:keywords.
186         * src/compiler/translator/Initialize.cpp: Removed property svn:keywords.
187         * src/compiler/translator/Initialize.h: Removed property svn:keywords.
188         * src/compiler/translator/InitializeDll.cpp: Removed property svn:keywords.
189         * src/compiler/translator/InitializeDll.h: Removed property svn:keywords.
190         * src/compiler/translator/InitializeGlobals.h: Removed property svn:keywords.
191         * src/compiler/translator/InitializeParseContext.cpp: Removed property svn:keywords.
192         * src/compiler/translator/InitializeParseContext.h: Removed property svn:keywords.
193         * src/compiler/translator/InitializeVariables.cpp: Removed property svn:keywords.
194         * src/compiler/translator/InitializeVariables.h: Removed property svn:keywords.
195         * src/compiler/translator/IntermTraverse.cpp: Removed property svn:keywords.
196         * src/compiler/translator/Intermediate.cpp: Removed property svn:keywords.
197         * src/compiler/translator/MMap.h: Removed property svn:keywords.
198         * src/compiler/translator/NodeSearch.h: Removed property svn:keywords.
199         * src/compiler/translator/OutputESSL.cpp: Removed property svn:keywords.
200         * src/compiler/translator/OutputESSL.h: Removed property svn:keywords.
201         * src/compiler/translator/OutputGLSL.cpp: Removed property svn:keywords.
202         * src/compiler/translator/OutputGLSL.h: Removed property svn:keywords.
203         * src/compiler/translator/OutputGLSLBase.cpp: Removed property svn:keywords.
204         * src/compiler/translator/OutputGLSLBase.h: Removed property svn:keywords.
205         * src/compiler/translator/OutputHLSL.cpp: Removed property svn:keywords.
206         * src/compiler/translator/OutputHLSL.h: Removed property svn:keywords.
207         * src/compiler/translator/ParseContext.cpp: Removed property svn:keywords.
208         * src/compiler/translator/ParseContext.h: Removed property svn:keywords.
209         * src/compiler/translator/PoolAlloc.cpp: Removed property svn:keywords.
210         * src/compiler/translator/PoolAlloc.h: Removed property svn:keywords.
211         * src/compiler/translator/Pragma.h: Removed property svn:keywords.
212         * src/compiler/translator/QualifierAlive.cpp: Removed property svn:keywords.
213         * src/compiler/translator/QualifierAlive.h: Removed property svn:keywords.
214         * src/compiler/translator/RemoveTree.cpp: Removed property svn:keywords.
215         * src/compiler/translator/RemoveTree.h: Removed property svn:keywords.
216         * src/compiler/translator/RenameFunction.h: Removed property svn:keywords.
217         * src/compiler/translator/RewriteElseBlocks.cpp: Removed property svn:keywords.
218         * src/compiler/translator/RewriteElseBlocks.h: Removed property svn:keywords.
219         * src/compiler/translator/SearchSymbol.cpp: Removed property svn:keywords.
220         * src/compiler/translator/SearchSymbol.h: Removed property svn:keywords.
221         * src/compiler/translator/ShHandle.h: Removed property svn:keywords.
222         * src/compiler/translator/ShaderLang.cpp: Removed property svn:keywords.
223         * src/compiler/translator/SymbolTable.cpp: Removed property svn:keywords.
224         * src/compiler/translator/SymbolTable.h: Removed property svn:keywords.
225         * src/compiler/translator/TranslatorESSL.cpp: Removed property svn:keywords.
226         * src/compiler/translator/TranslatorESSL.h: Removed property svn:keywords.
227         * src/compiler/translator/TranslatorGLSL.cpp: Removed property svn:keywords.
228         * src/compiler/translator/TranslatorGLSL.h: Removed property svn:keywords.
229         * src/compiler/translator/TranslatorHLSL.cpp: Removed property svn:keywords.
230         * src/compiler/translator/TranslatorHLSL.h: Removed property svn:keywords.
231         * src/compiler/translator/Types.h: Removed property svn:keywords.
232         * src/compiler/translator/UnfoldShortCircuit.cpp: Removed property svn:keywords.
233         * src/compiler/translator/UnfoldShortCircuit.h: Removed property svn:keywords.
234         * src/compiler/translator/UnfoldShortCircuitAST.cpp: Removed property svn:keywords.
235         * src/compiler/translator/UnfoldShortCircuitAST.h: Removed property svn:keywords.
236         * src/compiler/translator/ValidateLimitations.cpp: Removed property svn:keywords.
237         * src/compiler/translator/ValidateLimitations.h: Removed property svn:keywords.
238         * src/compiler/translator/VariableInfo.cpp: Removed property svn:keywords.
239         * src/compiler/translator/VariableInfo.h: Removed property svn:keywords.
240         * src/compiler/translator/VariablePacker.cpp: Removed property svn:keywords.
241         * src/compiler/translator/VariablePacker.h: Removed property svn:keywords.
242         * src/compiler/translator/VersionGLSL.cpp: Removed property svn:keywords.
243         * src/compiler/translator/VersionGLSL.h: Removed property svn:keywords.
244         * src/compiler/translator/compilerdebug.cpp: Removed property svn:keywords.
245         * src/compiler/translator/compilerdebug.h: Removed property svn:keywords.
246         * src/compiler/translator/depgraph/DependencyGraph.cpp: Removed property svn:keywords.
247         * src/compiler/translator/depgraph/DependencyGraph.h: Removed property svn:keywords.
248         * src/compiler/translator/depgraph/DependencyGraphBuilder.cpp: Removed property svn:keywords.
249         * src/compiler/translator/depgraph/DependencyGraphBuilder.h: Removed property svn:keywords.
250         * src/compiler/translator/depgraph/DependencyGraphOutput.cpp: Removed property svn:keywords.
251         * src/compiler/translator/depgraph/DependencyGraphOutput.h: Removed property svn:keywords.
252         * src/compiler/translator/depgraph/DependencyGraphTraverse.cpp: Removed property svn:keywords.
253         * src/compiler/translator/generate_parser.sh: Removed property svn:keywords.
254         * src/compiler/translator/glslang.h: Removed property svn:keywords.
255         * src/compiler/translator/glslang_lex.cpp: Removed property svn:keywords.
256         * src/compiler/translator/glslang_tab.cpp: Removed property svn:keywords.
257         * src/compiler/translator/glslang_tab.h: Removed property svn:keywords.
258         * src/compiler/translator/intermOut.cpp: Removed property svn:keywords.
259         * src/compiler/translator/intermediate.h: Removed property svn:keywords.
260         * src/compiler/translator/localintermediate.h: Removed property svn:keywords.
261         * src/compiler/translator/osinclude.h: Removed property svn:keywords.
262         * src/compiler/translator/ossource_posix.cpp: Removed property svn:keywords.
263         * src/compiler/translator/ossource_win.cpp: Removed property svn:keywords.
264         * src/compiler/translator/parseConst.cpp: Removed property svn:keywords.
265         * src/compiler/translator/timing/RestrictFragmentShaderTiming.cpp: Removed property svn:keywords.
266         * src/compiler/translator/timing/RestrictFragmentShaderTiming.h: Removed property svn:keywords.
267         * src/compiler/translator/timing/RestrictVertexShaderTiming.cpp: Removed property svn:keywords.
268         * src/compiler/translator/timing/RestrictVertexShaderTiming.h: Removed property svn:keywords.
269         * src/compiler/translator/util.cpp: Removed property svn:keywords.
270         * src/compiler/translator/util.h: Removed property svn:keywords.
271         * src/libGLESv2/renderer/d3d11/BufferStorage11.cpp: Removed property svn:keywords.
272         * src/libGLESv2/renderer/d3d11/BufferStorage11.h: Removed property svn:keywords.
273         * src/libGLESv2/renderer/d3d11/Fence11.cpp: Removed property svn:keywords.
274         * src/libGLESv2/renderer/d3d11/Fence11.h: Removed property svn:keywords.
275         * src/libGLESv2/renderer/d3d11/Image11.cpp: Removed property svn:keywords.
276         * src/libGLESv2/renderer/d3d11/Image11.h: Removed property svn:keywords.
277         * src/libGLESv2/renderer/d3d11/IndexBuffer11.cpp: Removed property svn:keywords.
278         * src/libGLESv2/renderer/d3d11/IndexBuffer11.h: Removed property svn:keywords.
279         * src/libGLESv2/renderer/d3d11/InputLayoutCache.cpp: Removed property svn:keywords.
280         * src/libGLESv2/renderer/d3d11/InputLayoutCache.h: Removed property svn:keywords.
281         * src/libGLESv2/renderer/d3d11/Query11.cpp: Removed property svn:keywords.
282         * src/libGLESv2/renderer/d3d11/Query11.h: Removed property svn:keywords.
283         * src/libGLESv2/renderer/d3d11/RenderStateCache.cpp: Removed property svn:keywords.
284         * src/libGLESv2/renderer/d3d11/RenderStateCache.h: Removed property svn:keywords.
285         * src/libGLESv2/renderer/d3d11/RenderTarget11.cpp: Removed property svn:keywords.
286         * src/libGLESv2/renderer/d3d11/RenderTarget11.h: Removed property svn:keywords.
287         * src/libGLESv2/renderer/d3d11/Renderer11.cpp: Removed property svn:keywords.
288         * src/libGLESv2/renderer/d3d11/Renderer11.h: Removed property svn:keywords.
289         * src/libGLESv2/renderer/d3d11/ShaderExecutable11.cpp: Removed property svn:keywords.
290         * src/libGLESv2/renderer/d3d11/ShaderExecutable11.h: Removed property svn:keywords.
291         * src/libGLESv2/renderer/d3d11/SwapChain11.cpp: Removed property svn:keywords.
292         * src/libGLESv2/renderer/d3d11/SwapChain11.h: Removed property svn:keywords.
293         * src/libGLESv2/renderer/d3d11/TextureStorage11.cpp: Removed property svn:keywords.
294         * src/libGLESv2/renderer/d3d11/TextureStorage11.h: Removed property svn:keywords.
295         * src/libGLESv2/renderer/d3d11/VertexBuffer11.cpp: Removed property svn:keywords.
296         * src/libGLESv2/renderer/d3d11/VertexBuffer11.h: Removed property svn:keywords.
297         * src/libGLESv2/renderer/d3d11/renderer11_utils.cpp: Removed property svn:keywords.
298         * src/libGLESv2/renderer/d3d11/renderer11_utils.h: Removed property svn:keywords.
299         * src/libGLESv2/renderer/d3d9/BufferStorage9.cpp: Removed property svn:keywords.
300         * src/libGLESv2/renderer/d3d9/BufferStorage9.h: Removed property svn:keywords.
301         * src/libGLESv2/renderer/d3d9/Fence9.cpp: Removed property svn:keywords.
302         * src/libGLESv2/renderer/d3d9/Fence9.h: Removed property svn:keywords.
303         * src/libGLESv2/renderer/d3d9/Image9.cpp: Removed property svn:keywords.
304         * src/libGLESv2/renderer/d3d9/Image9.h: Removed property svn:keywords.
305         * src/libGLESv2/renderer/d3d9/IndexBuffer9.cpp: Removed property svn:keywords.
306         * src/libGLESv2/renderer/d3d9/IndexBuffer9.h: Removed property svn:keywords.
307         * src/libGLESv2/renderer/d3d9/Query9.cpp: Removed property svn:keywords.
308         * src/libGLESv2/renderer/d3d9/Query9.h: Removed property svn:keywords.
309         * src/libGLESv2/renderer/d3d9/RenderTarget9.cpp: Removed property svn:keywords.
310         * src/libGLESv2/renderer/d3d9/RenderTarget9.h: Removed property svn:keywords.
311         * src/libGLESv2/renderer/d3d9/Renderer9.cpp: Removed property svn:keywords.
312         * src/libGLESv2/renderer/d3d9/Renderer9.h: Removed property svn:keywords.
313         * src/libGLESv2/renderer/d3d9/ShaderExecutable9.cpp: Removed property svn:keywords.
314         * src/libGLESv2/renderer/d3d9/ShaderExecutable9.h: Removed property svn:keywords.
315         * src/libGLESv2/renderer/d3d9/SwapChain9.cpp: Removed property svn:keywords.
316         * src/libGLESv2/renderer/d3d9/SwapChain9.h: Removed property svn:keywords.
317         * src/libGLESv2/renderer/d3d9/TextureStorage9.cpp: Removed property svn:keywords.
318         * src/libGLESv2/renderer/d3d9/TextureStorage9.h: Removed property svn:keywords.
319         * src/libGLESv2/renderer/d3d9/VertexBuffer9.cpp: Removed property svn:keywords.
320         * src/libGLESv2/renderer/d3d9/VertexBuffer9.h: Removed property svn:keywords.
321         * src/libGLESv2/renderer/d3d9/VertexDeclarationCache.cpp: Removed property svn:keywords.
322         * src/libGLESv2/renderer/d3d9/VertexDeclarationCache.h: Removed property svn:keywords.
323         * src/libGLESv2/renderer/d3d9/renderer9_utils.cpp: Removed property svn:keywords.
324         * src/libGLESv2/renderer/d3d9/renderer9_utils.h: Removed property svn:keywords.
325         * src/libGLESv2/renderer/d3d9/shaders/compiled/componentmaskps.h: Removed property svn:keywords.
326         * src/libGLESv2/renderer/d3d9/shaders/compiled/flipyvs.h: Removed property svn:keywords.
327         * src/libGLESv2/renderer/d3d9/shaders/compiled/luminanceps.h: Removed property svn:keywords.
328         * src/libGLESv2/renderer/d3d9/shaders/compiled/passthroughps.h: Removed property svn:keywords.
329         * src/libGLESv2/renderer/d3d9/shaders/compiled/standardvs.h: Removed property svn:keywords.
330
331 2015-01-28  Dana Burkart  <dburkart@apple.com>
332
333         Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
334         https://bugs.webkit.org/show_bug.cgi?id=136765
335
336         Reviewed by Alexey Proskuryakov.
337
338         * Configurations/Base.xcconfig:
339         * Configurations/DebugRelease.xcconfig:
340
341 2014-12-26  Dan Bernstein  <mitz@apple.com>
342
343         <rdar://problem/19348208> REGRESSION (r177027): iOS builds use the wrong toolchain
344         https://bugs.webkit.org/show_bug.cgi?id=139950
345
346         Reviewed by David Kilzer.
347
348         * Configurations/Base.xcconfig: Only define TOOLCHAINS when building for OS X, doing so
349         in a manner that works with Xcode 5.1.1.
350
351 2014-12-24  Dan Bernstein  <mitz@apple.com>
352
353         ANGLE extern symbols are not hidden by default, but should be
354         https://bugs.webkit.org/show_bug.cgi?id=139936
355
356         Reviewed by Mark Rowe.
357
358         * Configurations/Base.xcconfig: Changed GCC_SYMBOLS_PRIVATE_EXTERN to YES.
359
360 2014-12-24  Dan Bernstein  <mitz@apple.com>
361
362         Removed the Derived Sources target.
363
364         It has been empty since r159533.
365
366         * ANGLE.xcodeproj/project.pbxproj:
367
368 2014-12-09  David Kilzer  <ddkilzer@apple.com>
369
370         Switch from using PLATFORM_NAME to SDK selectors in ANGLE, bmalloc, gtest, JavaScriptCore, WTF
371         <http://webkit.org/b/139212>
372
373         Reviewed by Joseph Pecoraro.
374
375         * Configurations/Base.xcconfig:
376         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
377           on OS X.
378         * Configurations/DebugRelease.xcconfig:
379         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
380
381 2014-10-30  Dana Burkart  <dburkart@apple.com>
382
383         <rdar://problem/18821260> Prepare for the mysterious future
384
385         Reviewed by Lucas Forschler.
386
387         * Configurations/Base.xcconfig:
388         * Configurations/DebugRelease.xcconfig:
389
390 2014-10-08  Brent Fulgham  <bfulgham@apple.com>
391
392         [Win] Use proper v120 target for 64-bit builds.
393
394         * ANGLE.vcxproj/libEGL.vcxproj:
395
396 2014-09-29  peavo@outlook.com  <peavo@outlook.com>
397
398         [WinCairo] D3D11 is not used by default.
399         https://bugs.webkit.org/show_bug.cgi?id=137215
400
401         Reviewed by Alex Christensen.
402
403         ANGLE_DEFAULT_D3D11 needs to be defined for D3D11 to be used as default.
404
405         * ANGLE.vcxproj/libGLESv2Common.props:
406
407 2014-09-19  Daniel Bates  <dabates@apple.com>
408
409         Always assume internal SDK when building configuration Production
410         https://bugs.webkit.org/show_bug.cgi?id=136925
411         <rdar://problem/18362399>
412
413         Reviewed by Dan Bernstein.
414
415         * Configurations/Base.xcconfig:
416
417 2014-09-10  Roger Fong  <roger_fong@apple.com>
418
419         Check for varying packing restrictions per program instead of per shader.
420         https://bugs.webkit.org/show_bug.cgi?id=136585.
421         <rdar://problem/16308409>.
422
423         Reviewed by Dean Jackson.
424
425         Remove varying packing restrictions checks from ANGLE.
426         * src/compiler/translator/Compiler.cpp:
427         (TCompiler::compile):
428         (TCompiler::enforcePackingRestrictions):
429         * src/compiler/translator/ShHandle.h:
430
431 2014-09-06  Darin Adler  <darin@apple.com>
432
433         Make updates suggested by new version of Xcode
434         https://bugs.webkit.org/show_bug.cgi?id=136603
435
436         Reviewed by Mark Rowe.
437
438         * ANGLE.xcodeproj/project.pbxproj: Updated LastUpgradeCheck.
439
440         * Configurations/ANGLE.xcconfig: Added CLANG_WARN_BOOL_CONVERSION,
441         CLANG_WARN_ENUM_CONVERSION, CLANG_WARN_INT_CONVERSION, COMBINE_HIDPI_IMAGES,
442         and ENABLE_STRICT_OBJC_MSGSEND as suggested by Xcode upgrade check.
443
444 2014-09-06  Commit Queue  <commit-queue@webkit.org>
445
446         Unreviewed, rolling out r173335.
447         https://bugs.webkit.org/show_bug.cgi?id=136597
448
449         Broke webgl/1.0.2/conformance/glsl/misc/shader-varying-
450         packing-restrictions.html (Requested by ap on #webkit).
451
452         Reverted changeset:
453
454         "Remove statically used varyings from packing restrictions
455         check."
456         https://bugs.webkit.org/show_bug.cgi?id=136585
457         http://trac.webkit.org/changeset/173335
458
459 2014-09-05  Roger Fong  <roger_fong@apple.com>
460
461         Remove statically used varyings from packing restrictions check.
462         https://bugs.webkit.org/show_bug.cgi?id=136585.
463         <rdar://problem/16308409>
464
465         Reviewed by Dean Jackson.
466
467         * src/compiler/translator/Compiler.cpp:
468         (TCompiler::enforcePackingRestrictions):
469
470 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
471
472         Unreviwed, remove empty directories.
473
474         * src/compiler/depgraph: Removed.
475         * src/compiler/timing: Removed.
476         * src/libGLESv2/renderer/shaders: Removed.
477         * src/libGLESv2/renderer/shaders/compiled: Removed.
478
479 2014-08-11  Andy Estes  <aestes@apple.com>
480
481         [iOS] Get rid of iOS.xcconfig
482         https://bugs.webkit.org/show_bug.cgi?id=135809
483
484         Reviewed by Joseph Pecoraro.
485
486         All iOS.xcconfig did was include AspenFamily.xcconfig, so there's no need for the indirection.
487
488         * ANGLE.xcodeproj/project.pbxproj:
489         * Configurations/Base.xcconfig:
490         * Configurations/iOS.xcconfig: Removed.
491
492 2014-08-07  Brent Fulgham  <bfulgham@apple.com>
493
494         [Win] Unreviewed gardening.
495
496         DebugSuffix targets should use our debugsuffix property sheet, and
497         will therefore build to the proper output location with the proper
498         suffix tags.
499
500         Also, we must use the WebKit_Libraries environment variable, not a set
501         of relative paths to the property sheets.
502
503         * ANGLE.vcxproj/libEGL.vcxproj: Use 'debugsuffix.props' sheet.
504         * ANGLE.vcxproj/libGLESv2.vcxproj: Ditto.
505         * ANGLE.vcxproj/preprocessor.vcxproj: Ditto.
506         * ANGLE.vcxproj/translator_common.vcxproj: Ditto.
507         * ANGLE.vcxproj/translator_glsl.vcxproj: Ditto.
508         * ANGLE.vcxproj/translator_hlsl.vcxproj: Ditto.
509         * ANGLE.vcxproj/libEGLCommon.props: Use $(DebugSuffix) endings.
510         * ANGLE.vcxproj/libGLESv2Common.props: Ditto.
511         * ANGLE.vcxproj/translatorCommon.props: Output to 'lib' folder,
512         not 'bin' folder. These are libraries!
513
514 2014-08-02  Brent Fulgham  <bfulgham@apple.com>
515
516         [Win] Unreviewed build fix.
517
518         * src/libGLESv2/renderer/d3d11/BufferStorage11.cpp:
519         (rx::BufferStorage11::copyData): Help compiler make
520         decision about types.
521
522 2014-07-25  peavo@outlook.com  <peavo@outlook.com>
523
524         [Win][ANGLE] Enable D3D11.
525         https://bugs.webkit.org/show_bug.cgi?id=135296
526
527         Reviewed by Alex Christensen.
528
529         Direct3D 11 is not enabled on Windows.
530
531         * ANGLE.vcxproj/libGLESv2.vcxproj: Added files.
532         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Ditto.
533         * ANGLE.vcxproj/libGLESv2Common.props: Enable D3D11.
534         * src/libGLESv2/precompiled.h: Header file does not exist, avoid include.
535         * changes.diff: Updated diff.
536
537 2014-06-04  Alex Christensen  <achristensen@webkit.org>
538
539         Enable WebGL on Windows.
540         https://bugs.webkit.org/show_bug.cgi?id=133503
541
542         Reviewed by Brent Fulgham.
543
544         * changes.diff
545         Recorded additional changes from ANGLE.
546         * ANGLE.vcxproj/libEGL.vcxproj:
547         * ANGLE.vcxproj/libEGL.vcxproj.filters:
548         * ANGLE.vcxproj/libGLESv2.vcxproj:
549         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
550         * include/EGL/egl.h:
551         * include/EGL/eglsoftlinking.h: Added.
552         * include/GLES2/gl2.h:
553         * include/GLES2/gl2softlinking.h: Added.
554         Resurrected soft linking headers from r153664.
555         * src/libGLESv2/renderer/VertexBuffer.cpp:
556         (rx::VertexBufferInterface::directStoragePossible):
557         Compile fix for Win64.
558
559 2014-05-02  Alex Christensen  <achristensen@webkit.org>
560
561         Update ANGLE Windows build.
562         https://bugs.webkit.org/show_bug.cgi?id=132456
563
564         Reviewed by Brent Fulgham.
565
566         * ANGLE.vcxproj/libEGLCommon.props:
567         * ANGLE.vcxproj/libGLESv2.vcxproj:
568         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
569         * ANGLE.vcxproj/libGLESv2Common.props:
570         * ANGLE.vcxproj/translator_common.vcxproj:
571         * ANGLE.vcxproj/translator_common.vcxproj.filters:
572         * ANGLE.vcxproj/translator_glsl.vcxproj:
573         * ANGLE.vcxproj/translator_glsl.vcxproj.filters:
574         * ANGLE.vcxproj/translator_hlsl.vcxproj:
575         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
576         Updated ANGLE build.
577         * src/ANGLE.sln: Removed.
578         * src/build_angle.gyp: Removed.
579         * src/commit.h: Added.
580         * changes.diff:
581         * src/libGLESv2/Program.cpp:
582         (gl::InfoLog::append):
583         Fixed typo.
584
585 2014-05-01  Alex Christensen  <achristensen@webkit.org>
586
587         Finish updating ANGLE.
588         https://bugs.webkit.org/show_bug.cgi?id=132434
589
590         Reviewed by Dean Jackson.
591
592         * ANGLE.xcodeproj/project.pbxproj:
593         Removed Uniform.cpp which is no longer in ANGLE.
594         * changes.diff:
595         Added more changes from ANGLE which are already included in WebKit.
596
597         Updated ANGLE source files to e7a453a5bd76705ccb151117fa844846d4aa90af.  Long list of changes omitted.
598
599 2014-04-30  Alex Christensen  <achristensen@webkit.org>
600
601         Updated ANGLE.
602         https://bugs.webkit.org/show_bug.cgi?id=132367
603         <rdar://problem/16211451>
604
605         Reviewed by Dean Jackson.
606
607         * ANGLE.plist:
608         Updated and xml encoded.
609         * ANGLE.xcodeproj/project.pbxproj:
610         Added needed new source files.
611         * changes.diff: 
612         Added to keep track of differences between WebKit's copy of ANGLE and the master repository.
613         
614         Updated ANGLE source files to e7a453a5bd76705ccb151117fa844846d4aa90af.  Long list of changes omitted.
615
616 2014-03-25  Martin Robinson  <mrobinson@igalia.com>
617
618         [GTK] Remove the autotools build
619         https://bugs.webkit.org/show_bug.cgi?id=130717
620
621         Reviewed by Anders Carlsson.
622
623         * GNUmakefile.am: Removed.
624
625 2014-03-14  Mark Rowe  <mrowe@apple.com>
626
627         Fix the production build.
628
629         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
630         be at the expected relative path when working from installed source.
631
632         * Configurations/Base.xcconfig:
633
634 2014-03-13  Tim Horton  <timothy_horton@apple.com>
635
636         Fix relative paths to UseInternalSDK.xcconfig for ANGLE and WebKit/mac
637
638         Rubber-stamped by Mark Rowe.
639
640         One-too-few "..".
641
642         * Configurations/Base.xcconfig:
643
644 2014-03-13  Radu Stavila  <stavila@adobe.com>
645
646         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
647         https://bugs.webkit.org/show_bug.cgi?id=130087
648
649         Reviewed by Mark Rowe.
650
651         Disable garbage collection on macosx when not using internal SDK.
652
653         * Configurations/Base.xcconfig:
654
655 2014-02-24  Dean Jackson  <dino@apple.com>
656
657         Unreviewed. This file should not be marked as executable (copied in from ANGLE).
658
659         * include/KHR/khrplatform.h:
660
661 2014-02-23  David Kilzer  <ddkilzer@apple.com>
662
663         ANGLE: Stop using unsafe strcpy method
664         <http://webkit.org/b/129237>
665         <rdar://problem/11077580>
666
667         Reviewed by Dean Jackson.
668
669         * include/GLSLANG/ShaderLang.h:
670         - Drive-by fix for header documentation.
671
672         * src/compiler/translator/ShaderLang.cpp:
673         (ShGetInfoLog):
674         (ShGetObjectCode):
675         * src/libGLESv2/Program.cpp:
676         (gl::InfoLog::append):
677         - Switch to use strncpy(), and explicitly set NULL terminator at
678           the end of the buffer.
679
680 2014-02-23  Brent Fulgham  <bfulgham@apple.com>
681
682         [WinCairo] Unreviewed build fix after r164565.
683
684         * ANGLE.vcxproj/libEGL.vcxproj: Use correct path to files.
685         * ANGLE.vcxproj/libGLESv2.vcxproj: Ditto.
686         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Ditto.
687         * ANGLE.vcxproj/preprocessor.vcxproj: Ditto.
688         * ANGLE.vcxproj/translator_common.vcxproj: Ditto.
689         * ANGLE.vcxproj/translator_common.vcxproj.filters: Ditto.
690         * ANGLE.vcxproj/translator_glsl.vcxproj: Ditto.
691         * ANGLE.vcxproj/translator_glsl.vcxproj.filters: Ditto.
692         * ANGLE.vcxproj/translator_hlsl.vcxproj: Ditto.
693         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters: Ditto.
694
695 2014-02-23  Dean Jackson  <dino@apple.com>
696
697         Missing files from previous commit.
698
699 2014-02-23  Dean Jackson  <dino@apple.com>
700
701         Update ANGLE to 836bd2176e5607b14846cf1fbc5932dbc91318f4
702         https://bugs.webkit.org/show_bug.cgi?id=129232
703
704         Reviewed by Brent Fulgham.
705
706         I also reapplied some of our changes from previous updates, including disabling the clang deprecation
707         warnings in some files, adding the Apple note about license and defining YY_NO_INPUT.
708
709         Huge list of source changes omitted.
710
711 2013-12-18  Carlos Garcia Campos  <cgarcia@igalia.com>
712
713         Unreviewed. Fix make distcheck.
714
715         * GNUmakefile.am:
716
717 2013-12-17  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
718
719         [GTK] Some ANGLE headers missing from dist
720         https://bugs.webkit.org/show_bug.cgi?id=125782
721
722         Reviewed by Carlos Garcia Campos.
723
724         * GNUmakefile.am: add a few headers that were missing from the build,
725         causing build failures when the system headers were incompatible.
726
727 2013-12-16  Alex Christensen  <achristensen@webkit.org>
728
729         Fixed Win64 build on VS2013.
730         https://bugs.webkit.org/show_bug.cgi?id=125753
731
732         Reviewed by Brent Fulgham.
733
734         * ANGLE.vcxproj/libGLESv2.vcxproj:
735         * ANGLE.vcxproj/preprocessor.vcxproj:
736         * ANGLE.vcxproj/translator_common.vcxproj:
737         * ANGLE.vcxproj/translator_glsl.vcxproj:
738         * ANGLE.vcxproj/translator_hlsl.vcxproj:
739         Added correct PlatformToolset for 64-bit builds.
740
741 2013-12-13  Brent Fulgham  <bfulgham@apple.com>
742
743         [Win] Unreviewed build fix after r160548
744
745         I missed the ANGLE files, since we aren't building these
746         on the Apple Windows port at the moment.
747
748         * ANGLE.vcxproj/libEGL.vcxproj: Update to VS2013
749         * ANGLE.vcxproj/libGLESv2.vcxproj: Ditto
750         * ANGLE.vcxproj/preprocessor.vcxproj: Ditto
751         * ANGLE.vcxproj/translator_common.vcxproj: Ditto
752         * ANGLE.vcxproj/translator_glsl.vcxproj: Ditto
753         * ANGLE.vcxproj/translator_hlsl.vcxproj: Ditto
754
755 2013-12-06  Commit Queue  <commit-queue@webkit.org>
756
757         Unreviewed, rolling out r159543.
758         http://trac.webkit.org/changeset/159543
759         https://bugs.webkit.org/show_bug.cgi?id=125371
760
761         Build fix for mac no longer needed (Requested by rfong on
762         #webkit).
763
764         * ANGLE.xcodeproj/project.pbxproj:
765         * src/compiler/glslang_tab.cpp:
766         (yysyntax_error):
767         (glslang_parse):
768         * src/compiler/glslang_tab.h:
769         * src/compiler/preprocessor/ExpressionParser.cpp:
770         (yy_symbol_print):
771         (yy_stack_print):
772         (yy_reduce_print):
773         (yytnamerr):
774         (yysyntax_error):
775         (yydestruct):
776         (yyparse):
777
778 2013-12-05  Roger Fong  <roger_fong@apple.com>
779
780         [WebGL] Make sure we satisfy uniform and varying packing restrictions.
781         https://bugs.webkit.org/show_bug.cgi?id=125124.
782         <rdar://problem/15203291>
783
784         Reviewed by Brent Fulgham.
785
786         * src/compiler/Compiler.cpp: 
787         Add a check to enforcePackingRestrictions to ensure we make sure packing restrictions for varyings are satisfied as well.
788         (TCompiler::TCompiler):
789         (TCompiler::Init):
790         (TCompiler::compile):
791         (TCompiler::enforcePackingRestrictions):
792         * src/compiler/ShHandle.h: Keep track of maximum varying vectors.
793
794 2013-12-05  Matthew Hanson  <matthew_hanson@apple.com>
795
796         Fix ANGLE build failures by re-comitting the changes in http://trac.webkit.org/changeset/154223
797         on top of the library updates introduced by http://trac.webkit.org/changeset/159533.
798
799         Rubber-stamped by Babak Shafiei.
800
801         * src/compiler/glslang.l:
802         * src/compiler/glslang_lex.cpp:
803         * src/compiler/preprocessor/Tokenizer.cpp:
804         * src/compiler/preprocessor/Tokenizer.l:
805
806 2013-12-03  Daniel Bates  <dabates@apple.com>
807
808         ANGLE fails to build with trunk clang: unused constant kTraceBufferLen
809         https://bugs.webkit.org/show_bug.cgi?id=125164
810         https://code.google.com/p/angleproject/issues/detail?id=534
811
812         Reviewed by Darin Adler.
813
814         Move the definition of the constant kTraceBufferLen under the macro
815         guard TRACE_ENABLED since it's only referenced in code guarded by
816         TRACE_ENABLED.
817
818         * src/compiler/debug.cpp:
819
820 2013-11-21  Alex Christensen  <achristensen@webkit.org>
821
822         Remove ANGLEGenerated from Windows build.
823         https://bugs.webkit.org/show_bug.cgi?id=124759
824
825         Reviewed by Darin Adler.
826
827         * ANGLE.vcxproj/ANGLEGenerated.vcxproj: Removed.
828         * ANGLE.vcxproj/ANGLEGenerated.vcxproj.filters: Removed.
829
830 2013-11-21  Alex Christensen  <achristensen@webkit.org>
831
832         Unreviewed build fix.
833
834         * src/libGLESv2/Constants.h: Added from checkout a60e0805721f62c28a55faf2df74472cc5fc91fc.
835
836 2013-11-21  Mark Rowe  <mrowe@apple.com>
837
838         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
839
840         Reviewed by Alexey Proskuryakov.
841
842         * Configurations/Base.xcconfig:
843
844 2013-11-21  Brent Fulgham  <bfulgham@apple.com>
845
846         Unreviewed gardening to hide annoying *.user files when.
847
848         * ANGLE.vcxproj: Added property svn:ignore.
849
850 2013-11-21  peavo@outlook.com  <peavo@outlook.com>
851
852         [WinCairo] Building ANGLE libraries fails.
853         https://bugs.webkit.org/show_bug.cgi?id=124679
854
855         Reviewed by Brent Fulgham.
856
857         Added/removed files to/from project, and re-added constants.h file.
858
859         * ANGLE.vcxproj/libEGL.vcxproj:
860         * ANGLE.vcxproj/libEGL.vcxproj.filters:
861         * ANGLE.vcxproj/libGLESv2.vcxproj:
862         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
863         * ANGLE.vcxproj/libGLESv2Common.props:
864         * ANGLE.vcxproj/translator_common.vcxproj:
865         * ANGLE.vcxproj/translator_common.vcxproj.filters:
866         * ANGLE.vcxproj/translator_glsl.vcxproj:
867         * ANGLE.vcxproj/translator_glsl.vcxproj.filters:
868         * ANGLE.vcxproj/translator_hlsl.vcxproj:
869         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
870         * src/libGLESv2/libGLESv2.def:
871
872 2013-11-20  Sergio Correia  <sergio.correia@openbossa.org>
873
874         ANGLE doesn't build with bison 3.0
875         https://bugs.webkit.org/show_bug.cgi?id=124642
876
877         Reviewed by Gyuyoung Kim.
878
879         This is a reedition of r154109, now that ANGLE source has been updated
880         in r159533.
881
882         * src/compiler/glslang.y: Use %lex-param to set YYLEX_PARAM and stop
883         using the deprecated YYID macro.
884
885 2013-11-20  Carlos Garcia Campos  <cgarcia@igalia.com>
886
887         Unreviewed. Fix GTK build.
888
889         * GNUmakefile.am: Remove duplicated entries.
890
891 2013-11-19  Martin Robinson  <mrobinson@igalia.com>
892
893         Fix the GTK+ build after the ANGLE update in r159533
894
895         * GNUmakefile.am: Update the source list.
896
897 2013-11-19  Roger Fong  <roger_fong@apple.com>
898
899         Unreviewed. Build fix for Mac.
900
901         * src/compiler/glslang_tab.cpp:
902         (yysyntax_error):
903         (yyerror):
904         * src/compiler/glslang_tab.h:
905         * src/compiler/preprocessor/ExpressionParser.cpp:
906         (yysyntax_error):
907
908 2013-11-19  Roger Fong  <roger_fong@apple.com>
909
910         Unreviewed. Prospective build fix for GTK port following r159533.
911
912         * GNUmakefile.am:
913
914 2013-11-19  Roger Fong  <roger_fong@apple.com>
915
916         Update ANGLE sources.
917         https://bugs.webkit.org/show_bug.cgi?id=124615.
918
919         Reviewed by Dean Jackson.
920
921         Update ANGLE to checkout a60e0805721f62c28a55faf2df74472cc5fc91fc.
922         Modify xcodeproj files as necessary, update plist.
923         Stop using DerivedSources.make and just use the generated sources that are checked into ANGLE.
924         Add a note to bison generated files indicating that Apple elects to distribute said files under the BSD license: 
925         ExpressionParser.cpp, glslang_tab.cpp, glslang_tab.h.
926
927         * ANGLE.plist:
928         * ANGLE.xcodeproj/project.pbxproj:
929         * DerivedSources.make: Removed.
930         * include/EGL/egl.h:
931         * include/EGL/eglsoftlinking.h: Removed.
932         * include/GLES2/gl2.h:
933         * include/GLES2/gl2softlinking.h: Removed.
934         * include/GLSLANG/ShaderLang.h:
935         * include/KHR/khrplatform.h:
936         * src/ANGLE.sln: Added.
937         * src/build_angle.gypi:
938         * src/common/debug.h:
939         * src/common/event_tracer.cpp: Added.
940         (gl::TraceGetTraceCategoryEnabledFlag):
941         (gl::TraceAddTraceEvent):
942         * src/common/event_tracer.h: Added.
943         * src/common/version.h:
944         * src/compiler/CodeGen.cpp: Added.
945         (ConstructCompiler):
946         (DeleteCompiler):
947         * src/compiler/CodeGenGLSL.cpp: Removed.
948         * src/compiler/CodeGenHLSL.cpp: Removed.
949         * src/compiler/Common.h:
950         (NewPoolTString):
951         * src/compiler/Compiler.cpp:
952         (TCompiler::Init):
953         (TCompiler::compile):
954         (TCompiler::InitBuiltInSymbolTable):
955         (TCompiler::clearResults):
956         (TCompiler::collectVariables):
957         * src/compiler/ConstantUnion.h:
958         * src/compiler/DetectDiscontinuity.cpp:
959         * src/compiler/InfoSink.h:
960         * src/compiler/InitializeDll.cpp:
961         (InitProcess):
962         (DetachProcess):
963         * src/compiler/InitializeDll.h:
964         * src/compiler/InitializeGLPosition.cpp: Added.
965         (InitializeGLPosition::visitAggregate):
966         (InitializeGLPosition::insertCode):
967         * src/compiler/InitializeGLPosition.h: Added.
968         (InitializeGLPosition::InitializeGLPosition):
969         (InitializeGLPosition::visitBinary):
970         (InitializeGLPosition::visitUnary):
971         (InitializeGLPosition::visitSelection):
972         (InitializeGLPosition::visitLoop):
973         (InitializeGLPosition::visitBranch):
974         * src/compiler/InitializeGlobals.h:
975         * src/compiler/InitializeParseContext.cpp:
976         (InitializeParseContextIndex):
977         (FreeParseContextIndex):
978         (SetGlobalParseContext):
979         (GetGlobalParseContext):
980         * src/compiler/InitializeParseContext.h:
981         * src/compiler/IntermTraverse.cpp:
982         (TIntermSymbol::traverse):
983         (TIntermConstantUnion::traverse):
984         (TIntermBinary::traverse):
985         (TIntermUnary::traverse):
986         (TIntermAggregate::traverse):
987         (TIntermSelection::traverse):
988         (TIntermLoop::traverse):
989         (TIntermBranch::traverse):
990         * src/compiler/Intermediate.cpp:
991         (GetHigherPrecision):
992         (getOperatorString):
993         (TIntermLoop::replaceChildNode):
994         (TIntermBranch::replaceChildNode):
995         (TIntermBinary::replaceChildNode):
996         (TIntermUnary::replaceChildNode):
997         (TIntermAggregate::replaceChildNode):
998         (TIntermSelection::replaceChildNode):
999         (TIntermOperator::isAssignment):
1000         (TIntermediate::promoteConstantUnion):
1001         * src/compiler/MapLongVariableNames.cpp:
1002         * src/compiler/MapLongVariableNames.h:
1003         * src/compiler/NodeSearch.h: Added.
1004         (sh::NodeSearchTraverser::NodeSearchTraverser):
1005         (sh::NodeSearchTraverser::found):
1006         (sh::NodeSearchTraverser::search):
1007         (sh::FindDiscard::visitBranch):
1008         (sh::FindSideEffectRewriting::visitBinary):
1009         * src/compiler/OutputGLSLBase.cpp:
1010         (TOutputGLSLBase::visitSelection):
1011         (TOutputGLSLBase::visitAggregate):
1012         (TOutputGLSLBase::visitLoop):
1013         * src/compiler/OutputGLSLBase.h:
1014         * src/compiler/OutputHLSL.cpp:
1015         (sh::OutputHLSL::OutputHLSL):
1016         (sh::OutputHLSL::header):
1017         (sh::OutputHLSL::visitBinary):
1018         (sh::OutputHLSL::visitSelection):
1019         (sh::OutputHLSL::visitBranch):
1020         (sh::OutputHLSL::handleExcessiveLoop):
1021         (sh::OutputHLSL::addConstructor):
1022         * src/compiler/OutputHLSL.h:
1023         * src/compiler/ParseContext.cpp: Added.
1024         (TParseContext::parseVectorFields):
1025         (TParseContext::parseMatrixFields):
1026         (TParseContext::recover):
1027         (TParseContext::error):
1028         (TParseContext::warning):
1029         (TParseContext::trace):
1030         (TParseContext::assignError):
1031         (TParseContext::unaryOpError):
1032         (TParseContext::binaryOpError):
1033         (TParseContext::precisionErrorCheck):
1034         (TParseContext::lValueErrorCheck):
1035         (TParseContext::constErrorCheck):
1036         (TParseContext::integerErrorCheck):
1037         (TParseContext::globalErrorCheck):
1038         (TParseContext::reservedErrorCheck):
1039         (TParseContext::constructorErrorCheck):
1040         (TParseContext::voidErrorCheck):
1041         (TParseContext::boolErrorCheck):
1042         (TParseContext::samplerErrorCheck):
1043         (TParseContext::structQualifierErrorCheck):
1044         (TParseContext::parameterSamplerErrorCheck):
1045         (TParseContext::containsSampler):
1046         (TParseContext::arraySizeErrorCheck):
1047         (TParseContext::arrayQualifierErrorCheck):
1048         (TParseContext::arrayTypeErrorCheck):
1049         (TParseContext::arrayErrorCheck):
1050         (TParseContext::nonInitConstErrorCheck):
1051         (TParseContext::nonInitErrorCheck):
1052         (TParseContext::paramErrorCheck):
1053         (TParseContext::extensionErrorCheck):
1054         (TParseContext::supportsExtension):
1055         (TParseContext::isExtensionEnabled):
1056         (TParseContext::findFunction):
1057         (TParseContext::executeInitializer):
1058         (TParseContext::areAllChildConst):
1059         (TParseContext::addConstructor):
1060         (TParseContext::foldConstConstructor):
1061         (TParseContext::constructBuiltIn):
1062         (TParseContext::constructStruct):
1063         (TParseContext::addConstVectorNode):
1064         (TParseContext::addConstMatrixNode):
1065         (TParseContext::addConstArrayNode):
1066         (TParseContext::addConstStruct):
1067         (TParseContext::enterStructDeclaration):
1068         (TParseContext::exitStructDeclaration):
1069         (TParseContext::structNestingErrorCheck):
1070         (TParseContext::addIndexExpression):
1071         (PaParseStrings):
1072         * src/compiler/ParseContext.h: Added.
1073         (TParseContext::TParseContext):
1074         (TParseContext::numErrors):
1075         (TParseContext::infoSink):
1076         (TParseContext::pragma):
1077         (TParseContext::extensionBehavior):
1078         * src/compiler/ParseHelper.cpp: Removed.
1079         * src/compiler/ParseHelper.h: Removed.
1080         * src/compiler/PoolAlloc.cpp:
1081         (InitializePoolIndex):
1082         (FreePoolIndex):
1083         (GetGlobalPoolAllocator):
1084         (SetGlobalPoolAllocator):
1085         * src/compiler/PoolAlloc.h:
1086         (pool_allocator::pool_allocator):
1087         * src/compiler/SearchSymbol.h:
1088         * src/compiler/ShHandle.h:
1089         (TCompiler::getVaryings):
1090         * src/compiler/ShaderLang.cpp:
1091         (checkVariableMaxLengths):
1092         (ShInitialize):
1093         (ShFinalize):
1094         (ShConstructCompiler):
1095         (ShCompile):
1096         (ShGetInfo):
1097         (ShGetVariableInfo):
1098         (ShCheckVariablesWithinPackingLimits):
1099         * src/compiler/SymbolTable.cpp:
1100         (TSymbolTable::~TSymbolTable):
1101         * src/compiler/SymbolTable.h:
1102         (TSymbol::TSymbol):
1103         (TSymbolTableLevel::insert):
1104         (TSymbolTable::push):
1105         (TSymbolTable::pop):
1106         (TSymbolTable::findBuiltIn):
1107         (TSymbolTable::relateToExtension):
1108         (TSymbolTable::setDefaultPrecision):
1109         (TSymbolTable::getDefaultPrecision):
1110         (TSymbolTable::supportsPrecision):
1111         * src/compiler/Types.h:
1112         (NewPoolTFieldList):
1113         (TType::TType):
1114         (TType::setNominalSize):
1115         (TPublicType::setAggregate):
1116         * src/compiler/UnfoldShortCircuit.cpp:
1117         (sh::UnfoldShortCircuit::visitBinary):
1118         (sh::UnfoldShortCircuit::visitSelection):
1119         * src/compiler/UnfoldShortCircuit.h:
1120         * src/compiler/UnfoldShortCircuitAST.cpp: Added.
1121         (UnfoldShortCircuitAST::visitBinary):
1122         (UnfoldShortCircuitAST::updateTree):
1123         * src/compiler/UnfoldShortCircuitAST.h: Added.
1124         (UnfoldShortCircuitAST::UnfoldShortCircuitAST):
1125         (UnfoldShortCircuitAST::NodeUpdateEntry::NodeUpdateEntry):
1126         * src/compiler/Uniform.cpp:
1127         (sh::Uniform::Uniform):
1128         * src/compiler/Uniform.h:
1129         * src/compiler/ValidateLimitations.cpp:
1130         (ValidateLimitations::validateFunctionCall):
1131         (ValidateLimitations::validateOperation):
1132         * src/compiler/VariableInfo.cpp:
1133         (TVariableInfo::TVariableInfo):
1134         (CollectVariables::CollectVariables):
1135         (CollectVariables::visitSymbol):
1136         (CollectVariables::visitAggregate):
1137         * src/compiler/VariableInfo.h:
1138         * src/compiler/debug.cpp:
1139         * src/compiler/depgraph/DependencyGraph.cpp:
1140         * src/compiler/depgraph/DependencyGraphBuilder.cpp:
1141         (TDependencyGraphBuilder::visitBinary):
1142         * src/compiler/generate_parser.sh:
1143         * src/compiler/glslang.l:
1144         * src/compiler/glslang.y:
1145         * src/compiler/glslang_lex.cpp:
1146         (input):
1147         (yyerror):
1148         (int_constant):
1149         (float_constant):
1150         (glslang_scan):
1151         * src/compiler/glslang_tab.cpp:
1152         (yysyntax_error):
1153         (glslang_parse):
1154         * src/compiler/glslang_tab.h:
1155         * src/compiler/intermediate.h:
1156         (TIntermSymbol::hasSideEffects):
1157         (TIntermSymbol::replaceChildNode):
1158         (TIntermConstantUnion::hasSideEffects):
1159         (TIntermConstantUnion::getIConst):
1160         (TIntermConstantUnion::getFConst):
1161         (TIntermConstantUnion::getBConst):
1162         (TIntermConstantUnion::replaceChildNode):
1163         (TIntermOperator::hasSideEffects):
1164         (TIntermBinary::hasSideEffects):
1165         (TIntermUnary::hasSideEffects):
1166         (TIntermAggregate::hasSideEffects):
1167         (TIntermSelection::hasSideEffects):
1168         (TIntermTraverser::~TIntermTraverser):
1169         (TIntermTraverser::incrementDepth):
1170         (TIntermTraverser::decrementDepth):
1171         (TIntermTraverser::getParentNode):
1172         * src/compiler/localintermediate.h:
1173         * src/compiler/parseConst.cpp:
1174         * src/compiler/preprocessor/ExpressionParser.cpp:
1175         (yy_symbol_print):
1176         (yy_stack_print):
1177         (yy_reduce_print):
1178         (yystrlen):
1179         (yystpcpy):
1180         (yytnamerr):
1181         (yysyntax_error):
1182         (yydestruct):
1183         (yyparse):
1184         * src/compiler/preprocessor/ExpressionParser.y:
1185         * src/compiler/preprocessor/Preprocessor.cpp:
1186         (pp::Preprocessor::setMaxTokenLength):
1187         (pp::Preprocessor::lex):
1188         * src/compiler/preprocessor/Preprocessor.h:
1189         * src/compiler/preprocessor/Tokenizer.cpp:
1190         (pp::Tokenizer::Tokenizer):
1191         (pp::Tokenizer::lex):
1192         * src/compiler/preprocessor/Tokenizer.h:
1193         (pp::Tokenizer::setMaxTokenLength):
1194         * src/compiler/preprocessor/Tokenizer.l:
1195         * src/compiler/preprocessor/generate_parser.sh:
1196         * src/compiler/preprocessor/preprocessor.vcxproj: Added.
1197         * src/compiler/preprocessor/preprocessor.vcxproj.filters: Added.
1198         * src/compiler/timing/RestrictFragmentShaderTiming.cpp:
1199         * src/compiler/translator.vcxproj: Added.
1200         * src/compiler/translator.vcxproj.filters: Added.
1201         * src/compiler/util.cpp:
1202         (atof_clamp):
1203         (atoi_clamp):
1204         * src/compiler/util.h:
1205         * src/libEGL/Surface.cpp:
1206         (egl::Surface::checkForOutOfDateSwapChain):
1207         * src/libEGL/libEGL.cpp:
1208         * src/libEGL/libEGL.rc:
1209         * src/libEGL/libEGL.vcxproj: Added.
1210         * src/libEGL/libEGL.vcxproj.filters: Added.
1211         * src/libGLESv2/Buffer.cpp:
1212         (gl::Buffer::bufferData):
1213         (gl::Buffer::bufferSubData):
1214         (gl::Buffer::size):
1215         (gl::Buffer::getIndexRangeCache):
1216         * src/libGLESv2/Buffer.h:
1217         * src/libGLESv2/Context.cpp:
1218         (gl::Context::applyTextures):
1219         (gl::Context::getBoundFramebufferTextureSerials):
1220         * src/libGLESv2/Context.h:
1221         (gl::Context::getRenderer):
1222         * src/libGLESv2/Framebuffer.h:
1223         * src/libGLESv2/ProgramBinary.cpp:
1224         (gl::DiscardWorkaround):
1225         (gl::ProgramBinary::load):
1226         (gl::ProgramBinary::link):
1227         (gl::ProgramBinary::linkAttributes):
1228         (gl::AttributeSorter::AttributeSorter):
1229         (gl::ProgramBinary::initAttributesByLayout):
1230         (gl::ProgramBinary::sortAttributesByLayout):
1231         * src/libGLESv2/ProgramBinary.h:
1232         * src/libGLESv2/Renderbuffer.cpp:
1233         (gl::RenderbufferTexture2D::getTextureSerial):
1234         (gl::RenderbufferTextureCubeMap::getTextureSerial):
1235         (gl::Renderbuffer::getTextureSerial):
1236         * src/libGLESv2/Renderbuffer.h:
1237         (gl::RenderbufferStorage::getTextureSerial):
1238         * src/libGLESv2/Shader.cpp:
1239         (gl::Shader::parseVaryings):
1240         (gl::Shader::uncompile):
1241         * src/libGLESv2/Shader.h:
1242         * src/libGLESv2/Texture.cpp:
1243         (gl::TextureCubeMap::storage):
1244         * src/libGLESv2/Uniform.cpp:
1245         (gl::Uniform::Uniform):
1246         (gl::Uniform::~Uniform):
1247         (gl::Uniform::isArray):
1248         (gl::Uniform::elementCount):
1249         * src/libGLESv2/Uniform.h:
1250         * src/libGLESv2/constants.h: Removed.
1251         * src/libGLESv2/libGLESv2.def:
1252         * src/libGLESv2/libGLESv2.rc:
1253         * src/libGLESv2/libGLESv2.vcxproj: Added.
1254         * src/libGLESv2/libGLESv2.vcxproj.filters: Added.
1255         * src/libGLESv2/precompiled.h:
1256         * src/libGLESv2/renderer/Image11.cpp:
1257         (rx::Image11::generateMipmap):
1258         (rx::Image11::loadData):
1259         (rx::Image11::loadCompressedData):
1260         (rx::Image11::copy):
1261         (rx::Image11::createStagingTexture):
1262         (rx::Image11::map):
1263         * src/libGLESv2/renderer/Image11.h:
1264         * src/libGLESv2/renderer/IndexBuffer.cpp:
1265         (rx::IndexBufferInterface::mapBuffer):
1266         (rx::StaticIndexBufferInterface::getIndexRangeCache):
1267         * src/libGLESv2/renderer/IndexBuffer.h:
1268         * src/libGLESv2/renderer/IndexBuffer11.cpp:
1269         (rx::IndexBuffer11::mapBuffer):
1270         * src/libGLESv2/renderer/IndexDataManager.cpp:
1271         (rx::IndexDataManager::prepareIndexData):
1272         (rx::IndexDataManager::getCountingIndices):
1273         * src/libGLESv2/renderer/IndexRangeCache.cpp: Added.
1274         (rx::IndexRangeCache::addRange):
1275         (rx::IndexRangeCache::invalidateRange):
1276         (rx::IndexRangeCache::findRange):
1277         (rx::IndexRangeCache::clear):
1278         (rx::IndexRangeCache::IndexRange::IndexRange):
1279         (rx::IndexRangeCache::IndexRange::operator<):
1280         (rx::IndexRangeCache::IndexBounds::IndexBounds):
1281         * src/libGLESv2/renderer/IndexRangeCache.h: Added.
1282         * src/libGLESv2/renderer/InputLayoutCache.cpp:
1283         (rx::InputLayoutCache::InputLayoutCache):
1284         (rx::InputLayoutCache::clear):
1285         (rx::InputLayoutCache::markDirty):
1286         (rx::InputLayoutCache::applyVertexBuffers):
1287         (rx::InputLayoutCache::hashInputLayout):
1288         (rx::InputLayoutCache::compareInputLayouts):
1289         * src/libGLESv2/renderer/InputLayoutCache.h:
1290         (rx::InputLayoutCache::InputLayoutKey::begin):
1291         (rx::InputLayoutCache::InputLayoutKey::end):
1292         * src/libGLESv2/renderer/RenderTarget11.cpp:
1293         (rx::RenderTarget11::getTexture):
1294         (rx::RenderTarget11::getRenderTargetView):
1295         (rx::RenderTarget11::getDepthStencilView):
1296         (rx::RenderTarget11::getShaderResourceView):
1297         * src/libGLESv2/renderer/RenderTarget11.h:
1298         * src/libGLESv2/renderer/Renderer.cpp:
1299         (rx::Renderer::initializeCompiler):
1300         * src/libGLESv2/renderer/Renderer.h:
1301         * src/libGLESv2/renderer/Renderer11.cpp:
1302         (rx::Renderer11::initialize):
1303         (rx::Renderer11::applyPrimitiveType):
1304         (rx::Renderer11::applyRenderTarget):
1305         (rx::Renderer11::drawLineLoop):
1306         (rx::Renderer11::drawTriangleFan):
1307         (rx::Renderer11::applyUniforms):
1308         (rx::Renderer11::clear):
1309         (rx::Renderer11::markAllStateDirty):
1310         (rx::Renderer11::copyImage):
1311         (rx::Renderer11::compileToExecutable):
1312         (rx::Renderer11::getRenderTargetResource):
1313         (rx::Renderer11::blitRenderbufferRect):
1314         * src/libGLESv2/renderer/Renderer11.h:
1315         * src/libGLESv2/renderer/Renderer9.cpp:
1316         (rx::Renderer9::initialize):
1317         (rx::Renderer9::setViewport):
1318         (rx::Renderer9::drawLineLoop):
1319         (rx::Renderer9::compileToExecutable):
1320         * src/libGLESv2/renderer/Renderer9.h:
1321         * src/libGLESv2/renderer/SwapChain.h:
1322         * src/libGLESv2/renderer/SwapChain11.cpp:
1323         (rx::SwapChain11::resetOffscreenTexture):
1324         (rx::SwapChain11::reset):
1325         (rx::SwapChain11::swapRect):
1326         * src/libGLESv2/renderer/SwapChain9.cpp:
1327         (rx::convertInterval):
1328         * src/libGLESv2/renderer/TextureStorage11.cpp:
1329         (rx::TextureStorage11::IsTextureFormatRenderable):
1330         (rx::TextureStorage11::generateMipmapLayer):
1331         (rx::TextureStorage11_Cube::getRenderTarget):
1332         * src/libGLESv2/renderer/VertexBuffer.cpp:
1333         (rx::VertexBufferInterface::storeVertexAttributes):
1334         (rx::VertexBufferInterface::storeRawData):
1335         (rx::VertexBufferInterface::reserveVertexSpace):
1336         (rx::StaticVertexBufferInterface::lookupAttribute):
1337         (rx::StaticVertexBufferInterface::storeVertexAttributes):
1338         * src/libGLESv2/renderer/VertexBuffer.h:
1339         * src/libGLESv2/renderer/VertexBuffer11.cpp:
1340         (rx::VertexBuffer11::getSpaceRequired):
1341         * src/libGLESv2/renderer/VertexBuffer11.h:
1342         * src/libGLESv2/renderer/VertexBuffer9.cpp:
1343         (rx::VertexBuffer9::storeVertexAttributes):
1344         (rx::VertexBuffer9::getSpaceRequired):
1345         (rx::VertexBuffer9::requiresConversion):
1346         (rx::VertexBuffer9::getVertexSize):
1347         (rx::VertexBuffer9::spaceRequired):
1348         * src/libGLESv2/renderer/VertexBuffer9.h:
1349         * src/libGLESv2/renderer/VertexDataManager.cpp:
1350         (rx::elementsInBuffer):
1351         (rx::StreamingBufferElementCount):
1352         (rx::VertexDataManager::prepareVertexData):
1353         * src/libGLESv2/renderer/VertexDataManager.h:
1354         * src/libGLESv2/renderer/renderer11_utils.cpp:
1355         (gl_d3d11::ConvertTextureFormat):
1356         * src/libGLESv2/renderer/shaders/compiled/clear11vs.h:
1357         * src/libGLESv2/renderer/shaders/compiled/clearmultiple11ps.h:
1358         * src/libGLESv2/renderer/shaders/compiled/clearsingle11ps.h:
1359         * src/libGLESv2/renderer/shaders/compiled/componentmaskps.h:
1360         * src/libGLESv2/renderer/shaders/compiled/flipyvs.h:
1361         * src/libGLESv2/renderer/shaders/compiled/luminanceps.h:
1362         * src/libGLESv2/renderer/shaders/compiled/passthrough11vs.h:
1363         * src/libGLESv2/renderer/shaders/compiled/passthroughlum11ps.h:
1364         * src/libGLESv2/renderer/shaders/compiled/passthroughlumalpha11ps.h:
1365         * src/libGLESv2/renderer/shaders/compiled/passthroughps.h:
1366         * src/libGLESv2/renderer/shaders/compiled/passthroughrgb11ps.h:
1367         * src/libGLESv2/renderer/shaders/compiled/passthroughrgba11ps.h:
1368         * src/libGLESv2/renderer/shaders/compiled/standardvs.h:
1369         * src/libGLESv2/renderer/shaders/generate_shaders.bat:
1370         * src/libGLESv2/utilities.cpp:
1371         (gl::ComputeTypeSize):
1372         * src/libGLESv2/utilities.h:
1373         * src/third_party/murmurhash/MurmurHash3.cpp:
1374         (rotl32):
1375         (rotl64):
1376         (getblock):
1377         (fmix):
1378         (MurmurHash3_x86_32):
1379         (MurmurHash3_x86_128):
1380         (MurmurHash3_x64_128):
1381         * src/third_party/murmurhash/MurmurHash3.h:
1382         * src/third_party/trace_event: Added.
1383         * src/third_party/trace_event/trace_event.h: Added.
1384         (gl::TraceEvent::TraceID::TraceID):
1385         (gl::TraceEvent::TraceID::data):
1386         (gl::TraceEvent::TraceStringWithCopy::TraceStringWithCopy):
1387         (gl::TraceEvent::TraceStringWithCopy::operator const char* ):
1388         (gl::TraceEvent::setTraceValue):
1389         (gl::TraceEvent::addTraceEvent):
1390         (gl::TraceEvent::TraceEndOnScopeClose::TraceEndOnScopeClose):
1391         (gl::TraceEvent::TraceEndOnScopeClose::~TraceEndOnScopeClose):
1392         (gl::TraceEvent::TraceEndOnScopeClose::initialize):
1393         (gl::TraceEvent::TraceEndOnScopeClose::addEventIfEnabled):
1394         (gl::TraceEvent::SamplingStateScope::SamplingStateScope):
1395         (gl::TraceEvent::SamplingStateScope::~SamplingStateScope):
1396         (gl::TraceEvent::SamplingStateScope::current):
1397         (gl::TraceEvent::SamplingStateScope::set):
1398
1399 2013-11-18  Mark Rowe  <mrowe@apple.com>
1400
1401         Use hw.activecpu for determining how many processes to spawn.
1402
1403         It's documented as the preferred way to determine the number of threads
1404         or processes to create in a SMP aware application.
1405
1406         Rubber-stamped by Tim Horton.
1407
1408         * ANGLE.xcodeproj/project.pbxproj:
1409
1410 2013-11-06  Dean Jackson  <dino@apple.com>
1411
1412         kTraceBufferLen is unused in default builds
1413         https://bugs.webkit.org/show_bug.cgi?id=123941
1414         <rdar://problem/15409804>
1415
1416         Reviewed by Tim Horton.
1417
1418         kTraceBufferLen is not used in debug.cpp if TRACE_ENABLED is
1419         not defined. This causes a warning in newer builds of clang.
1420         For now, skip warnings on unused variables until we
1421         update from ANGLE.
1422
1423         * src/compiler/debug.cpp: Add unused-variable ignore pragma.
1424
1425 2013-10-24  Mark Rowe  <mrowe@apple.com>
1426
1427         Remove references to OS X 10.7 from Xcode configuration settings.
1428
1429         Now that we're not building for OS X 10.7 they're no longer needed.
1430
1431         Reviewed by Anders Carlsson.
1432
1433         * Configurations/Base.xcconfig:
1434         * Configurations/DebugRelease.xcconfig:
1435
1436 2013-10-24  Mark Rowe  <mrowe@apple.com>
1437
1438         <rdar://problem/15312643> Prepare for the mysterious future.
1439
1440         Reviewed by David Kilzer.
1441
1442         * Configurations/Base.xcconfig:
1443         * Configurations/DebugRelease.xcconfig:
1444
1445 2013-10-10  Mark Rowe  <mrowe@apple.com>
1446
1447         <rdar://problem/13341666> WebKit should always build against an SDK.
1448
1449         Have all projects default to building against the OS X Internal SDK for the Production
1450         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
1451         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
1452
1453         Reviewed by Dan Bernstein.
1454
1455         * Configurations/Base.xcconfig:
1456         * Configurations/DebugRelease.xcconfig:
1457
1458 2013-10-08  Alex Christensen  <achristensen@webkit.org>
1459
1460         Generate pdb files for debugging ANGLE DLLs.
1461         https://bugs.webkit.org/show_bug.cgi?id=122530
1462
1463         Reviewed by Brent Fulgham.
1464
1465         * ANGLE.vcxproj/libEGLCommon.props:
1466         * ANGLE.vcxproj/libGLESv2Common.props:
1467         Generate debug information.
1468
1469 2013-10-03  Dan Bernstein  <mitz@apple.com>
1470
1471         <rdar://problem/15116673> [mac] Build failure when the source directory is not named ANGLE
1472         https://bugs.webkit.org/show_bug.cgi?id=122307
1473
1474         Reviewed by Mark Rowe.
1475
1476         * ANGLE.xcodeproj/project.pbxproj: Ensure that the symlink to SRCROOT in
1477         DerivedSources/ANGLE is named ANGLE.
1478
1479 2013-09-29  Darin Adler  <darin@apple.com>
1480
1481         Take some Xcode advice about turning on additional warnings in ANGLE and gtest
1482         https://bugs.webkit.org/show_bug.cgi?id=122087
1483
1484         Reviewed by Mark Rowe.
1485
1486         * Configurations/Base.xcconfig: Add some of the warnings that Xcode 5 suggested.
1487         * src/compiler/preprocessor/Tokenizer.l: Defined YY_NO_INPUT so we don't compile
1488         an unused function and get a warning.
1489
1490 2013-09-29  Darin Adler  <darin@apple.com>
1491
1492         Use RenderElement instead of RenderObject in many places
1493         https://bugs.webkit.org/show_bug.cgi?id=122078
1494
1495         Reviewed by Andreas Kling.
1496
1497         * ANGLE.xcodeproj/project.pbxproj: Let Xcode do its thing to this file.
1498
1499 2013-09-24  Mark Rowe  <mrowe@apple.com>
1500
1501         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
1502
1503         Reviewed by Dan Bernstein.
1504
1505         * Configurations/Base.xcconfig:
1506
1507 2013-09-06  peavo@outlook.com  <peavo@outlook.com>
1508
1509         [Win][WebGL] WebGL rendering is slow.
1510         https://bugs.webkit.org/show_bug.cgi?id=120841
1511
1512         Reviewed by Brent Fulgham.
1513
1514         Rendering WebGL content is slow on Windows, because lots of debug information is written to debug.txt.
1515
1516         * ANGLE.vcxproj/ANGLERelease.props: Disable logging in release builds.
1517
1518 2013-09-05  Dan Bernstein  <mitz@apple.com>
1519
1520         INSTALL_PATH_PREFIX is used even when not installing
1521         https://bugs.webkit.org/show_bug.cgi?id=120818
1522
1523         Reviewed by Darin Adler.
1524
1525         * Configurations/ANGLE.xcconfig: Changed the definition of PRIVATE_HEADERS_FOLDER_PATH
1526         to include INSTALL_PATH_PREFIX only when installing.
1527
1528 2013-08-17  David Kilzer  <ddkilzer@apple.com>
1529
1530         ANGLE fails to build with trunk clang: error: 'register' storage class specifier is deprecated [-Werror,-Wdeprecated-register]
1531         <http://webkit.org/b/119931>
1532         <rdar://problem/14763822>
1533
1534         Reviewed by Darin Adler.
1535
1536         * src/compiler/glslang.l:
1537         * src/compiler/glslang_lex.cpp:
1538         * src/compiler/preprocessor/Tokenizer.cpp:
1539         * src/compiler/preprocessor/Tokenizer.l:
1540         Add pragma statements to ignore -Wdeprecated-register warnings
1541         in generated code.  Also ignore -Wunknown-pragmas so this
1542         doesn't cause a build failure in older versions of clang.
1543
1544 2013-08-16  Commit Queue  <commit-queue@webkit.org>
1545
1546         Unreviewed, rolling out r153749.
1547         http://trac.webkit.org/changeset/153749
1548         https://bugs.webkit.org/show_bug.cgi?id=119892
1549
1550         The bison generation of the glslang* files has now been fixed. (Requested by zdobersek on #webkit).
1551
1552         * GNUmakefile.am: Preserve the libANGLE.la dependency on the ANGLE's GNUmakefile.am.
1553
1554 2013-08-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1555
1556         ANGLE doesn't build with bison 3.0
1557         https://bugs.webkit.org/show_bug.cgi?id=119798
1558
1559         Reviewed by Antti Koivisto.
1560
1561         Make glslang.y compatible with bison 3.0, by using %lex-param
1562         to set YYLEX_PARAM and getting rid of useless YYID macro.
1563
1564         * src/compiler/glslang.y:
1565
1566 2013-08-09  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
1567
1568         [Qt] Buidfix after r153664. Adding ANGLE_WEBKIT_WIN definition.
1569         https://bugs.webkit.org/show_bug.cgi?id=119577
1570
1571         Reviewed by Allan Sandfeld Jensen.
1572
1573         * Target.pri:
1574
1575 2013-08-08  Alex Christensen  <achristensen@apple.com>
1576
1577         Link to correct DirectX libraries for Win64 ANGLE build.
1578         https://bugs.webkit.org/show_bug.cgi?id=119600
1579
1580         Reviewed by Brent Fulgham.
1581
1582         * ANGLE.vcxproj/DirectX32.props: Added with x86 DirectX library directory.
1583         * ANGLE.vcxproj/DirectX64.props: Added with x64 DirectX library directory.
1584         * ANGLE.vcxproj/libEGL.vcxproj:
1585         * ANGLE.vcxproj/libGLESv2.vcxproj:
1586         Use DirectX32.props and DirectX64.props.
1587         * ANGLE.vcxproj/libEGLCommon.props:
1588         * ANGLE.vcxproj/libGLESv2Common.props:
1589         Removed DirectX library directory.
1590
1591 2013-07-23  David Farler  <dfarler@apple.com>
1592
1593         Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
1594         https://bugs.webkit.org/show_bug.cgi?id=117762
1595
1596         Reviewed by Mark Rowe.
1597
1598         * Configurations/DebugRelease.xcconfig:
1599         Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS.
1600
1601 2013-08-06  Zan Dobersek  <zdobersek@igalia.com>
1602
1603         webkit-gtk fails to build with bison-3.0
1604         https://bugs.webkit.org/show_bug.cgi?id=119373
1605
1606         Reviewed by Gustavo Noronha Silva.
1607
1608         * GNUmakefile.am: Stop relying on generated glslang_tab.(cpp|h) and glslang.cpp sources as Bison 3.0
1609         produces non-compilable source code. Instead, compile these pregenerated files as they're included in
1610         the tree. Originally, the ANGLE source tree provides these files as generated by Bison 2.7, but they're
1611         at the moment regenerated with Bison 2.3 when the third-party ANGLE source is being updated.
1612
1613 2013-08-05  Alex Christensen  <achristensen@apple.com>
1614
1615         Added optimizations to Windows ANGLE builds.
1616         https://bugs.webkit.org/show_bug.cgi?id=119500
1617
1618         Reviewed by Brent Fulgham.
1619
1620         * ANGLE.vcxproj/ANGLERelease.props: Added.
1621         * ANGLE.vcxproj/libEGL.vcxproj:
1622         * ANGLE.vcxproj/libGLESv2.vcxproj:
1623         * ANGLE.vcxproj/preprocessor.vcxproj:
1624         * ANGLE.vcxproj/translator_common.vcxproj:
1625         * ANGLE.vcxproj/translator_glsl.vcxproj:
1626         * ANGLE.vcxproj/translator_hlsl.vcxproj:
1627         Use ANGLERelease.props for Release, Release_WinCairo, and Production configurations.
1628
1629 2013-08-02  Alex Christensen  <achristensen@apple.com>
1630
1631         Soft link ANGLE on Windows.
1632         https://bugs.webkit.org/show_bug.cgi?id=119452
1633
1634         Reviewed by Dean Jackson.
1635
1636         * ANGLE.vcxproj/libEGL.vcxproj:
1637         * ANGLE.vcxproj/libEGL.vcxproj.filters:
1638         * ANGLE.vcxproj/libGLESv2.vcxproj:
1639         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
1640         Added soft linking headers.
1641         * ANGLE.vcxproj/libEGLCommon.props:
1642         * ANGLE.vcxproj/libGLESv2Common.props:
1643         * ANGLE.vcxproj/translatorCommon.props:
1644         Added ANGLE_WEBKIT_WIN macro definition for egl.h and gl2.h.
1645         * include/EGL/egl.h:
1646         * include/GLES2/gl2.h:
1647         Conditionally include soft linking headers based on ANGLE_WEBKIT_WIN macro.
1648         * include/EGL/eglsoftlinking.h: Added.
1649         * include/GLES2/gl2softlinking.h: Added.
1650
1651 2013-08-01  Alex Christensen  <achristensen@apple.com>
1652
1653         Fixed wrong static_casting in ANGLE from r153064.
1654         https://bugs.webkit.org/show_bug.cgi?id=119296
1655
1656         Reviewed by Dean Jackson.
1657
1658         * src/compiler/Intermediate.cpp:
1659         (TIntermediate::promoteConstantUnion):
1660         Undid erroneous static_cast change.
1661         * src/compiler/intermediate.h:
1662         (TIntermConstantUnion::getIConst):
1663         (TIntermConstantUnion::getFConst):
1664         (TIntermConstantUnion::getBConst):
1665         Made getters use size_t instead of int.
1666
1667 2013-07-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1668
1669         Unreviewed. Fix make distcheck.
1670
1671         * GNUmakefile.am: Add missing header files to compilation.
1672
1673 2013-07-29  Alex Christensen  <achristensen@apple.com>
1674
1675         Separated translator into preprocessor, translator_common,
1676         translator_hlsl (for libGLESv2), and translator_glsl
1677         (for ANGLEWebKitBridge).
1678         https://bugs.webkit.org/show_bug.cgi?id=119221
1679
1680         Reviewed by Brent Fulgham.
1681
1682         * ANGLE.vcxproj/ANGLEGenerated.vcxproj:
1683         Removed unused preprocessor definitions.
1684         * ANGLE.vcxproj/libEGL.vcxproj:
1685         * ANGLE.vcxproj/libGLESv2.vcxproj:
1686         Removed dependency on removed translator project.
1687         * ANGLE.vcxproj/libGLESv2Common.props:
1688         Link to translator_hlsl libraries.
1689         * ANGLE.vcxproj/preprocessor.vcxproj: Added.
1690         * ANGLE.vcxproj/preprocessor.vcxproj.filters: Added.
1691         * ANGLE.vcxproj/translator.vcxproj: Removed.
1692         * ANGLE.vcxproj/translator.vcxproj.filters: Removed.
1693         * ANGLE.vcxproj/translator_common.vcxproj: Added.
1694         * ANGLE.vcxproj/translator_common.vcxproj.filters: Added.
1695         * ANGLE.vcxproj/translator_glsl.vcxproj: Added.
1696         * ANGLE.vcxproj/translator_glsl.vcxproj.filters: Added.
1697         * ANGLE.vcxproj/translator_hlsl.vcxproj: Added.
1698         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters: Added.
1699
1700 2013-07-26  Alex Christensen  <achristensen@apple.com>
1701
1702         Added module definition file for building libEGL.
1703         https://bugs.webkit.org/show_bug.cgi?id=119162
1704
1705         Reviewed by Brent Fulgham.
1706
1707         * ANGLE.vcxproj/libEGLCommon.props: Added reference to libEGL.def.
1708
1709 2013-07-25  Alex Christensen  <achristensen@apple.com>
1710
1711         Made Windows build system for ANGLE and removed existing broken build system.
1712         Removed empty src/libGLESv2/shaders directory and old README files.
1713         https://bugs.webkit.org/show_bug.cgi?id=119103
1714
1715         Reviewed by Brent Fulgham.
1716
1717         * ANGLE.vcxproj: Added.
1718         * ANGLE.vcxproj/ANGLEGenerated.vcxproj: Added.
1719         * ANGLE.vcxproj/ANGLEGenerated.vcxproj.filters: Added.
1720         * ANGLE.vcxproj/libEGL.vcxproj: Added.
1721         * ANGLE.vcxproj/libEGL.vcxproj.filters: Added.
1722         * ANGLE.vcxproj/libEGLCommon.props: Added.
1723         * ANGLE.vcxproj/libGLESv2.vcxproj: Added.
1724         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Added.
1725         * ANGLE.vcxproj/libGLESv2Common.props: Added.
1726         * ANGLE.vcxproj/translator.vcxproj: Added.
1727         * ANGLE.vcxproj/translator.vcxproj.filters: Added.
1728         * ANGLE.vcxproj/translatorCommon.props: Added.
1729         * src/ANGLE.sln: Removed.
1730         * src/compiler/preprocessor/preprocessor.vcxproj: Removed.
1731         * src/compiler/preprocessor/preprocessor.vcxproj.filters: Removed.
1732         * src/compiler/translator_common.vcxproj: Removed.
1733         * src/compiler/translator_common.vcxproj.filters: Removed.
1734         * src/compiler/translator_hlsl.vcxproj: Removed.
1735         * src/compiler/translator_hlsl.vcxproj.filters: Removed.
1736         * src/libEGL/README: Removed.
1737         * src/libEGL/libEGL.vcxproj: Removed.
1738         * src/libEGL/libEGL.vcxproj.filters: Removed.
1739         * src/libGLESv2/README: Removed.
1740         * src/libGLESv2/libGLESv2.vcxproj: Removed.
1741         * src/libGLESv2/libGLESv2.vcxproj.filters: Removed.
1742         * src/libGLESv2/shaders: Removed.
1743
1744 2013-07-24  Alex Christensen  <achristensen@apple.com>
1745
1746         Generate derived files in ANGLE at build time rather than when updating from upstream.
1747         https://bugs.webkit.org/show_bug.cgi?id=118872
1748
1749         Reviewed by Mark Rowe.
1750
1751         * ANGLE.xcodeproj/project.pbxproj: Made Derived Sources target which calls DerivedSources.make,
1752         moved generated files into Derived Sources group.
1753         * DerivedSources.make: Added.
1754
1755 2013-07-24  Zan Dobersek  <zdobersek@igalia.com>
1756
1757         Unreviewed. Setting the svn:eol-style=native property on the ANGLE.sln file.
1758
1759         * src/ANGLE.sln: Added property svn:eol-style.
1760
1761 2013-07-24  Gabor Abraham  <abrhm@inf.u-szeged.hu>
1762
1763         [Qt] Buildfix after r153064. Add Uniform files to the Target.pri.
1764
1765         Reviewed by Csaba Osztrogonác.
1766
1767         * Target.pri:
1768
1769 2013-07-23  Alex Christensen  <achristensen@apple.com>
1770
1771         Updated ANGLE to latest git commit (047373aa3eb408be62be52ade840fa5f11e72337).
1772         Added missing ANGLE files except unused tests, extensions, samples, build, and .git directories.
1773         Ran Bison after making some changes to fix compile errors (see below).
1774
1775         https://bugs.webkit.org/show_bug.cgi?id=118550
1776
1777         Reviewed by Dean Jackson.
1778
1779         * ANGLE.plist: Updated from svn to git.
1780         * ANGLE.xcodeproj/project.pbxproj: Renamed DetectRecursion to DetectCallDepth.
1781         * AUTHORS: Added.
1782         * CONTRIBUTORS: Added.
1783         * DEPS: Added.
1784         * GNUmakefile.am: Renamed DetectRecursion to DetectCallDepth and added Uniform.cpp.
1785         * LICENSE: Added.
1786         * README.chromium: Added.
1787         * Target.pri: Renamed DetectRecursion to DetectCallDepth.
1788         * codereview.settings: Added.
1789         * include/EGL/eglext.h:
1790         * include/GLES2/gl2ext.h:
1791         * include/GLSLANG/ShaderLang.h:
1792         * src/ANGLE.sln: Added.
1793         * src/build_angle.gyp: Added.
1794         * src/build_angle.gypi: Added.
1795         * src/common/RefCountObject.cpp:
1796         * src/common/angleutils.h:
1797         (ArraySize):
1798         (SafeRelease):
1799         * src/common/debug.cpp:
1800         * src/common/debug.h:
1801         * src/common/system.h:
1802         * src/common/version.h:
1803         * src/compiler/64bit-lexer-safety.patch: Added.
1804         * src/compiler/BaseTypes.h:
1805         (getQualifierString):
1806         * src/compiler/CodeGenHLSL.cpp:
1807         (ConstructCompiler):
1808         * src/compiler/Common.h:
1809         * src/compiler/Compiler.cpp:
1810         (TCompiler::TCompiler):
1811         (TCompiler::Init):
1812         (TCompiler::compile):
1813         (TCompiler::InitBuiltInSymbolTable):
1814         (TCompiler::detectCallDepth):
1815         (TCompiler::limitExpressionComplexity):
1816         (TCompiler::getResources):
1817         * src/compiler/ConstantUnion.h:
1818         (ConstantUnion::ConstantUnion):
1819         * src/compiler/DetectCallDepth.cpp: Added.
1820         (DetectCallDepth::FunctionNode::FunctionNode):
1821         (DetectCallDepth::FunctionNode::getName):
1822         (DetectCallDepth::FunctionNode::addCallee):
1823         (DetectCallDepth::FunctionNode::detectCallDepth):
1824         (DetectCallDepth::FunctionNode::reset):
1825         (DetectCallDepth::DetectCallDepth):
1826         (DetectCallDepth::~DetectCallDepth):
1827         (DetectCallDepth::visitAggregate):
1828         (DetectCallDepth::checkExceedsMaxDepth):
1829         (DetectCallDepth::resetFunctionNodes):
1830         (DetectCallDepth::detectCallDepthForFunction):
1831         (DetectCallDepth::detectCallDepth):
1832         (DetectCallDepth::findFunctionByName):
1833         * src/compiler/DetectCallDepth.h: Added.
1834         (DetectCallDepth::getInfoSink):
1835         * src/compiler/DetectRecursion.cpp: Removed.
1836         * src/compiler/DetectRecursion.h: Removed.
1837         * src/compiler/Diagnostics.cpp:
1838         (TDiagnostics::writeInfo):
1839         * src/compiler/ForLoopUnroll.cpp:
1840         (ForLoopUnroll::evaluateIntConstant):
1841         * src/compiler/InfoSink.cpp:
1842         (TInfoSinkBase::prefix):
1843         (TInfoSinkBase::location):
1844         (TInfoSinkBase::message):
1845         * src/compiler/InfoSink.h:
1846         * src/compiler/Initialize.cpp:
1847         (InsertBuiltInFunctions):
1848         (IdentifyBuiltIns):
1849         (InitExtensionBehavior):
1850         * src/compiler/Initialize.h:
1851         * src/compiler/Intermediate.cpp:
1852         (TIntermediate::addSymbol):
1853         (TIntermediate::addBinaryMath):
1854         (TIntermediate::addAssign):
1855         (TIntermediate::addIndex):
1856         (TIntermediate::addUnaryMath):
1857         (TIntermediate::setAggregateOperator):
1858         (TIntermediate::addConversion):
1859         (TIntermediate::growAggregate):
1860         (TIntermediate::makeAggregate):
1861         (TIntermediate::addSelection):
1862         (TIntermediate::addComma):
1863         (TIntermediate::addConstantUnion):
1864         (TIntermediate::addSwizzle):
1865         (TIntermediate::addLoop):
1866         (TIntermediate::addBranch):
1867         (TIntermUnary::promote):
1868         (TIntermBinary::promote):
1869         (CompareStruct):
1870         (CompareStructure):
1871         (TIntermConstantUnion::fold): Added implied static_casts to fix compiling errors on Mac.
1872         (TIntermediate::promoteConstantUnion):
1873         * src/compiler/OutputGLSL.cpp:
1874         (TOutputGLSL::visitSymbol):
1875         * src/compiler/OutputGLSL.h:
1876         * src/compiler/OutputGLSLBase.cpp:
1877         (TOutputGLSLBase::writeVariableType):
1878         (TOutputGLSLBase::writeConstantUnion):
1879         (TOutputGLSLBase::visitBinary):
1880         (TOutputGLSLBase::visitAggregate):
1881         (TOutputGLSLBase::getTypeName):
1882         (TOutputGLSLBase::structDeclared):
1883         (TOutputGLSLBase::declareStruct):
1884         * src/compiler/OutputGLSLBase.h:
1885         * src/compiler/OutputHLSL.cpp:
1886         (sh::OutputHLSL::OutputHLSL):
1887         (sh::OutputHLSL::getUniforms):
1888         (sh::OutputHLSL::header):
1889         (sh::OutputHLSL::visitSymbol):
1890         (sh::OutputHLSL::visitBinary):
1891         (sh::OutputHLSL::visitAggregate):
1892         (sh::OutputHLSL::visitSelection):
1893         (sh::OutputHLSL::visitLoop):
1894         (sh::OutputHLSL::handleExcessiveLoop):
1895         (sh::OutputHLSL::argumentString):
1896         (sh::OutputHLSL::typeString):
1897         (sh::OutputHLSL::textureString):
1898         (sh::OutputHLSL::initializer):
1899         (sh::OutputHLSL::addConstructor):
1900         (sh::OutputHLSL::writeConstantUnion):
1901         (sh::OutputHLSL::decorateUniform):
1902         (sh::OutputHLSL::decorateField):
1903         (sh::OutputHLSL::registerString):
1904         (sh::OutputHLSL::samplerRegister):
1905         (sh::OutputHLSL::uniformRegister):
1906         (sh::OutputHLSL::declareUniform):
1907         (sh::OutputHLSL::glVariableType):
1908         (sh::OutputHLSL::glVariablePrecision):
1909         * src/compiler/OutputHLSL.h:
1910         * src/compiler/ParseHelper.cpp:
1911         (TParseContext::parseVectorFields):
1912         (TParseContext::parseMatrixFields):
1913         (TParseContext::error):
1914         (TParseContext::warning):
1915         (TParseContext::assignError):
1916         (TParseContext::unaryOpError):
1917         (TParseContext::binaryOpError):
1918         (TParseContext::precisionErrorCheck):
1919         (TParseContext::lValueErrorCheck):
1920         (TParseContext::globalErrorCheck):
1921         (TParseContext::reservedErrorCheck):
1922         (TParseContext::constructorErrorCheck):
1923         (TParseContext::voidErrorCheck):
1924         (TParseContext::boolErrorCheck):
1925         (TParseContext::samplerErrorCheck):
1926         (TParseContext::structQualifierErrorCheck):
1927         (TParseContext::parameterSamplerErrorCheck):
1928         (TParseContext::containsSampler):
1929         (TParseContext::arraySizeErrorCheck):
1930         (TParseContext::arrayQualifierErrorCheck):
1931         (TParseContext::arrayTypeErrorCheck):
1932         (TParseContext::arrayErrorCheck):
1933         (TParseContext::nonInitConstErrorCheck):
1934         (TParseContext::nonInitErrorCheck):
1935         (TParseContext::paramErrorCheck):
1936         (TParseContext::extensionErrorCheck):
1937         (TParseContext::isExtensionEnabled):
1938         Replaced auto with std::map<std::string, TBehavior>::const_iterator to fix Qt and EFL compiling errors.
1939         (TParseContext::findFunction):
1940         (TParseContext::executeInitializer):
1941         (TParseContext::addConstructor):
1942         (TParseContext::constructBuiltIn):
1943         (TParseContext::constructStruct):
1944         (TParseContext::addConstVectorNode):
1945         (TParseContext::addConstMatrixNode):
1946         (TParseContext::addConstArrayNode):
1947         (TParseContext::addConstStruct):
1948         (TParseContext::enterStructDeclaration):
1949         (TParseContext::structNestingErrorCheck):
1950         (TParseContext::addIndexExpression):
1951         * src/compiler/ParseHelper.h:
1952         (TParseContext::TParseContext):
1953         (TParseContext::pragma):
1954         * src/compiler/PoolAlloc.cpp:
1955         (TPoolAllocator::allocate):
1956         * src/compiler/ShHandle.h:
1957         (TShHandleBase::getAsTranslatorHLSL):
1958         * src/compiler/ShaderLang.cpp:
1959         (ShInitBuiltInResources):
1960         (ShGetInfoPointer):
1961         * src/compiler/SymbolTable.cpp:
1962         (TType::TType):
1963         (TType::buildMangledName):
1964         (TType::getObjectSize):
1965         (TStructure::containsArrays):
1966         (TStructure::buildMangledName):
1967         (TStructure::calculateObjectSize):
1968         (TStructure::calculateDeepestNesting):
1969         (TSymbolTableLevel::relateToExtension):
1970         * src/compiler/SymbolTable.h:
1971         (TSymbol::relateToExtension):
1972         (TSymbol::getExtension):
1973         (TVariable::TVariable):
1974         (TVariable::setQualifier):
1975         (TVariable::shareConstPointer):
1976         (TSymbolTableLevel::insert):
1977         (TSymbolTable::insertConstInt):
1978         (TSymbolTable::insertBuiltIn):
1979         * src/compiler/TranslatorHLSL.cpp:
1980         (TranslatorHLSL::TranslatorHLSL):
1981         (TranslatorHLSL::translate):
1982         * src/compiler/TranslatorHLSL.h:
1983         (TranslatorHLSL::getAsTranslatorHLSL):
1984         (TranslatorHLSL::getUniforms):
1985         * src/compiler/Types.h: Removed enum bit fields to fix gcc compiler errors.
1986         (TField::TField):
1987         (TField::type):
1988         (TField::name):
1989         (NewPoolTFieldList):
1990         (TStructure::TStructure):
1991         (TStructure::name):
1992         (TStructure::fields):
1993         (TStructure::mangledName):
1994         (TStructure::objectSize):
1995         (TStructure::deepestNesting):
1996         (TType::TType):
1997         (TType::elementRegisterCount):
1998         (TType::totalRegisterCount):
1999         (TType::clearArrayness):
2000         (TType::getStruct):
2001         (TType::setStruct):
2002         (TType::getMangledName):
2003         (TType::getDeepestStructNesting):
2004         (TType::isStructureContainingArrays):
2005         (TPublicType::setBasic):
2006         * src/compiler/Uniform.cpp: Added.
2007         (sh::Uniform::Uniform):
2008         * src/compiler/Uniform.h: Added.
2009         * src/compiler/VariableInfo.cpp:
2010         (getUserDefinedVariableInfo):
2011         * src/compiler/glslang.l:
2012         * src/compiler/glslang.y: Moved YYLTYPE definition into %union to work with Bison 2.3.
2013         * src/compiler/glslang_lex.cpp:
2014         (yy_get_previous_state):
2015         (yy_try_NUL_trans):
2016         (yyget_lloc):
2017         (yyset_lloc):
2018         (string_input):
2019         (check_type):
2020         (reserved_word):
2021         (glslang_scan):
2022         * src/compiler/glslang_tab.cpp:
2023         (yyerror):
2024         * src/compiler/glslang_tab.h:
2025         * src/compiler/intermOut.cpp:
2026         (TOutputTraverser::visitUnary):
2027         (TOutputTraverser::visitAggregate):
2028         (TOutputTraverser::visitConstantUnion):
2029         * src/compiler/intermediate.h:
2030         (TIntermNode::TIntermNode):
2031         (TIntermNode::~TIntermNode):
2032         (TIntermNode::getLine):
2033         (TIntermNode::setLine):
2034         (TIntermNode::getAsLoopNode):
2035         (TIntermTyped::totalRegisterCount):
2036         (TIntermTyped::elementRegisterCount):
2037         (TIntermTyped::getArraySize):
2038         (TIntermConstantUnion::getIConst):
2039         (TIntermConstantUnion::getFConst):
2040         (TIntermConstantUnion::getBConst):
2041         (TIntermAggregate::TIntermAggregate):
2042         (TIntermTraverser::TIntermTraverser):
2043         (TIntermTraverser::getMaxDepth):
2044         (TIntermTraverser::incrementDepth):
2045         * src/compiler/localintermediate.h:
2046         * src/compiler/parseConst.cpp:
2047         (TConstTraverser::visitSymbol):
2048         (TConstTraverser::visitBinary):
2049         (TConstTraverser::visitUnary):
2050         (TConstTraverser::visitAggregate):
2051         (TConstTraverser::visitSelection):
2052         (TConstTraverser::visitConstantUnion):
2053         (TConstTraverser::visitLoop):
2054         (TConstTraverser::visitBranch):
2055         (TIntermediate::parseConstTree):
2056         * src/compiler/preprocessor/64bit-tokenizer-safety.patch: Added.
2057         * src/compiler/preprocessor/Tokenizer.cpp:
2058         (yy_get_previous_state):
2059         (yy_try_NUL_trans):
2060         * src/compiler/preprocessor/Tokenizer.l:
2061         * src/compiler/preprocessor/preprocessor.vcxproj: Added.
2062         * src/compiler/preprocessor/preprocessor.vcxproj.filters: Added.
2063         * src/compiler/timing/RestrictVertexShaderTiming.cpp:
2064         (RestrictVertexShaderTiming::visitSymbol):
2065         * src/compiler/translator_common.vcxproj: Added.
2066         * src/compiler/translator_common.vcxproj.filters: Added.
2067         * src/compiler/translator_hlsl.vcxproj: Added.
2068         * src/compiler/translator_hlsl.vcxproj.filters: Added.
2069         * src/libEGL/Config.cpp: Added.
2070         (egl::Config::Config):
2071         (egl::Config::getHandle):
2072         (egl::SortConfig::SortConfig):
2073         (egl::SortConfig::scanForWantedComponents):
2074         (egl::SortConfig::wantedComponentsSize):
2075         (egl::SortConfig::operator()):
2076         (egl::ConfigSet::ConfigSet):
2077         (egl::ConfigSet::add):
2078         (egl::ConfigSet::size):
2079         (egl::ConfigSet::getConfigs):
2080         (egl::ConfigSet::get):
2081         * src/libEGL/Config.h: Added.
2082         * src/libEGL/Display.cpp: Added.
2083         (egl::Display::getDisplay):
2084         (egl::Display::Display):
2085         (egl::Display::~Display):
2086         (egl::Display::initialize):
2087         (egl::Display::terminate):
2088         (egl::Display::getConfigs):
2089         (egl::Display::getConfigAttrib):
2090         (egl::Display::createWindowSurface):
2091         (egl::Display::createOffscreenSurface):
2092         (egl::Display::createContext):
2093         (egl::Display::restoreLostDevice):
2094         (egl::Display::destroySurface):
2095         (egl::Display::destroyContext):
2096         (egl::Display::notifyDeviceLost):
2097         (egl::Display::recreateSwapChains):
2098         (egl::Display::isInitialized):
2099         (egl::Display::isValidConfig):
2100         (egl::Display::isValidContext):
2101         (egl::Display::isValidSurface):
2102         (egl::Display::hasExistingWindowSurface):
2103         (egl::Display::initExtensionString):
2104         (egl::Display::getExtensionString):
2105         (egl::Display::initVendorString):
2106         (egl::Display::getVendorString):
2107         * src/libEGL/Display.h: Added.
2108         (egl::Display::getRenderer):
2109         * src/libEGL/Surface.cpp: Added.
2110         (egl::Surface::Surface):
2111         (egl::Surface::~Surface):
2112         (egl::Surface::initialize):
2113         (egl::Surface::release):
2114         (egl::Surface::resetSwapChain):
2115         (egl::Surface::resizeSwapChain):
2116         (egl::Surface::swapRect):
2117         (egl::Surface::getWindowHandle):
2118         (egl::SurfaceWindowProc):
2119         (egl::Surface::subclassWindow):
2120         (egl::Surface::unsubclassWindow):
2121         (egl::Surface::checkForOutOfDateSwapChain):
2122         (egl::Surface::swap):
2123         (egl::Surface::postSubBuffer):
2124         (egl::Surface::getWidth):
2125         (egl::Surface::getHeight):
2126         (egl::Surface::isPostSubBufferSupported):
2127         (egl::Surface::getSwapChain):
2128         (egl::Surface::setSwapInterval):
2129         (egl::Surface::getTextureFormat):
2130         (egl::Surface::getTextureTarget):
2131         (egl::Surface::setBoundTexture):
2132         (egl::Surface::getBoundTexture):
2133         (egl::Surface::getFormat):
2134         * src/libEGL/Surface.h: Added.
2135         * src/libEGL/libEGL.cpp: Added.
2136         (validateDisplay):
2137         (validateConfig):
2138         (validateContext):
2139         (validateSurface):
2140         * src/libEGL/libEGL.def: Added.
2141         * src/libEGL/libEGL.rc: Added.
2142         * src/libEGL/libEGL.vcxproj: Added.
2143         * src/libEGL/libEGL.vcxproj.filters: Added.
2144         * src/libEGL/main.cpp: Added.
2145         (DllMain):
2146         (egl::setCurrentError):
2147         (egl::getCurrentError):
2148         (egl::setCurrentAPI):
2149         (egl::getCurrentAPI):
2150         (egl::setCurrentDisplay):
2151         (egl::getCurrentDisplay):
2152         (egl::setCurrentDrawSurface):
2153         (egl::getCurrentDrawSurface):
2154         (egl::setCurrentReadSurface):
2155         (egl::getCurrentReadSurface):
2156         (egl::error):
2157         * src/libEGL/main.h: Added.
2158         (egl::error):
2159         (egl::success):
2160         * src/libEGL/resource.h: Added.
2161         * src/libGLESv2/BinaryStream.h: Added.
2162         (gl::BinaryInputStream::BinaryInputStream):
2163         (gl::BinaryInputStream::read):
2164         (gl::BinaryInputStream::skip):
2165         (gl::BinaryInputStream::offset):
2166         (gl::BinaryInputStream::error):
2167         (gl::BinaryInputStream::endOfStream):
2168         (gl::BinaryOutputStream::BinaryOutputStream):
2169         (gl::BinaryOutputStream::write):
2170         (gl::BinaryOutputStream::length):
2171         (gl::BinaryOutputStream::data):
2172         * src/libGLESv2/Buffer.cpp: Added.
2173         (gl::Buffer::Buffer):
2174         (gl::Buffer::~Buffer):
2175         (gl::Buffer::bufferData):
2176         (gl::Buffer::bufferSubData):
2177         (gl::Buffer::getStorage):
2178         (gl::Buffer::size):
2179         (gl::Buffer::usage):
2180         (gl::Buffer::getStaticVertexBuffer):
2181         (gl::Buffer::getStaticIndexBuffer):
2182         (gl::Buffer::invalidateStaticData):
2183         (gl::Buffer::promoteStaticUsage):
2184         * src/libGLESv2/Buffer.h: Added.
2185         * src/libGLESv2/Context.cpp: Added.
2186         (gl::makeStaticString):
2187         (gl::Context::Context):
2188         (gl::Context::~Context):
2189         (gl::Context::makeCurrent):
2190         (gl::Context::markContextLost):
2191         (gl::Context::isContextLost):
2192         (gl::Context::setClearColor):
2193         (gl::Context::setClearDepth):
2194         (gl::Context::setClearStencil):
2195         (gl::Context::setCullFace):
2196         (gl::Context::isCullFaceEnabled):
2197         (gl::Context::setCullMode):
2198         (gl::Context::setFrontFace):
2199         (gl::Context::setDepthTest):
2200         (gl::Context::isDepthTestEnabled):
2201         (gl::Context::setDepthFunc):
2202         (gl::Context::setDepthRange):
2203         (gl::Context::setBlend):
2204         (gl::Context::isBlendEnabled):
2205         (gl::Context::setBlendFactors):
2206         (gl::Context::setBlendColor):
2207         (gl::Context::setBlendEquation):
2208         (gl::Context::setStencilTest):
2209         (gl::Context::isStencilTestEnabled):
2210         (gl::Context::setStencilParams):
2211         (gl::Context::setStencilBackParams):
2212         (gl::Context::setStencilWritemask):
2213         (gl::Context::setStencilBackWritemask):
2214         (gl::Context::setStencilOperations):
2215         (gl::Context::setStencilBackOperations):
2216         (gl::Context::setPolygonOffsetFill):
2217         (gl::Context::isPolygonOffsetFillEnabled):
2218         (gl::Context::setPolygonOffsetParams):
2219         (gl::Context::setSampleAlphaToCoverage):
2220         (gl::Context::isSampleAlphaToCoverageEnabled):
2221         (gl::Context::setSampleCoverage):
2222         (gl::Context::isSampleCoverageEnabled):
2223         (gl::Context::setSampleCoverageParams):
2224         (gl::Context::setScissorTest):
2225         (gl::Context::isScissorTestEnabled):
2226         (gl::Context::setDither):
2227         (gl::Context::isDitherEnabled):
2228         (gl::Context::setLineWidth):
2229         (gl::Context::setGenerateMipmapHint):
2230         (gl::Context::setFragmentShaderDerivativeHint):
2231         (gl::Context::setViewportParams):
2232         (gl::Context::setScissorParams):
2233         (gl::Context::setColorMask):
2234         (gl::Context::setDepthMask):
2235         (gl::Context::setActiveSampler):
2236         (gl::Context::getReadFramebufferHandle):
2237         (gl::Context::getDrawFramebufferHandle):
2238         (gl::Context::getRenderbufferHandle):
2239         (gl::Context::getArrayBufferHandle):
2240         (gl::Context::getActiveQuery):
2241         (gl::Context::setEnableVertexAttribArray):
2242         (gl::Context::getVertexAttribState):
2243         (gl::Context::setVertexAttribState):
2244         (gl::Context::getVertexAttribPointer):
2245         (gl::Context::setPackAlignment):
2246         (gl::Context::getPackAlignment):
2247         (gl::Context::setUnpackAlignment):
2248         (gl::Context::getUnpackAlignment):
2249         (gl::Context::setPackReverseRowOrder):
2250         (gl::Context::getPackReverseRowOrder):
2251         (gl::Context::createBuffer):
2252         (gl::Context::createProgram):
2253         (gl::Context::createShader):
2254         (gl::Context::createTexture):
2255         (gl::Context::createRenderbuffer):
2256         (gl::Context::createFramebuffer):
2257         (gl::Context::createFence):
2258         (gl::Context::createQuery):
2259         (gl::Context::deleteBuffer):
2260         (gl::Context::deleteShader):
2261         (gl::Context::deleteProgram):
2262         (gl::Context::deleteTexture):
2263         (gl::Context::deleteRenderbuffer):
2264         (gl::Context::deleteFramebuffer):
2265         (gl::Context::deleteFence):
2266         (gl::Context::deleteQuery):
2267         (gl::Context::getBuffer):
2268         (gl::Context::getShader):
2269         (gl::Context::getProgram):
2270         (gl::Context::getTexture):
2271         (gl::Context::getRenderbuffer):
2272         (gl::Context::getReadFramebuffer):
2273         (gl::Context::getDrawFramebuffer):
2274         (gl::Context::bindArrayBuffer):
2275         (gl::Context::bindElementArrayBuffer):
2276         (gl::Context::bindTexture2D):
2277         (gl::Context::bindTextureCubeMap):
2278         (gl::Context::bindReadFramebuffer):
2279         (gl::Context::bindDrawFramebuffer):
2280         (gl::Context::bindRenderbuffer):
2281         (gl::Context::useProgram):
2282         (gl::Context::linkProgram):
2283         (gl::Context::setProgramBinary):
2284         (gl::Context::beginQuery):
2285         (gl::Context::endQuery):
2286         (gl::Context::setFramebufferZero):
2287         (gl::Context::setRenderbufferStorage):
2288         (gl::Context::getFramebuffer):
2289         (gl::Context::getFence):
2290         (gl::Context::getQuery):
2291         (gl::Context::getArrayBuffer):
2292         (gl::Context::getElementArrayBuffer):
2293         (gl::Context::getCurrentProgramBinary):
2294         (gl::Context::getTexture2D):
2295         (gl::Context::getTextureCubeMap):
2296         (gl::Context::getSamplerTexture):
2297         (gl::Context::getBooleanv):
2298         (gl::Context::getFloatv):
2299         (gl::Context::getIntegerv):
2300         (gl::Context::getQueryParameterInfo):
2301         (gl::Context::applyRenderTarget):
2302         (gl::Context::applyState):
2303         (gl::Context::applyShaders):
2304         (gl::Context::applyTextures):
2305         (gl::Context::readPixels):
2306         (gl::Context::clear):
2307         (gl::Context::drawArrays):
2308         (gl::Context::drawElements):
2309         (gl::Context::sync):
2310         (gl::Context::recordInvalidEnum):
2311         (gl::Context::recordInvalidValue):
2312         (gl::Context::recordInvalidOperation):
2313         (gl::Context::recordOutOfMemory):
2314         (gl::Context::recordInvalidFramebufferOperation):
2315         (gl::Context::getError):
2316         (gl::Context::getResetStatus):
2317         (gl::Context::isResetNotificationEnabled):
2318         (gl::Context::getMajorShaderModel):
2319         (gl::Context::getMaximumPointSize):
2320         (gl::Context::getMaximumCombinedTextureImageUnits):
2321         (gl::Context::getMaxSupportedSamples):
2322         (gl::Context::getMaximumRenderTargets):
2323         (gl::Context::supportsEventQueries):
2324         (gl::Context::supportsOcclusionQueries):
2325         (gl::Context::supportsBGRATextures):
2326         (gl::Context::supportsDXT1Textures):
2327         (gl::Context::supportsDXT3Textures):
2328         (gl::Context::supportsDXT5Textures):
2329         (gl::Context::supportsFloat32Textures):
2330         (gl::Context::supportsFloat32LinearFilter):
2331         (gl::Context::supportsFloat32RenderableTextures):
2332         (gl::Context::supportsFloat16Textures):
2333         (gl::Context::supportsFloat16LinearFilter):
2334         (gl::Context::supportsFloat16RenderableTextures):
2335         (gl::Context::getMaximumRenderbufferDimension):
2336         (gl::Context::getMaximumTextureDimension):
2337         (gl::Context::getMaximumCubeTextureDimension):
2338         (gl::Context::getMaximumTextureLevel):
2339         (gl::Context::supportsLuminanceTextures):
2340         (gl::Context::supportsLuminanceAlphaTextures):
2341         (gl::Context::supportsDepthTextures):
2342         (gl::Context::supports32bitIndices):
2343         (gl::Context::supportsNonPower2Texture):
2344         (gl::Context::supportsInstancing):
2345         (gl::Context::supportsTextureFilterAnisotropy):
2346         (gl::Context::getTextureMaxAnisotropy):
2347         (gl::Context::getCurrentReadFormatType):
2348         (gl::Context::detachBuffer):
2349         (gl::Context::detachTexture):
2350         (gl::Context::detachFramebuffer):
2351         (gl::Context::detachRenderbuffer):
2352         (gl::Context::getIncompleteTexture):
2353         (gl::Context::skipDraw):
2354         (gl::Context::setVertexAttrib):
2355         (gl::Context::setVertexAttribDivisor):
2356         (gl::Context::initExtensionString):
2357         (gl::Context::getExtensionString):
2358         (gl::Context::initRendererString):
2359         (gl::Context::getRendererString):
2360         (gl::Context::blitFramebuffer):
2361         * src/libGLESv2/Context.h: Added.
2362         (gl::VertexAttribute::VertexAttribute):
2363         (gl::VertexAttribute::typeSize):
2364         (gl::VertexAttribute::stride):
2365         * src/libGLESv2/Fence.cpp: Added.
2366         (gl::Fence::Fence):
2367         (gl::Fence::~Fence):
2368         (gl::Fence::isFence):
2369         (gl::Fence::setFence):
2370         (gl::Fence::testFence):
2371         (gl::Fence::finishFence):
2372         (gl::Fence::getFenceiv):
2373         * src/libGLESv2/Fence.h: Added.
2374         * src/libGLESv2/Float16ToFloat32.cpp: Added.
2375         (gl::float16ToFloat32):
2376         * src/libGLESv2/Float16ToFloat32.py: Added.
2377         (convertMantissa):
2378         (convertExponent):
2379         (convertOffset):
2380         * src/libGLESv2/Framebuffer.cpp: Added.
2381         (gl::Framebuffer::Framebuffer):
2382         (gl::Framebuffer::~Framebuffer):
2383         (gl::Framebuffer::lookupRenderbuffer):
2384         (gl::Framebuffer::setColorbuffer):
2385         (gl::Framebuffer::setDepthbuffer):
2386         (gl::Framebuffer::setStencilbuffer):
2387         (gl::Framebuffer::detachTexture):
2388         (gl::Framebuffer::detachRenderbuffer):
2389         (gl::Framebuffer::getRenderTargetSerial):
2390         (gl::Framebuffer::getDepthbufferSerial):
2391         (gl::Framebuffer::getStencilbufferSerial):
2392         (gl::Framebuffer::getColorbuffer):
2393         (gl::Framebuffer::getDepthbuffer):
2394         (gl::Framebuffer::getStencilbuffer):
2395         (gl::Framebuffer::getDepthOrStencilbuffer):
2396         (gl::Framebuffer::getReadColorbuffer):
2397         (gl::Framebuffer::getReadColorbufferType):
2398         (gl::Framebuffer::getFirstColorbuffer):
2399         (gl::Framebuffer::getColorbufferType):
2400         (gl::Framebuffer::getDepthbufferType):
2401         (gl::Framebuffer::getStencilbufferType):
2402         (gl::Framebuffer::getColorbufferHandle):
2403         (gl::Framebuffer::getDepthbufferHandle):
2404         (gl::Framebuffer::getStencilbufferHandle):
2405         (gl::Framebuffer::getDrawBufferState):
2406         (gl::Framebuffer::setDrawBufferState):
2407         (gl::Framebuffer::isEnabledColorAttachment):
2408         (gl::Framebuffer::hasEnabledColorAttachment):
2409         (gl::Framebuffer::hasStencil):
2410         (gl::Framebuffer::usingExtendedDrawBuffers):
2411         (gl::Framebuffer::completeness):
2412         (gl::DefaultFramebuffer::DefaultFramebuffer):
2413         (gl::Framebuffer::getSamples):
2414         (gl::DefaultFramebuffer::completeness):
2415         * src/libGLESv2/Framebuffer.h: Added.
2416         * src/libGLESv2/HandleAllocator.cpp: Added.
2417         (gl::HandleAllocator::HandleAllocator):
2418         (gl::HandleAllocator::~HandleAllocator):
2419         (gl::HandleAllocator::setBaseHandle):
2420         (gl::HandleAllocator::allocate):
2421         (gl::HandleAllocator::release):
2422         * src/libGLESv2/HandleAllocator.h: Added.
2423         * src/libGLESv2/Program.cpp: Added.
2424         (gl::AttributeBindings::AttributeBindings):
2425         (gl::AttributeBindings::~AttributeBindings):
2426         (gl::InfoLog::InfoLog):
2427         (gl::InfoLog::~InfoLog):
2428         (gl::InfoLog::getLength):
2429         (gl::InfoLog::getLog):
2430         (gl::InfoLog::appendSanitized):
2431         (gl::InfoLog::append):
2432         (gl::InfoLog::reset):
2433         (gl::Program::Program):
2434         (gl::Program::~Program):
2435         (gl::Program::attachShader):
2436         (gl::Program::detachShader):
2437         (gl::Program::getAttachedShadersCount):
2438         (gl::AttributeBindings::bindAttributeLocation):
2439         (gl::Program::bindAttributeLocation):
2440         (gl::Program::link):
2441         (gl::AttributeBindings::getAttributeBinding):
2442         (gl::Program::unlink):
2443         (gl::Program::isLinked):
2444         (gl::Program::getProgramBinary):
2445         (gl::Program::setProgramBinary):
2446         (gl::Program::release):
2447         (gl::Program::addRef):
2448         (gl::Program::getRefCount):
2449         (gl::Program::getProgramBinaryLength):
2450         (gl::Program::getInfoLogLength):
2451         (gl::Program::getInfoLog):
2452         (gl::Program::getAttachedShaders):
2453         (gl::Program::getActiveAttribute):
2454         (gl::Program::getActiveAttributeCount):
2455         (gl::Program::getActiveAttributeMaxLength):
2456         (gl::Program::getActiveUniform):
2457         (gl::Program::getActiveUniformCount):
2458         (gl::Program::getActiveUniformMaxLength):
2459         (gl::Program::flagForDeletion):
2460         (gl::Program::isFlaggedForDeletion):
2461         (gl::Program::validate):
2462         (gl::Program::isValidated):
2463         * src/libGLESv2/Program.h: Added.
2464         * src/libGLESv2/ProgramBinary.cpp: Added.
2465         (gl::str):
2466         (gl::UniformLocation::UniformLocation):
2467         (gl::ProgramBinary::ProgramBinary):
2468         (gl::ProgramBinary::~ProgramBinary):
2469         (gl::ProgramBinary::getSerial):
2470         (gl::ProgramBinary::issueSerial):
2471         (gl::ProgramBinary::getPixelExecutable):
2472         (gl::ProgramBinary::getVertexExecutable):
2473         (gl::ProgramBinary::getGeometryExecutable):
2474         (gl::ProgramBinary::getAttributeLocation):
2475         (gl::ProgramBinary::getSemanticIndex):
2476         (gl::ProgramBinary::getUsedSamplerRange):
2477         (gl::ProgramBinary::usesPointSize):
2478         (gl::ProgramBinary::usesPointSpriteEmulation):
2479         (gl::ProgramBinary::usesGeometryShader):
2480         (gl::ProgramBinary::getSamplerMapping):
2481         (gl::ProgramBinary::getSamplerTextureType):
2482         (gl::ProgramBinary::getUniformLocation):
2483         (gl::ProgramBinary::setUniform1fv):
2484         (gl::ProgramBinary::setUniform2fv):
2485         (gl::ProgramBinary::setUniform3fv):
2486         (gl::ProgramBinary::setUniform4fv):
2487         (gl::transposeMatrix):
2488         (gl::ProgramBinary::setUniformMatrix2fv):
2489         (gl::ProgramBinary::setUniformMatrix3fv):
2490         (gl::ProgramBinary::setUniformMatrix4fv):
2491         (gl::ProgramBinary::setUniform1iv):
2492         (gl::ProgramBinary::setUniform2iv):
2493         (gl::ProgramBinary::setUniform3iv):
2494         (gl::ProgramBinary::setUniform4iv):
2495         (gl::ProgramBinary::getUniformfv):
2496         (gl::ProgramBinary::getUniformiv):
2497         (gl::ProgramBinary::dirtyAllUniforms):
2498         (gl::ProgramBinary::applyUniforms):
2499         (gl::ProgramBinary::packVaryings):
2500         (gl::ProgramBinary::linkVaryings):
2501         (gl::ProgramBinary::load):
2502         (gl::ProgramBinary::save):
2503         (gl::ProgramBinary::getLength):
2504         (gl::ProgramBinary::link):
2505         (gl::ProgramBinary::linkAttributes):
2506         (gl::ProgramBinary::linkUniforms):
2507         (gl::ProgramBinary::defineUniform):
2508         (gl::ProgramBinary::generateGeometryShaderHLSL):
2509         (gl::ProgramBinary::generatePointSpriteHLSL):
2510         (gl::ProgramBinary::decorateAttribute):
2511         (gl::ProgramBinary::isValidated):
2512         (gl::ProgramBinary::getActiveAttribute):
2513         (gl::ProgramBinary::getActiveAttributeCount):
2514         (gl::ProgramBinary::getActiveAttributeMaxLength):
2515         (gl::ProgramBinary::getActiveUniform):
2516         (gl::ProgramBinary::getActiveUniformCount):
2517         (gl::ProgramBinary::getActiveUniformMaxLength):
2518         (gl::ProgramBinary::validate):
2519         (gl::ProgramBinary::validateSamplers):
2520         (gl::ProgramBinary::Sampler::Sampler):
2521         (gl::AttributeSorter::AttributeSorter):
2522         (gl::AttributeSorter::operator()):
2523         (gl::ProgramBinary::sortAttributesByLayout):
2524         * src/libGLESv2/ProgramBinary.h: Added.
2525         (gl::UniformLocation::UniformLocation):
2526         * src/libGLESv2/Query.cpp: Added.
2527         (gl::Query::Query):
2528         (gl::Query::~Query):
2529         (gl::Query::begin):
2530         (gl::Query::end):
2531         (gl::Query::getResult):
2532         (gl::Query::isResultAvailable):
2533         (gl::Query::getType):
2534         * src/libGLESv2/Query.h: Added.
2535         * src/libGLESv2/Renderbuffer.cpp: Added.
2536         (gl::RenderbufferInterface::RenderbufferInterface):
2537         (gl::RenderbufferInterface::addProxyRef):
2538         (gl::RenderbufferInterface::releaseProxy):
2539         (gl::RenderbufferInterface::getRedSize):
2540         (gl::RenderbufferInterface::getGreenSize):
2541         (gl::RenderbufferInterface::getBlueSize):
2542         (gl::RenderbufferInterface::getAlphaSize):
2543         (gl::RenderbufferInterface::getDepthSize):
2544         (gl::RenderbufferInterface::getStencilSize):
2545         (gl::RenderbufferTexture2D::RenderbufferTexture2D):
2546         (gl::RenderbufferTexture2D::~RenderbufferTexture2D):
2547         (gl::RenderbufferTexture2D::addProxyRef):
2548         (gl::RenderbufferTexture2D::releaseProxy):
2549         (gl::RenderbufferTexture2D::getRenderTarget):
2550         (gl::RenderbufferTexture2D::getDepthStencil):
2551         (gl::RenderbufferTexture2D::getWidth):
2552         (gl::RenderbufferTexture2D::getHeight):
2553         (gl::RenderbufferTexture2D::getInternalFormat):
2554         (gl::RenderbufferTexture2D::getActualFormat):
2555         (gl::RenderbufferTexture2D::getSamples):
2556         (gl::RenderbufferTexture2D::getSerial):
2557         (gl::RenderbufferTextureCubeMap::RenderbufferTextureCubeMap):
2558         (gl::RenderbufferTextureCubeMap::~RenderbufferTextureCubeMap):
2559         (gl::RenderbufferTextureCubeMap::addProxyRef):
2560         (gl::RenderbufferTextureCubeMap::releaseProxy):
2561         (gl::RenderbufferTextureCubeMap::getRenderTarget):
2562         (gl::RenderbufferTextureCubeMap::getDepthStencil):
2563         (gl::RenderbufferTextureCubeMap::getWidth):
2564         (gl::RenderbufferTextureCubeMap::getHeight):
2565         (gl::RenderbufferTextureCubeMap::getInternalFormat):
2566         (gl::RenderbufferTextureCubeMap::getActualFormat):
2567         (gl::RenderbufferTextureCubeMap::getSamples):
2568         (gl::RenderbufferTextureCubeMap::getSerial):
2569         (gl::Renderbuffer::Renderbuffer):
2570         (gl::Renderbuffer::~Renderbuffer):
2571         (gl::Renderbuffer::addRef):
2572         (gl::Renderbuffer::release):
2573         (gl::Renderbuffer::getRenderTarget):
2574         (gl::Renderbuffer::getDepthStencil):
2575         (gl::Renderbuffer::getWidth):
2576         (gl::Renderbuffer::getHeight):
2577         (gl::Renderbuffer::getInternalFormat):
2578         (gl::Renderbuffer::getActualFormat):
2579         (gl::Renderbuffer::getRedSize):
2580         (gl::Renderbuffer::getGreenSize):
2581         (gl::Renderbuffer::getBlueSize):
2582         (gl::Renderbuffer::getAlphaSize):
2583         (gl::Renderbuffer::getDepthSize):
2584         (gl::Renderbuffer::getStencilSize):
2585         (gl::Renderbuffer::getSamples):
2586         (gl::Renderbuffer::getSerial):
2587         (gl::Renderbuffer::setStorage):
2588         (gl::RenderbufferStorage::RenderbufferStorage):
2589         (gl::RenderbufferStorage::~RenderbufferStorage):
2590         (gl::RenderbufferStorage::getRenderTarget):
2591         (gl::RenderbufferStorage::getDepthStencil):
2592         (gl::RenderbufferStorage::getWidth):
2593         (gl::RenderbufferStorage::getHeight):
2594         (gl::RenderbufferStorage::getInternalFormat):
2595         (gl::RenderbufferStorage::getActualFormat):
2596         (gl::RenderbufferStorage::getSamples):
2597         (gl::RenderbufferStorage::getSerial):
2598         (gl::RenderbufferStorage::issueSerial):
2599         (gl::RenderbufferStorage::issueCubeSerials):
2600         (gl::Colorbuffer::Colorbuffer):
2601         (gl::Colorbuffer::~Colorbuffer):
2602         (gl::Colorbuffer::getRenderTarget):
2603         (gl::DepthStencilbuffer::DepthStencilbuffer):
2604         (gl::DepthStencilbuffer::~DepthStencilbuffer):
2605         (gl::DepthStencilbuffer::getDepthStencil):
2606         (gl::Depthbuffer::Depthbuffer):
2607         (gl::Depthbuffer::~Depthbuffer):
2608         (gl::Stencilbuffer::Stencilbuffer):
2609         (gl::Stencilbuffer::~Stencilbuffer):
2610         * src/libGLESv2/Renderbuffer.h: Added.
2611         (gl::RenderbufferInterface::~RenderbufferInterface):
2612         * src/libGLESv2/ResourceManager.cpp: Added.
2613         (gl::ResourceManager::ResourceManager):
2614         (gl::ResourceManager::~ResourceManager):
2615         (gl::ResourceManager::addRef):
2616         (gl::ResourceManager::release):
2617         (gl::ResourceManager::createBuffer):
2618         (gl::ResourceManager::createShader):
2619         (gl::ResourceManager::createProgram):
2620         (gl::ResourceManager::createTexture):
2621         (gl::ResourceManager::createRenderbuffer):
2622         (gl::ResourceManager::deleteBuffer):
2623         (gl::ResourceManager::deleteShader):
2624         (gl::ResourceManager::deleteProgram):
2625         (gl::ResourceManager::deleteTexture):
2626         (gl::ResourceManager::deleteRenderbuffer):
2627         (gl::ResourceManager::getBuffer):
2628         (gl::ResourceManager::getShader):
2629         (gl::ResourceManager::getTexture):
2630         (gl::ResourceManager::getProgram):
2631         (gl::ResourceManager::getRenderbuffer):
2632         (gl::ResourceManager::setRenderbuffer):
2633         (gl::ResourceManager::checkBufferAllocation):
2634         (gl::ResourceManager::checkTextureAllocation):
2635         (gl::ResourceManager::checkRenderbufferAllocation):
2636         * src/libGLESv2/ResourceManager.h: Added.
2637         * src/libGLESv2/Shader.cpp: Added.
2638         (gl::Shader::Shader):
2639         (gl::Shader::~Shader):
2640         (gl::Shader::getHandle):
2641         (gl::Shader::setSource):
2642         (gl::Shader::getInfoLogLength):
2643         (gl::Shader::getInfoLog):
2644         (gl::Shader::getSourceLength):
2645         (gl::Shader::getTranslatedSourceLength):
2646         (gl::Shader::getSourceImpl):
2647         (gl::Shader::getSource):
2648         (gl::Shader::getTranslatedSource):
2649         (gl::Shader::getUniforms):
2650         (gl::Shader::isCompiled):
2651         (gl::Shader::getHLSL):
2652         (gl::Shader::addRef):
2653         (gl::Shader::release):
2654         (gl::Shader::getRefCount):
2655         (gl::Shader::isFlaggedForDeletion):
2656         (gl::Shader::flagForDeletion):
2657         (gl::Shader::initializeCompiler):
2658         (gl::Shader::releaseCompiler):
2659         (gl::Shader::parseVaryings):
2660         (gl::Shader::resetVaryingsRegisterAssignment):
2661         (gl::Shader::uncompile):
2662         (gl::Shader::compileToHLSL):
2663         (gl::Shader::parseType):
2664         (gl::Shader::compareVarying):
2665         (gl::VertexShader::VertexShader):
2666         (gl::VertexShader::~VertexShader):
2667         (gl::VertexShader::getType):
2668         (gl::VertexShader::uncompile):
2669         (gl::VertexShader::compile):
2670         (gl::VertexShader::getSemanticIndex):
2671         (gl::VertexShader::parseAttributes):
2672         (gl::FragmentShader::FragmentShader):
2673         (gl::FragmentShader::~FragmentShader):
2674         (gl::FragmentShader::getType):
2675         (gl::FragmentShader::compile):
2676         * src/libGLESv2/Shader.h: Added.
2677         (gl::Varying::Varying):
2678         (gl::Attribute::Attribute):
2679         * src/libGLESv2/Texture.cpp: Added.
2680         (gl::Texture::Texture):
2681         (gl::Texture::~Texture):
2682         (gl::Texture::setMinFilter):
2683         (gl::Texture::setMagFilter):
2684         (gl::Texture::setWrapS):
2685         (gl::Texture::setWrapT):
2686         (gl::Texture::setMaxAnisotropy):
2687         (gl::Texture::setUsage):
2688         (gl::Texture::getMinFilter):
2689         (gl::Texture::getMagFilter):
2690         (gl::Texture::getWrapS):
2691         (gl::Texture::getWrapT):
2692         (gl::Texture::getMaxAnisotropy):
2693         (gl::Texture::getLodOffset):
2694         (gl::Texture::getSamplerState):
2695         (gl::Texture::getUsage):
2696         (gl::Texture::isMipmapFiltered):
2697         (gl::Texture::setImage):
2698         (gl::Texture::setCompressedImage):
2699         (gl::Texture::subImage):
2700         (gl::Texture::subImageCompressed):
2701         (gl::Texture::getNativeTexture):
2702         (gl::Texture::hasDirtyImages):
2703         (gl::Texture::resetDirty):
2704         (gl::Texture::getTextureSerial):
2705         (gl::Texture::getRenderTargetSerial):
2706         (gl::Texture::isImmutable):
2707         (gl::Texture::creationLevels):
2708         (gl::Texture2D::Texture2D):
2709         (gl::Texture2D::~Texture2D):
2710         (gl::Texture2D::addProxyRef):
2711         (gl::Texture2D::releaseProxy):
2712         (gl::Texture2D::getTarget):
2713         (gl::Texture2D::getWidth):
2714         (gl::Texture2D::getHeight):
2715         (gl::Texture2D::getInternalFormat):
2716         (gl::Texture2D::getActualFormat):
2717         (gl::Texture2D::redefineImage):
2718         (gl::Texture2D::setImage):
2719         (gl::Texture2D::bindTexImage):
2720         (gl::Texture2D::releaseTexImage):
2721         (gl::Texture2D::setCompressedImage):
2722         (gl::Texture2D::commitRect):
2723         (gl::Texture2D::subImage):
2724         (gl::Texture2D::subImageCompressed):
2725         (gl::Texture2D::copyImage):
2726         (gl::Texture2D::copySubImage):
2727         (gl::Texture2D::storage):
2728         (gl::Texture2D::isSamplerComplete):
2729         (gl::Texture2D::isMipmapComplete):
2730         (gl::Texture2D::isCompressed):
2731         (gl::Texture2D::isDepth):
2732         (gl::Texture2D::createTexture):
2733         (gl::Texture2D::updateTexture):
2734         (gl::Texture2D::convertToRenderTarget):
2735         (gl::Texture2D::generateMipmaps):
2736         (gl::Texture2D::getRenderbuffer):
2737         (gl::Texture2D::getRenderTarget):
2738         (gl::Texture2D::getDepthStencil):
2739         (gl::Texture2D::levelCount):
2740         (gl::Texture2D::getStorage):
2741         (gl::TextureCubeMap::TextureCubeMap):
2742         (gl::TextureCubeMap::~TextureCubeMap):
2743         (gl::TextureCubeMap::addProxyRef):
2744         (gl::TextureCubeMap::releaseProxy):
2745         (gl::TextureCubeMap::getTarget):
2746         (gl::TextureCubeMap::getWidth):
2747         (gl::TextureCubeMap::getHeight):
2748         (gl::TextureCubeMap::getInternalFormat):
2749         (gl::TextureCubeMap::getActualFormat):
2750         (gl::TextureCubeMap::setImagePosX):
2751         (gl::TextureCubeMap::setImageNegX):
2752         (gl::TextureCubeMap::setImagePosY):
2753         (gl::TextureCubeMap::setImageNegY):
2754         (gl::TextureCubeMap::setImagePosZ):
2755         (gl::TextureCubeMap::setImageNegZ):
2756         (gl::TextureCubeMap::setCompressedImage):
2757         (gl::TextureCubeMap::commitRect):
2758         (gl::TextureCubeMap::subImage):
2759         (gl::TextureCubeMap::subImageCompressed):
2760         (gl::TextureCubeMap::isSamplerComplete):
2761         (gl::TextureCubeMap::isCubeComplete):
2762         (gl::TextureCubeMap::isMipmapCubeComplete):
2763         (gl::TextureCubeMap::isCompressed):
2764         (gl::TextureCubeMap::createTexture):
2765         (gl::TextureCubeMap::updateTexture):
2766         (gl::TextureCubeMap::convertToRenderTarget):
2767         (gl::TextureCubeMap::setImage):
2768         (gl::TextureCubeMap::faceIndex):
2769         (gl::TextureCubeMap::redefineImage):
2770         (gl::TextureCubeMap::copyImage):
2771         (gl::TextureCubeMap::copySubImage):
2772         (gl::TextureCubeMap::storage):
2773         (gl::TextureCubeMap::generateMipmaps):
2774         (gl::TextureCubeMap::getRenderbuffer):
2775         (gl::TextureCubeMap::getRenderTarget):
2776         (gl::TextureCubeMap::levelCount):
2777         (gl::TextureCubeMap::getStorage):
2778         * src/libGLESv2/Texture.h: Added.
2779         * src/libGLESv2/Uniform.cpp: Added.
2780         (gl::Uniform::Uniform):
2781         (gl::Uniform::~Uniform):
2782         (gl::Uniform::isArray):
2783         (gl::Uniform::elementCount):
2784         * src/libGLESv2/Uniform.h: Added.
2785         * src/libGLESv2/angletypes.h: Added.
2786         * src/libGLESv2/constants.h: Added.
2787         * src/libGLESv2/libGLESv2.cpp: Added.
2788         (validImageSize):
2789         (checkTextureFormatType):
2790         (validateSubImageParams2D):
2791         (validateSubImageParamsCube):
2792         (validReadFormatType):
2793         * src/libGLESv2/libGLESv2.def: Added.
2794         * src/libGLESv2/libGLESv2.rc: Added.
2795         * src/libGLESv2/libGLESv2.vcxproj: Added.
2796         * src/libGLESv2/libGLESv2.vcxproj.filters: Added.
2797         * src/libGLESv2/main.cpp: Added.
2798         (DllMain):
2799         (gl::makeCurrent):
2800         (gl::getContext):
2801         (gl::getNonLostContext):
2802         (gl::getDisplay):
2803         (gl::error):
2804         * src/libGLESv2/main.h: Added.
2805         (gl::error):
2806         * src/libGLESv2/mathutil.h: Added.
2807         (gl::Vector4::Vector4):
2808         (gl::isPow2):
2809         (gl::log2):
2810         (gl::ceilPow2):
2811         (gl::clamp):
2812         (gl::clamp01):
2813         (gl::unorm):
2814         (gl::supportsSSE2):
2815         (gl::float32ToFloat16):
2816         (rx::Range::Range):
2817         * src/libGLESv2/precompiled.cpp: Added.
2818         * src/libGLESv2/precompiled.h: Added.
2819         * src/libGLESv2/renderer: Added.
2820         * src/libGLESv2/renderer/Blit.cpp: Added.
2821         (rx::Blit::Blit):
2822         (rx::Blit::~Blit):
2823         (rx::Blit::initGeometry):
2824         (rx::Blit::setShader):
2825         (rx::Blit::setVertexShader):
2826         (rx::Blit::setPixelShader):
2827         (rx::Blit::getSurfaceRect):
2828         (rx::Blit::boxFilter):
2829         (rx::Blit::copy):
2830         (rx::Blit::formatConvert):
2831         (rx::Blit::setFormatConvertShaders):
2832         (rx::Blit::copySurfaceToTexture):
2833         (rx::Blit::setViewport):
2834         (rx::Blit::setCommonBlitState):
2835         (rx::Blit::render):
2836         (rx::Blit::saveState):
2837         (rx::Blit::restoreState):
2838         * src/libGLESv2/renderer/Blit.h: Added.
2839         * src/libGLESv2/renderer/BufferStorage.cpp: Added.
2840         (rx::BufferStorage::BufferStorage):
2841         (rx::BufferStorage::~BufferStorage):
2842         (rx::BufferStorage::getSerial):
2843         (rx::BufferStorage::updateSerial):
2844         (rx::BufferStorage::markBufferUsage):
2845         * src/libGLESv2/renderer/BufferStorage.h: Added.
2846         * src/libGLESv2/renderer/BufferStorage11.cpp: Added.
2847         (rx::BufferStorage11::BufferStorage11):
2848         (rx::BufferStorage11::~BufferStorage11):
2849         (rx::BufferStorage11::makeBufferStorage11):
2850         (rx::BufferStorage11::getData):
2851         (rx::BufferStorage11::setData):
2852         (rx::BufferStorage11::clear):
2853         (rx::BufferStorage11::getSize):
2854         (rx::BufferStorage11::supportsDirectBinding):
2855         (rx::BufferStorage11::markBufferUsage):
2856         (rx::BufferStorage11::getBuffer):
2857         * src/libGLESv2/renderer/BufferStorage11.h: Added.
2858         * src/libGLESv2/renderer/BufferStorage9.cpp: Added.
2859         (rx::BufferStorage9::BufferStorage9):
2860         (rx::BufferStorage9::~BufferStorage9):
2861         (rx::BufferStorage9::makeBufferStorage9):
2862         (rx::BufferStorage9::getData):
2863         (rx::BufferStorage9::setData):
2864         (rx::BufferStorage9::clear):
2865         (rx::BufferStorage9::getSize):
2866         (rx::BufferStorage9::supportsDirectBinding):
2867         * src/libGLESv2/renderer/BufferStorage9.h: Added.
2868         * src/libGLESv2/renderer/Fence11.cpp: Added.
2869         (rx::Fence11::Fence11):
2870         (rx::Fence11::~Fence11):
2871         (rx::Fence11::isFence):
2872         (rx::Fence11::setFence):
2873         (rx::Fence11::testFence):
2874         (rx::Fence11::finishFence):
2875         (rx::Fence11::getFenceiv):
2876         * src/libGLESv2/renderer/Fence11.h: Added.
2877         * src/libGLESv2/renderer/Fence9.cpp: Added.
2878         (rx::Fence9::Fence9):
2879         (rx::Fence9::~Fence9):
2880         (rx::Fence9::isFence):
2881         (rx::Fence9::setFence):
2882         (rx::Fence9::testFence):
2883         (rx::Fence9::finishFence):
2884         (rx::Fence9::getFenceiv):
2885         * src/libGLESv2/renderer/Fence9.h: Added.
2886         * src/libGLESv2/renderer/FenceImpl.h: Added.
2887         (rx::FenceImpl::FenceImpl):
2888         (rx::FenceImpl::~FenceImpl):
2889         (rx::FenceImpl::setStatus):
2890         (rx::FenceImpl::getStatus):
2891         (rx::FenceImpl::setCondition):
2892         (rx::FenceImpl::getCondition):
2893         * src/libGLESv2/renderer/Image.cpp: Added.
2894         (rx::Image::Image):
2895         (rx::Image::loadAlphaDataToBGRA):
2896         (rx::Image::loadAlphaDataToNative):
2897         (rx::Image::loadAlphaFloatDataToRGBA):
2898         (rx::Image::loadAlphaHalfFloatDataToRGBA):
2899         (rx::Image::loadLuminanceDataToNativeOrBGRA):
2900         (rx::Image::loadLuminanceFloatDataToRGBA):
2901         (rx::Image::loadLuminanceFloatDataToRGB):
2902         (rx::Image::loadLuminanceHalfFloatDataToRGBA):
2903         (rx::Image::loadLuminanceAlphaDataToNativeOrBGRA):
2904         (rx::Image::loadLuminanceAlphaFloatDataToRGBA):
2905         (rx::Image::loadLuminanceAlphaHalfFloatDataToRGBA):
2906         (rx::Image::loadRGBUByteDataToBGRX):
2907         (rx::Image::loadRGBUByteDataToRGBA):
2908         (rx::Image::loadRGB565DataToBGRA):
2909         (rx::Image::loadRGB565DataToRGBA):
2910         (rx::Image::loadRGBFloatDataToRGBA):
2911         (rx::Image::loadRGBFloatDataToNative):
2912         (rx::Image::loadRGBHalfFloatDataToRGBA):
2913         (rx::Image::loadRGBAUByteDataToBGRA):
2914         (rx::Image::loadRGBAUByteDataToNative):
2915         (rx::Image::loadRGBA4444DataToBGRA):
2916         (rx::Image::loadRGBA4444DataToRGBA):
2917         (rx::Image::loadRGBA5551DataToBGRA):
2918         (rx::Image::loadRGBA5551DataToRGBA):
2919         (rx::Image::loadRGBAFloatDataToRGBA):
2920         (rx::Image::loadRGBAHalfFloatDataToRGBA):
2921         (rx::Image::loadBGRADataToBGRA):
2922         * src/libGLESv2/renderer/Image.h: Added.
2923         (rx::Image::~Image):
2924         (rx::Image::getWidth):
2925         (rx::Image::getHeight):
2926         (rx::Image::getInternalFormat):
2927         (rx::Image::getActualFormat):
2928         (rx::Image::markDirty):
2929         (rx::Image::markClean):
2930         (rx::Image::setManagedSurface):
2931         * src/libGLESv2/renderer/Image11.cpp: Added.
2932         (rx::Image11::Image11):
2933         (rx::Image11::~Image11):
2934         (rx::Image11::makeImage11):
2935         (rx::Image11::generateMipmap):
2936         (rx::Image11::isDirty):
2937         (rx::Image11::updateSurface):
2938         (rx::Image11::redefine):
2939         (rx::Image11::isRenderableFormat):
2940         (rx::Image11::getDXGIFormat):
2941         (rx::Image11::loadData):
2942         (rx::Image11::loadCompressedData):
2943         (rx::Image11::copy):
2944         (rx::Image11::getStagingTexture):
2945         (rx::Image11::getStagingSubresource):
2946         (rx::Image11::createStagingTexture):
2947         (rx::Image11::map):
2948         (rx::Image11::unmap):
2949         * src/libGLESv2/renderer/Image11.h: Added.
2950         * src/libGLESv2/renderer/Image9.cpp: Added.
2951         (rx::Image9::Image9):
2952         (rx::Image9::~Image9):
2953         (rx::Image9::generateMip):
2954         (rx::Image9::makeImage9):
2955         (rx::Image9::generateMipmap):
2956         (rx::Image9::copyLockableSurfaces):
2957         (rx::Image9::redefine):
2958         (rx::Image9::createSurface):
2959         (rx::Image9::lock):
2960         (rx::Image9::unlock):
2961         (rx::Image9::isRenderableFormat):
2962         (rx::Image9::getD3DFormat):
2963         (rx::Image9::getSurface):
2964         (rx::Image9::setManagedSurface):
2965         (rx::Image9::updateSurface):
2966         (rx::Image9::loadData):
2967         (rx::Image9::loadCompressedData):
2968         (rx::Image9::copy):
2969         * src/libGLESv2/renderer/Image9.h: Added.
2970         (rx::Image9::isDirty):
2971         * src/libGLESv2/renderer/ImageSSE2.cpp: Added.
2972         (rx::Image::loadRGBAUByteDataToBGRASSE2):
2973         (rx::Image::loadAlphaDataToBGRASSE2):
2974         * src/libGLESv2/renderer/IndexBuffer.cpp: Added.
2975         (rx::IndexBuffer::IndexBuffer):
2976         (rx::IndexBuffer::~IndexBuffer):
2977         (rx::IndexBuffer::getSerial):
2978         (rx::IndexBuffer::updateSerial):
2979         (rx::IndexBufferInterface::IndexBufferInterface):
2980         (rx::IndexBufferInterface::~IndexBufferInterface):
2981         (rx::IndexBufferInterface::getIndexType):
2982         (rx::IndexBufferInterface::getBufferSize):
2983         (rx::IndexBufferInterface::getSerial):
2984         (rx::IndexBufferInterface::mapBuffer):
2985         (rx::IndexBufferInterface::unmapBuffer):
2986         (rx::IndexBufferInterface::getIndexBuffer):
2987         (rx::IndexBufferInterface::getWritePosition):
2988         (rx::IndexBufferInterface::setWritePosition):
2989         (rx::IndexBufferInterface::discard):
2990         (rx::IndexBufferInterface::setBufferSize):
2991         (rx::StreamingIndexBufferInterface::StreamingIndexBufferInterface):
2992         (rx::StreamingIndexBufferInterface::~StreamingIndexBufferInterface):
2993         (rx::StreamingIndexBufferInterface::reserveBufferSpace):
2994         (rx::StaticIndexBufferInterface::StaticIndexBufferInterface):
2995         (rx::StaticIndexBufferInterface::~StaticIndexBufferInterface):
2996         (rx::StaticIndexBufferInterface::reserveBufferSpace):
2997         (rx::StaticIndexBufferInterface::lookupRange):
2998         (rx::StaticIndexBufferInterface::addRange):
2999         * src/libGLESv2/renderer/IndexBuffer.h: Added.
3000         (rx::StaticIndexBufferInterface::IndexRange::operator<):
3001         * src/libGLESv2/renderer/IndexBuffer11.cpp: Added.
3002         (rx::IndexBuffer11::IndexBuffer11):
3003         (rx::IndexBuffer11::~IndexBuffer11):
3004         (rx::IndexBuffer11::initialize):
3005         (rx::IndexBuffer11::makeIndexBuffer11):
3006         (rx::IndexBuffer11::mapBuffer):
3007         (rx::IndexBuffer11::unmapBuffer):
3008         (rx::IndexBuffer11::getIndexType):
3009         (rx::IndexBuffer11::getBufferSize):
3010         (rx::IndexBuffer11::setSize):
3011         (rx::IndexBuffer11::discard):
3012         (rx::IndexBuffer11::getIndexFormat):
3013         (rx::IndexBuffer11::getBuffer):
3014         * src/libGLESv2/renderer/IndexBuffer11.h: Added.
3015         * src/libGLESv2/renderer/IndexBuffer9.cpp: Added.
3016         (rx::IndexBuffer9::IndexBuffer9):
3017         (rx::IndexBuffer9::~IndexBuffer9):
3018         (rx::IndexBuffer9::initialize):
3019         (rx::IndexBuffer9::makeIndexBuffer9):
3020         (rx::IndexBuffer9::mapBuffer):
3021         (rx::IndexBuffer9::unmapBuffer):
3022         (rx::IndexBuffer9::getIndexType):
3023         (rx::IndexBuffer9::getBufferSize):
3024         (rx::IndexBuffer9::setSize):
3025         (rx::IndexBuffer9::discard):
3026         (rx::IndexBuffer9::getIndexFormat):
3027         (rx::IndexBuffer9::getBuffer):
3028         * src/libGLESv2/renderer/IndexBuffer9.h: Added.
3029         * src/libGLESv2/renderer/IndexDataManager.cpp: Added.
3030         (rx::IndexDataManager::IndexDataManager):
3031         (rx::IndexDataManager::~IndexDataManager):
3032         (rx::indexTypeSize):
3033         (rx::convertIndices):
3034         (rx::computeRange):
3035         (rx::IndexDataManager::prepareIndexData):
3036         (rx::IndexDataManager::getCountingIndices):
3037         * src/libGLESv2/renderer/IndexDataManager.h: Added.
3038         * src/libGLESv2/renderer/InputLayoutCache.cpp: Added.
3039         (rx::InputLayoutCache::InputLayoutCache):
3040         (rx::InputLayoutCache::~InputLayoutCache):
3041         (rx::InputLayoutCache::initialize):
3042         (rx::InputLayoutCache::clear):
3043         (rx::InputLayoutCache::applyVertexBuffers):
3044         (rx::InputLayoutCache::hashInputLayout):
3045         (rx::InputLayoutCache::compareInputLayouts):
3046         * src/libGLESv2/renderer/InputLayoutCache.h: Added.
3047         * src/libGLESv2/renderer/Query11.cpp: Added.
3048         (rx::Query11::Query11):
3049         (rx::Query11::~Query11):
3050         (rx::Query11::begin):
3051         (rx::Query11::end):
3052         (rx::Query11::getResult):
3053         (rx::Query11::isResultAvailable):
3054         (rx::Query11::testQuery):
3055         * src/libGLESv2/renderer/Query11.h: Added.
3056         * src/libGLESv2/renderer/Query9.cpp: Added.
3057         (rx::Query9::Query9):
3058         (rx::Query9::~Query9):
3059         (rx::Query9::begin):
3060         (rx::Query9::end):
3061         (rx::Query9::getResult):
3062         (rx::Query9::isResultAvailable):
3063         (rx::Query9::testQuery):
3064         * src/libGLESv2/renderer/Query9.h: Added.
3065         * src/libGLESv2/renderer/QueryImpl.h: Added.
3066         (rx::QueryImpl::QueryImpl):
3067         (rx::QueryImpl::~QueryImpl):
3068         (rx::QueryImpl::getType):
3069         * src/libGLESv2/renderer/RenderStateCache.cpp: Added.
3070         (rx::RenderStateCache::RenderStateCache):
3071         (rx::RenderStateCache::~RenderStateCache):
3072         (rx::RenderStateCache::initialize):
3073         (rx::RenderStateCache::clear):
3074         (rx::RenderStateCache::hashBlendState):
3075         (rx::RenderStateCache::compareBlendStates):
3076         (rx::RenderStateCache::getBlendState):
3077         (rx::RenderStateCache::hashRasterizerState):
3078         (rx::RenderStateCache::compareRasterizerStates):
3079         (rx::RenderStateCache::getRasterizerState):
3080         (rx::RenderStateCache::hashDepthStencilState):
3081         (rx::RenderStateCache::compareDepthStencilStates):
3082         (rx::RenderStateCache::getDepthStencilState):
3083         (rx::RenderStateCache::hashSamplerState):
3084         (rx::RenderStateCache::compareSamplerStates):
3085         (rx::RenderStateCache::getSamplerState):
3086         * src/libGLESv2/renderer/RenderStateCache.h: Added.
3087         * src/libGLESv2/renderer/RenderTarget.h: Added.
3088         (rx::RenderTarget::RenderTarget):
3089         (rx::RenderTarget::~RenderTarget):
3090         (rx::RenderTarget::getWidth):
3091         (rx::RenderTarget::getHeight):
3092         (rx::RenderTarget::getInternalFormat):
3093         (rx::RenderTarget::getActualFormat):
3094         (rx::RenderTarget::getSamples):
3095         * src/libGLESv2/renderer/RenderTarget11.cpp: Added.
3096         (rx::getRTVSubresourceIndex):
3097         (rx::getDSVSubresourceIndex):
3098         (rx::RenderTarget11::RenderTarget11):
3099         (rx::RenderTarget11::~RenderTarget11):
3100         (rx::RenderTarget11::makeRenderTarget11):
3101         (rx::RenderTarget11::getTexture):
3102         (rx::RenderTarget11::getRenderTargetView):
3103         (rx::RenderTarget11::getDepthStencilView):
3104         (rx::RenderTarget11::getShaderResourceView):
3105         (rx::RenderTarget11::getSubresourceIndex):
3106         * src/libGLESv2/renderer/RenderTarget11.h: Added.
3107         * src/libGLESv2/renderer/RenderTarget9.cpp: Added.
3108         (rx::RenderTarget9::RenderTarget9):
3109         (rx::RenderTarget9::~RenderTarget9):
3110         (rx::RenderTarget9::makeRenderTarget9):
3111         (rx::RenderTarget9::getSurface):
3112         * src/libGLESv2/renderer/RenderTarget9.h: Added.
3113         * src/libGLESv2/renderer/Renderer.cpp: Added.
3114         (rx::Renderer::Renderer):
3115         (rx::Renderer::~Renderer):
3116         (rx::Renderer::initializeCompiler):
3117         (rx::Renderer::compileToBinary):
3118         * src/libGLESv2/renderer/Renderer.h: Added.
3119         (getComparableOSVersion):
3120         (rx::Renderer::getVertexTextureSupport):
3121         * src/libGLESv2/renderer/Renderer11.cpp: Added.
3122         (rx::Renderer11::Renderer11):
3123         (rx::Renderer11::~Renderer11):
3124         (rx::Renderer11::makeRenderer11):
3125         (rx::Renderer11::initialize):
3126         (rx::Renderer11::initializeDevice):
3127         (rx::Renderer11::generateConfigs):
3128         (rx::Renderer11::deleteConfigs):
3129         (rx::Renderer11::sync):
3130         (rx::Renderer11::createSwapChain):
3131         (rx::Renderer11::setSamplerState):
3132         (rx::Renderer11::setTexture):
3133         (rx::Renderer11::setRasterizerState):
3134         (rx::Renderer11::setBlendState):
3135         (rx::Renderer11::setDepthStencilState):
3136         (rx::Renderer11::setScissorRectangle):
3137         (rx::Renderer11::setViewport):
3138         (rx::Renderer11::applyPrimitiveType):
3139         (rx::Renderer11::applyRenderTarget):
3140         (rx::Renderer11::applyVertexBuffer):
3141         (rx::Renderer11::applyIndexBuffer):
3142         (rx::Renderer11::drawArrays):
3143         (rx::Renderer11::drawElements):
3144         (rx::Renderer11::drawLineLoop):
3145         (rx::Renderer11::drawTriangleFan):
3146         (rx::Renderer11::applyShaders):
3147         (rx::Renderer11::applyUniforms):
3148         (rx::Renderer11::clear):
3149         (rx::Renderer11::maskedClear):
3150         (rx::Renderer11::markAllStateDirty):
3151         (rx::Renderer11::releaseDeviceResources):
3152         (rx::Renderer11::notifyDeviceLost):
3153         (rx::Renderer11::isDeviceLost):
3154         (rx::Renderer11::testDeviceLost):
3155         (rx::Renderer11::testDeviceResettable):
3156         (rx::Renderer11::release):
3157         (rx::Renderer11::resetDevice):
3158         (rx::Renderer11::getAdapterVendor):
3159         (rx::Renderer11::getRendererDescription):
3160         (rx::Renderer11::getAdapterIdentifier):
3161         (rx::Renderer11::getBGRATextureSupport):
3162         (rx::Renderer11::getDXT1TextureSupport):
3163         (rx::Renderer11::getDXT3TextureSupport):
3164         (rx::Renderer11::getDXT5TextureSupport):
3165         (rx::Renderer11::getDepthTextureSupport):
3166         (rx::Renderer11::getFloat32TextureSupport):
3167         (rx::Renderer11::getFloat16TextureSupport):
3168         (rx::Renderer11::getLuminanceTextureSupport):
3169         (rx::Renderer11::getLuminanceAlphaTextureSupport):
3170         (rx::Renderer11::getTextureFilterAnisotropySupport):
3171         (rx::Renderer11::getTextureMaxAnisotropy):
3172         (rx::Renderer11::getEventQuerySupport):
3173         (rx::Renderer11::getViewportBounds):
3174         (rx::Renderer11::getMaxVertexTextureImageUnits):
3175         (rx::Renderer11::getMaxCombinedTextureImageUnits):
3176         (rx::Renderer11::getReservedVertexUniformVectors):
3177         (rx::Renderer11::getReservedFragmentUniformVectors):
3178         (rx::Renderer11::getMaxVertexUniformVectors):
3179         (rx::Renderer11::getMaxFragmentUniformVectors):
3180         (rx::Renderer11::getMaxVaryingVectors):
3181         (rx::Renderer11::getNonPower2TextureSupport):
3182         (rx::Renderer11::getOcclusionQuerySupport):
3183         (rx::Renderer11::getInstancingSupport):
3184         (rx::Renderer11::getShareHandleSupport):
3185         (rx::Renderer11::getDerivativeInstructionSupport):
3186         (rx::Renderer11::getPostSubBufferSupport):
3187         (rx::Renderer11::getMajorShaderModel):
3188         (rx::Renderer11::getMinorShaderModel):
3189         (rx::Renderer11::getMaxPointSize):
3190         (rx::Renderer11::getMaxViewportDimension):
3191         (rx::Renderer11::getMaxTextureWidth):
3192         (rx::Renderer11::getMaxTextureHeight):
3193         (rx::Renderer11::get32BitIndexSupport):
3194         (rx::Renderer11::getMinSwapInterval):
3195         (rx::Renderer11::getMaxSwapInterval):
3196         (rx::Renderer11::getMaxSupportedSamples):
3197         (rx::Renderer11::getNearestSupportedSamples):
3198         (rx::Renderer11::getMaxRenderTargets):
3199         (rx::Renderer11::copyToRenderTarget):
3200         (rx::Renderer11::copyImage):
3201         (rx::Renderer11::copyTexture):
3202         (rx::Renderer11::unapplyRenderTargets):
3203         (rx::Renderer11::setOneTimeRenderTarget):
3204         (rx::Renderer11::createRenderTarget):
3205         (rx::Renderer11::loadExecutable):
3206         (rx::Renderer11::compileToExecutable):
3207         (rx::Renderer11::createVertexBuffer):
3208         (rx::Renderer11::createIndexBuffer):
3209         (rx::Renderer11::createBufferStorage):
3210         (rx::Renderer11::createQuery):
3211         (rx::Renderer11::createFence):
3212         (rx::Renderer11::getRenderTargetResource):
3213         (rx::Renderer11::blitRect):
3214         (rx::Renderer11::readPixels):
3215         (rx::Renderer11::createImage):
3216         (rx::Renderer11::generateMipmap):
3217         (rx::Renderer11::createTextureStorage2D):
3218         (rx::Renderer11::createTextureStorageCube):
3219         (rx::getFastPixelCopySize):
3220         (rx::readPixelColor):
3221         (rx::writePixelColor):
3222         (rx::Renderer11::readTextureData):
3223         (rx::Renderer11::blitRenderbufferRect):
3224         (rx::Renderer11::resolveMultisampledTexture):
3225         (rx::Renderer11::getLUID):
3226         * src/libGLESv2/renderer/Renderer11.h: Added.
3227         (rx::Renderer11::getDevice):
3228         (rx::Renderer11::getDeviceContext):
3229         (rx::Renderer11::getDxgiFactory):
3230         * src/libGLESv2/renderer/Renderer9.cpp: Added.
3231         (rx::Renderer9::Renderer9):
3232         (rx::Renderer9::~Renderer9):
3233         (rx::Renderer9::makeRenderer9):
3234         (rx::Renderer9::initialize):
3235         (rx::Renderer9::initializeDevice):
3236         (rx::Renderer9::getDefaultPresentParameters):
3237         (rx::Renderer9::generateConfigs):
3238         (rx::Renderer9::deleteConfigs):
3239         (rx::Renderer9::startScene):
3240         (rx::Renderer9::endScene):
3241         (rx::Renderer9::sync):
3242         (rx::Renderer9::createSwapChain):
3243         (rx::Renderer9::allocateEventQuery):
3244         (rx::Renderer9::freeEventQuery):
3245         (rx::Renderer9::createVertexShader):
3246         (rx::Renderer9::createPixelShader):
3247         (rx::Renderer9::createVertexBuffer):
3248         (rx::Renderer9::createIndexBuffer):
3249         (rx::Renderer9::createBufferStorage):
3250         (rx::Renderer9::createQuery):
3251         (rx::Renderer9::createFence):
3252         (rx::Renderer9::setSamplerState):
3253         (rx::Renderer9::setTexture):
3254         (rx::Renderer9::setRasterizerState):
3255         (rx::Renderer9::setBlendState):
3256         (rx::Renderer9::setDepthStencilState):
3257         (rx::Renderer9::setScissorRectangle):
3258         (rx::Renderer9::setViewport):
3259         (rx::Renderer9::applyPrimitiveType):
3260         (rx::Renderer9::getNullColorbuffer):
3261         (rx::Renderer9::applyRenderTarget):
3262         (rx::Renderer9::applyVertexBuffer):
3263         (rx::Renderer9::applyIndexBuffer):
3264         (rx::Renderer9::drawArrays):
3265         (rx::Renderer9::drawElements):
3266         (rx::Renderer9::drawLineLoop):
3267         (rx::drawPoints):
3268         (rx::Renderer9::drawIndexedPoints):
3269         (rx::Renderer9::applyShaders):
3270         (rx::Renderer9::applyUniforms):
3271         (rx::Renderer9::applyUniformnfv):
3272         (rx::Renderer9::applyUniformniv):
3273         (rx::Renderer9::applyUniformnbv):
3274         (rx::Renderer9::clear):
3275         (rx::Renderer9::markAllStateDirty):
3276         (rx::Renderer9::releaseDeviceResources):
3277         (rx::Renderer9::notifyDeviceLost):
3278         (rx::Renderer9::isDeviceLost):
3279         (rx::Renderer9::testDeviceLost):
3280         (rx::Renderer9::testDeviceResettable):
3281         (rx::Renderer9::resetDevice):
3282         (rx::Renderer9::getAdapterVendor):
3283         (rx::Renderer9::getRendererDescription):
3284         (rx::Renderer9::getAdapterIdentifier):
3285         (rx::Renderer9::getMultiSampleSupport):
3286         (rx::Renderer9::getBGRATextureSupport):
3287         (rx::Renderer9::getDXT1TextureSupport):
3288         (rx::Renderer9::getDXT3TextureSupport):
3289         (rx::Renderer9::getDXT5TextureSupport):
3290         (rx::Renderer9::getDepthTextureSupport):
3291         (rx::Renderer9::getFloat32TextureSupport):
3292         (rx::Renderer9::getFloat16TextureSupport):
3293         (rx::Renderer9::getLuminanceTextureSupport):
3294         (rx::Renderer9::getLuminanceAlphaTextureSupport):
3295         (rx::Renderer9::getTextureFilterAnisotropySupport):
3296         (rx::Renderer9::getTextureMaxAnisotropy):
3297         (rx::Renderer9::getEventQuerySupport):
3298         (rx::Renderer9::getMaxVertexTextureImageUnits):
3299         (rx::Renderer9::getMaxCombinedTextureImageUnits):
3300         (rx::Renderer9::getReservedVertexUniformVectors):
3301         (rx::Renderer9::getReservedFragmentUniformVectors):
3302         (rx::Renderer9::getMaxVertexUniformVectors):
3303         (rx::Renderer9::getMaxFragmentUniformVectors):
3304         (rx::Renderer9::getMaxVaryingVectors):
3305         (rx::Renderer9::getNonPower2TextureSupport):
3306         (rx::Renderer9::getOcclusionQuerySupport):
3307         (rx::Renderer9::getInstancingSupport):
3308         (rx::Renderer9::getShareHandleSupport):
3309         (rx::Renderer9::getDerivativeInstructionSupport):
3310         (rx::Renderer9::getPostSubBufferSupport):
3311         (rx::Renderer9::getMajorShaderModel):
3312         (rx::Renderer9::getMaxPointSize):
3313         (rx::Renderer9::getMaxViewportDimension):
3314         (rx::Renderer9::getMaxTextureWidth):
3315         (rx::Renderer9::getMaxTextureHeight):
3316         (rx::Renderer9::get32BitIndexSupport):
3317         (rx::Renderer9::getCapsDeclTypes):
3318         (rx::Renderer9::getMinSwapInterval):
3319         (rx::Renderer9::getMaxSwapInterval):
3320         (rx::Renderer9::getMaxSupportedSamples):
3321         (rx::Renderer9::getNearestSupportedSamples):
3322         (rx::Renderer9::getMaxRenderTargets):
3323         (rx::Renderer9::ConvertTextureInternalFormat):
3324         (rx::Renderer9::copyToRenderTarget):
3325         (rx::Renderer9::getBufferPool):
3326         (rx::Renderer9::copyImage):
3327         (rx::Renderer9::blitRect):
3328         (rx::Renderer9::readPixels):
3329         (rx::Renderer9::createRenderTarget):
3330         (rx::Renderer9::loadExecutable):
3331         (rx::Renderer9::compileToExecutable):
3332         (rx::Renderer9::boxFilter):
3333         (rx::Renderer9::getTexturePool):
3334         (rx::Renderer9::createImage):
3335         (rx::Renderer9::generateMipmap):
3336         (rx::Renderer9::createTextureStorage2D):
3337         (rx::Renderer9::createTextureStorageCube):
3338         (rx::Renderer9::getLUID):
3339         * src/libGLESv2/renderer/Renderer9.h: Added.
3340         (rx::Renderer9::getDevice):
3341         * src/libGLESv2/renderer/ShaderCache.h: Added.
3342         (rx::ShaderCache::ShaderCache):
3343         (rx::ShaderCache::~ShaderCache):
3344         (rx::ShaderCache::initialize):
3345         (rx::ShaderCache::create):
3346         (rx::ShaderCache::clear):
3347         (rx::ShaderCache::createShader):
3348         * src/libGLESv2/renderer/ShaderExecutable.h: Added.
3349         (rx::ShaderExecutable::ShaderExecutable):
3350         (rx::ShaderExecutable::~ShaderExecutable):
3351         (rx::ShaderExecutable::getFunction):
3352         (rx::ShaderExecutable::getLength):
3353         * src/libGLESv2/renderer/ShaderExecutable11.cpp: Added.
3354         (rx::ShaderExecutable11::ShaderExecutable11):
3355         (rx::ShaderExecutable11::~ShaderExecutable11):
3356         (rx::ShaderExecutable11::makeShaderExecutable11):
3357         (rx::ShaderExecutable11::getVertexShader):
3358         (rx::ShaderExecutable11::getPixelShader):
3359         (rx::ShaderExecutable11::getGeometryShader):
3360         (rx::ShaderExecutable11::getConstantBuffer):
3361         * src/libGLESv2/renderer/ShaderExecutable11.h: Added.
3362         * src/libGLESv2/renderer/ShaderExecutable9.cpp: Added.
3363         (rx::ShaderExecutable9::ShaderExecutable9):
3364         (rx::ShaderExecutable9::~ShaderExecutable9):
3365         (rx::ShaderExecutable9::makeShaderExecutable9):
3366         (rx::ShaderExecutable9::getVertexShader):
3367         (rx::ShaderExecutable9::getPixelShader):
3368         * src/libGLESv2/renderer/ShaderExecutable9.h: Added.
3369         * src/libGLESv2/renderer/SwapChain.h: Added.
3370         (rx::SwapChain::SwapChain):
3371         (rx::SwapChain::~SwapChain):
3372         (rx::SwapChain::getShareHandle):
3373         * src/libGLESv2/renderer/SwapChain11.cpp: Added.
3374         (rx::SwapChain11::SwapChain11):
3375         (rx::SwapChain11::~SwapChain11):
3376         (rx::SwapChain11::release):
3377         (rx::SwapChain11::releaseOffscreenTexture):
3378         (rx::SwapChain11::resetOffscreenTexture):
3379         (rx::SwapChain11::resize):
3380         (rx::SwapChain11::reset):
3381         (rx::SwapChain11::initPassThroughResources):
3382         (rx::SwapChain11::swapRect):
3383         (rx::SwapChain11::getOffscreenTexture):
3384         (rx::SwapChain11::getRenderTarget):
3385         (rx::SwapChain11::getRenderTargetShaderResource):
3386         (rx::SwapChain11::getDepthStencil):
3387         (rx::SwapChain11::getDepthStencilTexture):
3388         (rx::SwapChain11::makeSwapChain11):
3389         (rx::SwapChain11::recreate):
3390         * src/libGLESv2/renderer/SwapChain11.h: Added.
3391         (rx::SwapChain11::getWidth):
3392         (rx::SwapChain11::getHeight):
3393         * src/libGLESv2/renderer/SwapChain9.cpp: Added.
3394         (rx::SwapChain9::SwapChain9):
3395         (rx::SwapChain9::~SwapChain9):
3396         (rx::SwapChain9::release):
3397         (rx::convertInterval):
3398         (rx::SwapChain9::resize):
3399         (rx::SwapChain9::reset):
3400         (rx: