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