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