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