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