Unreviewed QT build fix.
[WebKit-https.git] / Source / ThirdParty / ANGLE / ChangeLog
1 2013-01-14  Dean Jackson  <dino@apple.com>
2
3         Unreviewed QT build fix.
4
5         * ANGLE.pri:
6
7 2013-01-14  Dean Jackson  <dino@apple.com>
8
9         [ANGLE] Update ANGLE in WebKit
10         https://bugs.webkit.org/show_bug.cgi?id=106274
11
12         Unreviewed attempted build fix.
13
14         Remove the copy files stage. Make khrplatform.h a public header.
15
16         * ANGLE.xcodeproj/project.pbxproj:
17         * include/GLSLANG/ShaderLang.h:
18
19 2013-01-14  Max Vujovic  <mvujovic@adobe.com>
20
21         [ANGLE] Update ANGLE in WebKit
22         https://bugs.webkit.org/show_bug.cgi?id=106274
23
24         Reviewed by Dean Jackson.
25
26         Update ANGLE to r1641.
27
28         ANGLE parsers were generated with Bison 2.3.
29
30         Additionally, perform the following changes to WebKit's ANGLE build system. Note that these
31         changes only apply to WebKit's copy of ANGLE, and do not need to be upstreamed to ANGLE.
32         (a) Remove all files in the libEGL and libGLESv2 directories because nobody is using them. 
33             Add a README in each directory to explain why their contents are not copied over from
34             ANGLE. This simplifies updating ANGLE in the future.
35         (b) Remove the build_angle.xcodeproj file that no-one is using. It appears it was copied
36             over from a gyp build of ANGLE. The Mac build uses ANGLE.xcodeproj.
37         (c) Remove duplicate file entries in ANGLE.xcodeproj. Change its Xcode group structure to
38             match ANGLE's directory structure.
39         (d) Add a Copy Files task to ANGLE.xcodeproj to put the khrplatform.h header in the right
40             place so ShaderLang.h can find it. ShaderLang.h is copied to
41             <BuildDir>/usr/local/include/ANGLE/ShaderLang.h during the Copy Headers task, and it
42             includes "KHR/khrplatform.h". Thus, we need to copy khrplatform.h to
43             <BuildDir>/usr/local/include/ANGLE/KHR/khrplatform.h.
44
45         Additionally, make one build fix in ANGLE source that should be upstreamed to ANGLE:
46         (1) Before this patch in ExpressionParser.y, we toggled the "-Wpragmas" flag so compilers
47             could ignore the pragmas that they didn't understand instead of generating an error.
48             However, clang does not understand "-Wpragmas" itself. Instead, tt understands
49             "-Wunknown-pragmas". Now, instead of trying to temporarily ignore pragmas, we apply the
50             right flags to the right compiler versions. The new code in ExpressionParser.y looks
51             like:
52
53         """
54         // Turn off uninitialized variable warnings triggered by the auto-generated pplval variable.
55         // On gcc 4.7+, The flag is called "-Wmaybe-uninitialized".
56         // On clang and gcc < 4.7, the flag is called "-Wuninitialized".
57         #if !defined(__clang__) && ((__GNUC__ == 4 && __GNU_C_MINOR__ >= 7) || __GNUC__ >= 5)
58         #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
59         #else
60         #pragma GCC diagnostic ignored "-Wuninitialized"
61         #endif
62         """
63
64         * ANGLE.plist:
65         * ANGLE.pri:
66         * ANGLE.xcodeproj/project.pbxproj:
67         * DerivedSources.pri:
68         * Target.pri:
69         * include/GLSLANG/ShaderLang.h:
70         * src/build_angle.xcodeproj/project.pbxproj: Removed.
71         * src/common/angleutils.h:
72         * src/common/debug.cpp:
73         (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
74         * src/common/debug.h:
75         * src/common/version.h:
76         * src/compiler/Compiler.cpp:
77         (TCompiler::Init):
78         (TCompiler::compile):
79         (TCompiler::clearResults):
80         (TCompiler::collectAttribsUniforms):
81         (TCompiler::enforcePackingRestrictions):
82         * src/compiler/Diagnostics.cpp:
83         (TDiagnostics::TDiagnostics):
84         (TDiagnostics::writeInfo):
85         (TDiagnostics::print):
86         * src/compiler/Diagnostics.h:
87         (TDiagnostics::numErrors):
88         (TDiagnostics::numWarnings):
89         (TDiagnostics):
90         * src/compiler/DirectiveHandler.h:
91         * src/compiler/HashNames.h: Added.
92         * src/compiler/Intermediate.cpp:
93         (TIntermTraverser::hash):
94         * src/compiler/OutputESSL.cpp:
95         (TOutputESSL::TOutputESSL):
96         * src/compiler/OutputESSL.h:
97         (TOutputESSL):
98         * src/compiler/OutputGLSL.cpp:
99         (TOutputGLSL::TOutputGLSL):
100         * src/compiler/OutputGLSL.h:
101         (TOutputGLSL):
102         * src/compiler/OutputGLSLBase.cpp:
103         (TOutputGLSLBase::TOutputGLSLBase):
104         (TOutputGLSLBase::writeVariableType):
105         (TOutputGLSLBase::writeFunctionParameters):
106         (TOutputGLSLBase::writeConstantUnion):
107         (TOutputGLSLBase::visitSymbol):
108         (TOutputGLSLBase::visitBinary):
109         (TOutputGLSLBase::visitAggregate):
110         (TOutputGLSLBase::getTypeName):
111         (TOutputGLSLBase::hashName):
112         (TOutputGLSLBase::hashVariableName):
113         (TOutputGLSLBase::hashFunctionName):
114         * src/compiler/OutputGLSLBase.h:
115         (TOutputGLSLBase):
116         * src/compiler/OutputHLSL.cpp:
117         (sh::OutputHLSL::OutputHLSL):
118         (sh::OutputHLSL::header):
119         (sh::OutputHLSL::visitAggregate):
120         (sh::OutputHLSL::visitBranch):
121         (sh::OutputHLSL::handleExcessiveLoop):
122         * src/compiler/OutputHLSL.h:
123         (OutputHLSL):
124         * src/compiler/ParseHelper.cpp:
125         (TParseContext::error):
126         (TParseContext::nonInitConstErrorCheck):
127         (PaParseStrings):
128         * src/compiler/ParseHelper.h:
129         (TParseContext::TParseContext):
130         (TParseContext):
131         (TParseContext::numErrors):
132         * src/compiler/RenameFunction.h:
133         (RenameFunction::visitAggregate):
134         * src/compiler/ShHandle.h:
135         (TCompiler::getHashFunction):
136         (TCompiler::getNameMap):
137         (TCompiler::getSymbolTable):
138         (TCompiler):
139         * src/compiler/ShaderLang.cpp:
140         (ShInitBuiltInResources):
141         (ShGetInfo):
142         (ShGetNameHashingEntry):
143         * src/compiler/SymbolTable.cpp:
144         (TType::TType):
145         (TType::isStructureContainingArrays):
146         * src/compiler/SymbolTable.h:
147         (TSymbolTable::findBuiltIn):
148         (TSymbolTable):
149         * src/compiler/TranslatorESSL.cpp:
150         (TranslatorESSL::translate):
151         * src/compiler/TranslatorGLSL.cpp:
152         (TranslatorGLSL::translate):
153         * src/compiler/Types.h:
154         (TType):
155         (TPublicType):
156         (TPublicType::setBasic):
157         (TPublicType::setAggregate):
158         (TPublicType::setArray):
159         (TPublicType::isStructureContainingArrays):
160         * src/compiler/UnfoldShortCircuit.cpp:
161         (sh::UnfoldShortCircuit::visitBinary):
162         * src/compiler/VariableInfo.cpp:
163         (getVariableInfo):
164         (getUserDefinedVariableInfo):
165         (TVariableInfo::TVariableInfo):
166         (CollectAttribsUniforms::CollectAttribsUniforms):
167         (CollectAttribsUniforms::visitAggregate):
168         * src/compiler/VariableInfo.h:
169         (TVariableInfo):
170         (CollectAttribsUniforms):
171         * src/compiler/VariablePacker.cpp: Added.
172         (VariablePacker::GetNumComponentsPerRow):
173         (VariablePacker::GetNumRows):
174         (TVariableInfoComparer::operator()):
175         (VariablePacker::makeColumnFlags):
176         (VariablePacker::fillColumns):
177         (VariablePacker::searchColumn):
178         (VariablePacker::CheckVariablesWithinPackingLimits):
179         * src/compiler/VariablePacker.h: Added.
180         (VariablePacker):
181         * src/compiler/VersionGLSL.cpp:
182         (TVersionGLSL::visitAggregate):
183         * src/compiler/VersionGLSL.h:
184         (TVersionGLSL):
185         * src/compiler/glslang.l:
186         * src/compiler/glslang.y:
187         * src/compiler/glslang_lex.cpp:
188         (string_input):
189         (glslang_finalize):
190         (glslang_scan):
191         * src/compiler/glslang_tab.cpp:
192         * src/compiler/intermediate.h:
193         (TIntermTraverser):
194         * src/compiler/osinclude.h:
195         (OS_GetTLSValue):
196         * src/compiler/ossource_nspr.cpp:
197         * src/compiler/preprocessor/DiagnosticsBase.cpp: Added.
198         (pp):
199         (pp::Diagnostics::~Diagnostics):
200         (pp::Diagnostics::report):
201         (pp::Diagnostics::severity):
202         (pp::Diagnostics::message):
203         * src/compiler/preprocessor/DiagnosticsBase.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Diagnostics.h.
204         (pp):
205         (Diagnostics):
206         * src/compiler/preprocessor/DirectiveHandlerBase.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveHandlerBase.cpp.
207         (pp):
208         (pp::DirectiveHandler::~DirectiveHandler):
209         * src/compiler/preprocessor/DirectiveHandlerBase.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveHandler.h.
210         (pp):
211         (DirectiveHandler):
212         * src/compiler/preprocessor/DirectiveParser.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveParser.cpp.
213         (getDirective):
214         (isConditionalDirective):
215         (isEOD):
216         (skipUntilEOD):
217         (isMacroNameReserved):
218         (isMacroPredefined):
219         (pp):
220         (DefinedParser):
221         (pp::DefinedParser::DefinedParser):
222         (pp::DefinedParser::lex):
223         (pp::DirectiveParser::DirectiveParser):
224         (pp::DirectiveParser::lex):
225         (pp::DirectiveParser::parseDirective):
226         (pp::DirectiveParser::parseDefine):
227         (pp::DirectiveParser::parseUndef):
228         (pp::DirectiveParser::parseIf):
229         (pp::DirectiveParser::parseIfdef):
230         (pp::DirectiveParser::parseIfndef):
231         (pp::DirectiveParser::parseElse):
232         (pp::DirectiveParser::parseElif):
233         (pp::DirectiveParser::parseEndif):
234         (pp::DirectiveParser::parseError):
235         (pp::DirectiveParser::parsePragma):
236         (pp::DirectiveParser::parseExtension):
237         (pp::DirectiveParser::parseVersion):
238         (pp::DirectiveParser::parseLine):
239         (pp::DirectiveParser::skipping):
240         (pp::DirectiveParser::parseConditionalIf):
241         (pp::DirectiveParser::parseExpressionIf):
242         (pp::DirectiveParser::parseExpressionIfdef):
243         * src/compiler/preprocessor/DirectiveParser.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveParser.h.
244         (pp):
245         (DirectiveParser):
246         (ConditionalBlock):
247         (pp::DirectiveParser::ConditionalBlock::ConditionalBlock):
248         * src/compiler/preprocessor/ExpressionParser.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/ExpressionParser.cpp.
249         (yysyntax_error):
250         (yylex):
251         (yyerror):
252         (pp):
253         (pp::ExpressionParser::ExpressionParser):
254         (pp::ExpressionParser::parse):
255         * src/compiler/preprocessor/ExpressionParser.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/ExpressionParser.h.
256         (pp):
257         (ExpressionParser):
258         * src/compiler/preprocessor/ExpressionParser.y: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/ExpressionParser.y.
259         * src/compiler/preprocessor/Input.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Input.cpp.
260         (pp):
261         (pp::Input::Input):
262         (pp::Input::read):
263         * src/compiler/preprocessor/Input.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Input.h.
264         (pp):
265         (Input):
266         (pp::Input::count):
267         (pp::Input::string):
268         (pp::Input::length):
269         (Location):
270         (pp::Input::Location::Location):
271         (pp::Input::readLoc):
272         * src/compiler/preprocessor/Lexer.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Lexer.cpp.
273         (pp):
274         (pp::Lexer::~Lexer):
275         * src/compiler/preprocessor/Lexer.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Lexer.h.
276         (pp):
277         (Lexer):
278         * src/compiler/preprocessor/Macro.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Macro.cpp.
279         (pp):
280         (pp::Macro::equals):
281         * src/compiler/preprocessor/Macro.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Macro.h.
282         (pp):
283         (pp::Macro::Macro):
284         (Macro):
285         * src/compiler/preprocessor/MacroExpander.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/MacroExpander.cpp.
286         (pp):
287         (TokenLexer):
288         (pp::TokenLexer::TokenLexer):
289         (pp::TokenLexer::lex):
290         (pp::MacroExpander::MacroExpander):
291         (pp::MacroExpander::~MacroExpander):
292         (pp::MacroExpander::lex):
293         (pp::MacroExpander::getToken):
294         (pp::MacroExpander::ungetToken):
295         (pp::MacroExpander::isNextTokenLeftParen):
296         (pp::MacroExpander::pushMacro):
297         (pp::MacroExpander::popMacro):
298         (pp::MacroExpander::expandMacro):
299         (pp::MacroExpander::collectMacroArgs):
300         (pp::MacroExpander::replaceMacroParams):
301         * src/compiler/preprocessor/MacroExpander.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/MacroExpander.h.
302         (pp):
303         (MacroExpander):
304         (MacroContext):
305         (pp::MacroExpander::MacroContext::MacroContext):
306         (pp::MacroExpander::MacroContext::empty):
307         (pp::MacroExpander::MacroContext::get):
308         (pp::MacroExpander::MacroContext::unget):
309         * src/compiler/preprocessor/Preprocessor.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Preprocessor.cpp.
310         (pp):
311         (PreprocessorImpl):
312         (pp::PreprocessorImpl::PreprocessorImpl):
313         (pp::Preprocessor::Preprocessor):
314         (pp::Preprocessor::~Preprocessor):
315         (pp::Preprocessor::init):
316         (pp::Preprocessor::predefineMacro):
317         (pp::Preprocessor::lex):
318         * src/compiler/preprocessor/Preprocessor.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Preprocessor.h.
319         (pp):
320         (Preprocessor):
321         * src/compiler/preprocessor/SourceLocation.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/SourceLocation.h.
322         (pp):
323         (pp::SourceLocation::SourceLocation):
324         (SourceLocation):
325         (pp::SourceLocation::equals):
326         (pp::operator==):
327         (pp::operator!=):
328         * src/compiler/preprocessor/Token.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Token.cpp.
329         (pp):
330         (pp::Token::reset):
331         (pp::Token::equals):
332         (pp::Token::setAtStartOfLine):
333         (pp::Token::setHasLeadingSpace):
334         (pp::Token::setExpansionDisabled):
335         (pp::Token::iValue):
336         (pp::Token::uValue):
337         (pp::Token::fValue):
338         (pp::operator<<):
339         * src/compiler/preprocessor/Token.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Token.h.
340         (pp):
341         (pp::Token::Token):
342         (Token):
343         (pp::Token::atStartOfLine):
344         (pp::Token::hasLeadingSpace):
345         (pp::Token::expansionDisabled):
346         (pp::operator==):
347         (pp::operator!=):
348         * src/compiler/preprocessor/Tokenizer.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Tokenizer.cpp.
349         (yy_buffer_state):
350         (yy_trans_info):
351         (yyguts_t):
352         (yy_get_previous_state):
353         (yy_try_NUL_trans):
354         (input):
355         (pprestart):
356         (pp_switch_to_buffer):
357         (pp_load_buffer_state):
358         (pp_create_buffer):
359         (pp_delete_buffer):
360         (pp_init_buffer):
361         (pp_flush_buffer):
362         (pppush_buffer_state):
363         (pppop_buffer_state):
364         (ppensure_buffer_stack):
365         (pp_scan_buffer):
366         (pp_scan_string):
367         (pp_scan_bytes):
368         (yy_fatal_error):
369         (ppget_extra):
370         (ppget_lineno):
371         (ppget_column):
372         (ppget_in):
373         (ppget_out):
374         (ppget_leng):
375         (ppget_text):
376         (ppset_extra):
377         (ppset_lineno):
378         (ppset_column):
379         (ppset_in):
380         (ppset_out):
381         (ppget_debug):
382         (ppset_debug):
383         (ppget_lval):
384         (ppset_lval):
385         (ppget_lloc):
386         (ppset_lloc):
387         (pplex_init):
388         (pplex_init_extra):
389         (yy_init_globals):
390         (pplex_destroy):
391         (yy_flex_strncpy):
392         (yy_flex_strlen):
393         (ppalloc):
394         (pprealloc):
395         (ppfree):
396         (pp):
397         (pp::Tokenizer::Tokenizer):
398         (pp::Tokenizer::~Tokenizer):
399         (pp::Tokenizer::init):
400         (pp::Tokenizer::setFileNumber):
401         (pp::Tokenizer::setLineNumber):
402         (pp::Tokenizer::lex):
403         (pp::Tokenizer::initScanner):
404         (pp::Tokenizer::destroyScanner):
405         * src/compiler/preprocessor/Tokenizer.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Tokenizer.h.
406         (pp):
407         (Tokenizer):
408         (Context):
409         * src/compiler/preprocessor/Tokenizer.l: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Tokenizer.l.
410         * src/compiler/preprocessor/atom.c: Removed.
411         * src/compiler/preprocessor/atom.h: Removed.
412         * src/compiler/preprocessor/compile.h: Removed.
413         * src/compiler/preprocessor/cpp.c: Removed.
414         * src/compiler/preprocessor/cpp.h: Removed.
415         * src/compiler/preprocessor/cppstruct.c: Removed.
416         * src/compiler/preprocessor/generate_parser.sh: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/generate_parser.sh.
417         * src/compiler/preprocessor/memory.c: Removed.
418         * src/compiler/preprocessor/memory.h: Removed.
419         * src/compiler/preprocessor/new/DiagnosticsBase.cpp: Removed.
420         * src/compiler/preprocessor/new/new_file.cpp: Removed.
421         * src/compiler/preprocessor/new/new_file2.cpp: Removed.
422         * src/compiler/preprocessor/new/preprocessor.vcproj: Removed.
423         * src/compiler/preprocessor/numeric_lex.h: Added.
424         (pp):
425         (pp::numeric_base_int):
426         (pp::numeric_lex_int):
427         (pp::numeric_lex_float):
428         * src/compiler/preprocessor/parser.h: Removed.
429         * src/compiler/preprocessor/pp_utils.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/pp_utils.h.
430         * src/compiler/preprocessor/preprocess.h: Removed.
431         * src/compiler/preprocessor/scanner.c: Removed.
432         * src/compiler/preprocessor/scanner.h: Removed.
433         * src/compiler/preprocessor/slglobals.h: Removed.
434         * src/compiler/preprocessor/symbols.c: Removed.
435         * src/compiler/preprocessor/symbols.h: Removed.
436         * src/compiler/preprocessor/tokens.c: Removed.
437         * src/compiler/preprocessor/tokens.h: Removed.
438         * src/libEGL/Config.cpp: Removed.
439         * src/libEGL/Config.h: Removed.
440         * src/libEGL/Display.cpp: Removed.
441         * src/libEGL/Display.h: Removed.
442         * src/libEGL/README: Added.
443         * src/libEGL/Surface.cpp: Removed.
444         * src/libEGL/Surface.h: Removed.
445         * src/libEGL/libEGL.cpp: Removed.
446         * src/libEGL/libEGL.def: Removed.
447         * src/libEGL/libEGL.rc: Removed.
448         * src/libEGL/libEGL.vcproj: Removed.
449         * src/libEGL/main.cpp: Removed.
450         * src/libEGL/main.h: Removed.
451         * src/libEGL/resource.h: Removed.
452         * src/libGLESv2/Blit.cpp: Removed.
453         * src/libGLESv2/Blit.h: Removed.
454         * src/libGLESv2/Buffer.cpp: Removed.
455         * src/libGLESv2/Buffer.h: Removed.
456         * src/libGLESv2/Context.cpp: Removed.
457         * src/libGLESv2/Context.h: Removed.
458         * src/libGLESv2/Fence.cpp: Removed.
459         * src/libGLESv2/Fence.h: Removed.
460         * src/libGLESv2/Framebuffer.cpp: Removed.
461         * src/libGLESv2/Framebuffer.h: Removed.
462         * src/libGLESv2/HandleAllocator.cpp: Removed.
463         * src/libGLESv2/HandleAllocator.h: Removed.
464         * src/libGLESv2/IndexDataManager.cpp: Removed.
465         * src/libGLESv2/IndexDataManager.h: Removed.
466         * src/libGLESv2/Program.cpp: Removed.
467         * src/libGLESv2/Program.h: Removed.
468         * src/libGLESv2/ProgramBinary.cpp: Removed.
469         * src/libGLESv2/ProgramBinary.h: Removed.
470         * src/libGLESv2/Query.cpp: Removed.
471         * src/libGLESv2/Query.h: Removed.
472         * src/libGLESv2/README: Added.
473         * src/libGLESv2/Renderbuffer.cpp: Removed.
474         * src/libGLESv2/Renderbuffer.h: Removed.
475         * src/libGLESv2/ResourceManager.cpp: Removed.
476         * src/libGLESv2/ResourceManager.h: Removed.
477         * src/libGLESv2/Shader.cpp: Removed.
478         * src/libGLESv2/Shader.h: Removed.
479         * src/libGLESv2/Texture.cpp: Removed.
480         * src/libGLESv2/Texture.h: Removed.
481         * src/libGLESv2/VertexDataManager.cpp: Removed.
482         * src/libGLESv2/VertexDataManager.h: Removed.
483         * src/libGLESv2/libGLESv2.cpp: Removed.
484         * src/libGLESv2/libGLESv2.def: Removed.
485         * src/libGLESv2/libGLESv2.rc: Removed.
486         * src/libGLESv2/libGLESv2.vcproj: Removed.
487         * src/libGLESv2/main.cpp: Removed.
488         * src/libGLESv2/main.h: Removed.
489         * src/libGLESv2/mathutil.h: Removed.
490         * src/libGLESv2/resource.h: Removed.
491         * src/libGLESv2/utilities.cpp: Removed.
492         * src/libGLESv2/utilities.h: Removed.
493         * src/libGLESv2/vertexconversion.h: Removed.
494
495 2012-12-18  Max Vujovic  <mvujovic@adobe.com>
496
497         [ANGLE] Use of uninitialized memory in ArrayBoundsClamper
498         https://bugs.webkit.org/show_bug.cgi?id=105218
499
500         Reviewed by Dean Jackson.
501
502         TIntermBinary::addIndexClamp is uninitialized when the compile flag 
503         SH_CLAMP_INDIRECT_ARRAY_BOUNDS is not set. Then, addIndexClamp is used in OutputGLSLBase. 
504         CSS Shaders needs to do a first validation pass without the SH_CLAMP_INDIRECT_ARRAY_BOUNDS 
505         flag and its effects. However, sometimes addIndexClamp is true, which inserts clamping code
506         that causes a shader to fail compilation at the WebGL level.
507
508         * src/compiler/intermediate.h:
509         (TIntermBinary::TIntermBinary):
510
511 2012-10-29  Anders Carlsson  <andersca@apple.com>
512
513         Build WebKit as C++11 on Mac
514         https://bugs.webkit.org/show_bug.cgi?id=100720
515
516         Reviewed by Daniel Bates.
517
518         * Configurations/Base.xcconfig:
519         Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
520
521 2012-10-28  Mark Rowe  <mrowe@apple.com>
522
523         Simplify Xcode configuration settings that used to vary between OS versions.
524
525         Reviewed by Dan Bernstein.
526
527         * Configurations/Base.xcconfig:
528         * Configurations/DebugRelease.xcconfig:
529
530 2012-10-28  Mark Rowe  <mrowe@apple.com>
531
532         Remove references to unsupported OS and Xcode versions.
533
534         Reviewed by Anders Carlsson.
535
536         * Configurations/Base.xcconfig:
537         * Configurations/CompilerVersion.xcconfig: Removed.
538         * Configurations/DebugRelease.xcconfig:
539
540 2012-10-27  Dan Bernstein  <mitz@apple.com>
541
542         REAL_PLATFORM_NAME build setting is no longer needed
543         https://bugs.webkit.org/show_bug.cgi?id=100587
544
545         Reviewed by Mark Rowe.
546
547         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
548         to PLATFORM_NAME.
549
550         * Configurations/Base.xcconfig:
551         * Configurations/CompilerVersion.xcconfig:
552
553 2012-10-18  Dean Jackson  <dino@apple.com>
554
555         Shader translator needs option to clamp uniform array accesses in vertex shaders
556         https://bugs.webkit.org/show_bug.cgi?id=98977
557         https://code.google.com/p/angleproject/issues/detail?id=49
558
559         Reviewed by Alok Priyadarshi and Ken Russell.
560
561         WebGL does not allow GLSL code to index a uniform array outside its bounds. Add a
562         flag to the ANGLE compiler to insert clamp statements around such indexing.
563         Since it is possible to access vec2/3/4 and mat2/3/4 components by array indexing,
564         they must be similarly clamped.
565
566         Unfortunately, it is currently not possible to always determine that the indexing is
567         operating on a uniform variable. For example, suppose we have "uniform mat4 a". ANGLE
568         is currently not able to tell us that the rvalue of "a[0]" is a uniform, just that
569         it has a size of 4. Therefore, the clamping is done on all indirect array indexing.
570
571         This will have a performance impact. Future enhancements may be able to determine
572         cases where the clamping is not necessary. Currently only direct indexing is skipped
573         (i.e. looking up a value using a constant index).
574
575         The clamp insertion is only performed on the GLSL output. Direct3D already guarantees
576         that out-of-bounds uniform array access returns a zero value.
577
578         * ANGLE.xcodeproj/project.pbxproj:
579         * Target.pri:
580         * include/GLSLANG/ShaderLang.h: New compiler option.
581         * src/compiler/ArrayBoundsClamper.cpp: Added.
582         (ArrayBoundsClamper::ArrayBoundsClamper):
583         (ArrayBoundsClamper::OutputClampingFunctionDefinition): Injects a clamping function for integers into GLSL source.
584         (ArrayBoundsClamper::MarkIndirectArrayBoundsForClamping): Examines the AST looking for non-direct array indexing.
585         * src/compiler/ArrayBoundsClamper.h: Added.
586         (ArrayBoundsClamper):
587         (ArrayBoundsClamper::GetArrayBoundsClampDefinitionNeeded):
588         (ArrayBoundsClamper::SetArrayBoundsClampDefinitionNeeded): Marks the object as needing to output the clamping function.
589         (ArrayBoundsClamper::Cleanup): Resets the state so that subsequent runs start fresh.
590         * src/compiler/Compiler.cpp:
591         (TCompiler::compile): Run the clamping code if the compile option was set.
592         (TCompiler::clearResults):
593         (TCompiler::getArrayBoundsClamper):
594         * src/compiler/OutputGLSLBase.cpp:
595         (TOutputGLSLBase::visitBinary): If the expression has been flagged, insert an appropriate "clamp" statement.
596         * src/compiler/ShHandle.h:
597         (TCompiler):
598         * src/compiler/TranslatorESSL.cpp:
599         (TranslatorESSL::translate):
600         * src/compiler/TranslatorGLSL.cpp:
601         (TranslatorGLSL::translate):
602         * src/compiler/intermOut.cpp:
603         (TType::getCompleteString): Add array size to intermediate tree output.
604         * src/compiler/intermediate.h:
605         (TIntermBinary::setAddIndexClamp): New flag for indicating a binary expression needs clamping.
606         (TIntermBinary::getAddIndexClamp):
607         (TIntermBinary):
608
609 2012-09-13  Mark Rowe  <mrowe@apple.com>
610
611         <rdar://problem/12255720> Fix the build with newer Clang
612
613         Reviewed by Sam Weinig.
614         
615         Clang generates a warning about the inclusion of trailing commas on the final enum item as it's apparently
616         a C++11 extension. Remove them.
617         
618         * src/compiler/BaseTypes.h:
619         * src/compiler/ExtensionBehavior.h:
620         * src/compiler/ParseHelper.cpp:
621         (TParseContext::parseVectorFields):
622         * src/compiler/intermediate.h:
623
624 2012-09-13  Simon Hausmann  <simon.hausmann@nokia.com>
625
626         [Qt] The ANGLE build on Windows breaks with GnuWin32's flex because it is too old
627         https://bugs.webkit.org/show_bug.cgi?id=96359
628
629         Reviewed by Tor Arne Vestbø.
630
631         GnuWin32's flex is 2.5.4 and that is too old for ANGLE's preprocessor
632         lexer. The only viable alternative I could find on Windows that provides
633         binaries is the winflexbison distribution (http://sourceforge.net/projects/winflexbison/),
634         so let's use that one instead.
635
636         * DerivedSources.pri:
637
638 2012-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
639
640         [Qt] Build on Windows requires bison/flex in PATH
641         https://bugs.webkit.org/show_bug.cgi?id=96358
642
643         Reviewed by Tor Arne Vestbø.
644
645         Use MAKEFILE_NOOP_COMMAND instead of the \n\t trick to generate a dummy command. Otherwise
646         the PATH prepend trick will break because it generates a command line along the lines of
647         (set PATH="...") && with just that trailing ampersand pair.
648
649         * DerivedSources.pri:
650
651 2012-09-10  Dean Jackson  <dino@apple.com>
652
653         [Apple] Install plist for Apple Open Source build system
654         https://bugs.webkit.org/show_bug.cgi?id=96345
655
656         Reviewed by Mark Rowe.
657
658         Apple's build system requires a couple of files that describe where
659         the 3rd party Open Source library came from, and what license it
660         uses. These files are copied into /usr/local when the project is
661         being installed.
662
663         * ANGLE.plist: Added.
664         * ANGLE.txt: Added.
665         * ANGLE.xcodeproj/project.pbxproj:
666
667 2012-09-06  Andras Becsi  <andras.becsi@nokia.com>
668
669         [ANGLE] Fix the build with gcc 4.7
670         https://bugs.webkit.org/show_bug.cgi?id=95989
671
672         Reviewed by Csaba Osztrogonác.
673
674         The build fails because of a bogus warning about the auto-generated
675         pplval variable. Unfortunately the warning is called -Wuninitialized
676         in gcc 4.6 and -Wmaybe-uninitialized in gcc 4.7 thus we also need to
677         ignore unknown pragmas not to break the build with compilers that do
678         not recognize these options.
679
680         * src/compiler/preprocessor/new/ExpressionParser.y:
681
682 2012-09-06  Simon Hausmann  <simon.hausmann@nokia.com>
683
684         [Qt] Fix build with ANGLE on platforms that provide EGL/GLESv2
685         https://bugs.webkit.org/show_bug.cgi?id=95965
686
687         Reviewed by Tor Arne Vestbø.
688
689         Add build rules to build ANGLE as a static library for the Qt port.
690
691         * ANGLE.pri: Added.
692         * ANGLE.pro: Added.
693         * DerivedSources.pri: Added.
694         * Target.pri: Added.
695
696 2012-08-24  Joshua Netterfield  <jnetterfield@rim.com>
697
698         [CSS Shaders] [ANGLE] RenameFunction::RenameFunction may store references to temporary string
699         https://bugs.webkit.org/show_bug.cgi?id=94736
700         http://code.google.com/p/angleproject/issues/detail?id=360
701
702         Reviewed by George Staikos.
703
704         When RenameFunction::RenameFunction(const TString& oldFunctionName, const TString&
705         newFunctionName) is called from TCompiler::rewriteCSSShader(TIntermNode*), references to
706         the temporaries oldFunctionName and newFunctionName are stored as mOldFunctionName and
707         mNewFunctionName. This results in undefined behaviour in visitAggregate.
708
709         This same patch is being applied in upstream ANGLE, and is needed for CSS Shader
710         sanitization.
711
712         * src/compiler/RenameFunction.h:
713         (RenameFunction::visitAggregate):
714         (RenameFunction):
715
716 2012-07-18  Kristóf Kosztyó  <kkristof@inf.u-szeged.hu>
717
718         [Qt] Buildfix after r122870.
719         https://bugs.webkit.org/show_bug.cgi?id=89039
720
721         Reviewed by Csaba Osztrogonác
722
723         * src/compiler/preprocessor/new/MacroExpander.cpp:
724         (pp::MacroExpander::ungetToken):
725
726 2012-07-17  Max Vujovic  <mvujovic@adobe.com>
727
728         Update ANGLE in WebKit
729         https://bugs.webkit.org/show_bug.cgi?id=89039
730
731         Reviewed by Dean Jackson and Mark Rowe.
732
733         Update ANGLE to r1170, with the following modifications:
734
735         (1) Use Bison 2.3 instead of Bison 2.4.2 to generate ExpressionParser.cpp and
736         glslang_tab.cpp. I had to modify ExpressionParser.y to make it compatible with Bison
737         2.3. The changes have been contributed back to ANGLE in r1224.
738
739         (2) Continue to recognize QNX as POSIX in ANGLE. This has been contributed back to ANGLE
740         in r1223.
741
742         (3) Rename ANGLE/src/compiler/preprocessor/new/Diagnostic.cpp to DiagnosticBase.cpp.
743         Rename ANGLE/src/compiler/preprocessor/new/DirectiveHandler.cpp to DirectiveHandlerBase.cpp.
744
745         With the introduction of ANGLE's new preprocessor, there were two files named Diagnostic.cpp
746         in ANGLE under different folders. This caused problems on the QT build when their object
747         files, both named Diagnostic.o, tried to go in the same folder. Renaming one of them to
748         DiagnosticBase.cpp avoids this conflict. The same situation occurred with
749         DirectiveHandler.cpp. I will work on contributing this change back to ANGLE for future
750         updates.
751
752         (4) Add the following lines to glslang.y and ExpressionParser.y:
753         #define YYENABLE_NLS 0
754         #define YYLTYPE_IS_TRIVIAL 1
755
756         Bison 2.3 doesn't first check that these macros are defined before reading their value,
757         which causes the QT build to fail.
758
759         We work around this issue in the same way in CSSGrammar.y.
760
761         I will work on contributing this change back to ANGLE.
762
763         * ANGLE.xcodeproj/project.pbxproj:
764         * include/GLES2/gl2ext.h:
765         * include/GLSLANG/ShaderLang.h:
766         * src/build_angle.xcodeproj/project.pbxproj:
767         * src/common/angleutils.h:
768         * src/common/debug.cpp:
769         (gl):
770         (gl::output):
771         (gl::trace):
772         (gl::perfActive):
773         (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
774         (gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
775         * src/common/version.h:
776         * src/compiler/BuiltInFunctionEmulator.cpp:
777         (BuiltInFunctionEmulator::IdentifyFunction):
778         * src/compiler/BuiltInFunctionEmulator.h:
779         * src/compiler/Compiler.cpp:
780         (isWebGLBasedSpec):
781         (TCompiler::compile):
782         (TCompiler::rewriteCSSShader):
783         (TCompiler::enforceTimingRestrictions):
784         (TCompiler::enforceFragmentShaderTimingRestrictions):
785         (TCompiler::enforceVertexShaderTimingRestrictions):
786         * src/compiler/DetectDiscontinuity.cpp: Added.
787         (sh::DetectLoopDiscontinuity::traverse):
788         (sh):
789         (sh::DetectLoopDiscontinuity::visitBranch):
790         (sh::DetectLoopDiscontinuity::visitAggregate):
791         (sh::containsLoopDiscontinuity):
792         (sh::DetectGradientOperation::traverse):
793         (sh::DetectGradientOperation::visitUnary):
794         (sh::DetectGradientOperation::visitAggregate):
795         (sh::containsGradientOperation):
796         * src/compiler/DetectDiscontinuity.h: Added.
797         (sh):
798         (DetectLoopDiscontinuity):
799         (DetectGradientOperation):
800         * src/compiler/Diagnostics.cpp: Added.
801         (TDiagnostics::TDiagnostics):
802         (TDiagnostics::~TDiagnostics):
803         (TDiagnostics::writeInfo):
804         (TDiagnostics::writeDebug):
805         (TDiagnostics::print):
806         * src/compiler/Diagnostics.h: Added.
807         (TDiagnostics):
808         (TDiagnostics::infoSink):
809         * src/compiler/DirectiveHandler.cpp: Added.
810         (getBehavior):
811         (TDirectiveHandler::TDirectiveHandler):
812         (TDirectiveHandler::~TDirectiveHandler):
813         (TDirectiveHandler::handleError):
814         (TDirectiveHandler::handlePragma):
815         (TDirectiveHandler::handleExtension):
816         (TDirectiveHandler::handleVersion):
817         * src/compiler/DirectiveHandler.h: Added.
818         (TDirectiveHandler):
819         (TDirectiveHandler::pragma):
820         (TDirectiveHandler::extensionBehavior):
821         * src/compiler/ExtensionBehavior.h:
822         (getBehaviorString):
823         * src/compiler/Initialize.cpp:
824         (BuiltInConstants):
825         (TBuiltIns::initialize):
826         (IdentifyBuiltIns):
827         * src/compiler/InitializeParseContext.cpp: Added.
828         (InitializeParseContextIndex):
829         (FreeParseContextIndex):
830         (InitializeGlobalParseContext):
831         (FreeParseContext):
832         (GetGlobalParseContext):
833         * src/compiler/InitializeParseContext.h:
834         (TThreadParseContextRec):
835         * src/compiler/Intermediate.cpp:
836         (TIntermediate::addSelection):
837         * src/compiler/MapLongVariableNames.cpp:
838         * src/compiler/OutputHLSL.cpp:
839         (sh::str):
840         (sh::OutputHLSL::OutputHLSL):
841         (sh::OutputHLSL::~OutputHLSL):
842         (sh::OutputHLSL::output):
843         (sh::OutputHLSL::header):
844         (sh::OutputHLSL::visitBinary):
845         (sh::OutputHLSL::visitUnary):
846         (sh::OutputHLSL::visitAggregate):
847         (sh::OutputHLSL::visitSelection):
848         (sh::OutputHLSL::visitLoop):
849         (sh::OutputHLSL::traverseStatements):
850         (sh):
851         (sh::OutputHLSL::handleExcessiveLoop):
852         (sh::OutputHLSL::typeString):
853         (sh::OutputHLSL::addConstructor):
854         (sh::OutputHLSL::decorateField):
855         * src/compiler/OutputHLSL.h:
856         (sh):
857         (OutputHLSL):
858         * src/compiler/ParseHelper.cpp:
859         (TParseContext::parseVectorFields):
860         (TParseContext::parseMatrixFields):
861         (TParseContext::error):
862         (TParseContext::warning):
863         (TParseContext::trace):
864         (TParseContext::assignError):
865         (TParseContext::unaryOpError):
866         (TParseContext::binaryOpError):
867         (TParseContext::precisionErrorCheck):
868         (TParseContext::lValueErrorCheck):
869         (TParseContext::constErrorCheck):
870         (TParseContext::integerErrorCheck):
871         (TParseContext::globalErrorCheck):
872         (TParseContext::reservedErrorCheck):
873         (TParseContext::constructorErrorCheck):
874         (TParseContext::voidErrorCheck):
875         (TParseContext::boolErrorCheck):
876         (TParseContext::samplerErrorCheck):
877         (TParseContext::structQualifierErrorCheck):
878         (TParseContext::parameterSamplerErrorCheck):
879         (TParseContext::arraySizeErrorCheck):
880         (TParseContext::arrayQualifierErrorCheck):
881         (TParseContext::arrayTypeErrorCheck):
882         (TParseContext::arrayErrorCheck):
883         (TParseContext::arraySetMaxSize):
884         (TParseContext::nonInitConstErrorCheck):
885         (TParseContext::nonInitErrorCheck):
886         (TParseContext::paramErrorCheck):
887         (TParseContext::extensionErrorCheck):
888         (TParseContext::supportsExtension):
889         (TParseContext::handleExtensionDirective):
890         (TParseContext::handlePragmaDirective):
891         (TParseContext::findFunction):
892         (TParseContext::executeInitializer):
893         (TParseContext::constructBuiltIn):
894         (TParseContext::constructStruct):
895         (TParseContext::addConstVectorNode):
896         (TParseContext::addConstMatrixNode):
897         (TParseContext::addConstArrayNode):
898         (TParseContext::addConstStruct):
899         (TParseContext::enterStructDeclaration):
900         (TParseContext::structNestingErrorCheck):
901         (PaParseStrings):
902         * src/compiler/ParseHelper.h:
903         (TParseContext::TParseContext):
904         (TParseContext):
905         (TParseContext::infoSink):
906         (TParseContext::extensionBehavior):
907         (TParseContext::pragma):
908         * src/compiler/PoolAlloc.cpp:
909         (TAllocation::checkGuardBlock):
910         * src/compiler/Pragma.h: Added.
911         (TPragma):
912         (TPragma::TPragma):
913         * src/compiler/RenameFunction.h: Added.
914         (RenameFunction):
915         (RenameFunction::RenameFunction):
916         (RenameFunction::visitAggregate):
917         * src/compiler/ShHandle.h:
918         (TCompiler):
919         * src/compiler/ShaderLang.cpp:
920         (getVariableInfo):
921         * src/compiler/SymbolTable.cpp:
922         (TType::buildMangledName):
923         * src/compiler/TranslatorHLSL.cpp:
924         * src/compiler/UnfoldSelect.cpp: Removed.
925         * src/compiler/UnfoldSelect.h: Removed.
926         * src/compiler/UnfoldShortCircuit.cpp: Added.
927         (sh::UnfoldShortCircuit::UnfoldShortCircuit):
928         (sh):
929         (sh::UnfoldShortCircuit::traverse):
930         (sh::UnfoldShortCircuit::visitBinary):
931         (sh::UnfoldShortCircuit::visitSelection):
932         (sh::UnfoldShortCircuit::visitLoop):
933         (sh::UnfoldShortCircuit::getNextTemporaryIndex):
934         * src/compiler/UnfoldShortCircuit.h: Added.
935         (sh):
936         (UnfoldShortCircuit):
937         * src/compiler/ValidateLimitations.cpp:
938         * src/compiler/debug.cpp:
939         * src/compiler/depgraph: Added.
940         * src/compiler/depgraph/DependencyGraph.cpp: Added.
941         (TDependencyGraph::TDependencyGraph):
942         (TDependencyGraph::~TDependencyGraph):
943         (TDependencyGraph::createArgument):
944         (TDependencyGraph::createFunctionCall):
945         (TDependencyGraph::getOrCreateSymbol):
946         (TDependencyGraph::createSelection):
947         (TDependencyGraph::createLoop):
948         (TDependencyGraph::createLogicalOp):
949         (TGraphLogicalOp::getOpString):
950         * src/compiler/depgraph/DependencyGraph.h: Added.
951         (TGraphNode):
952         (TGraphNode::TGraphNode):
953         (TGraphNode::~TGraphNode):
954         (TGraphParentNode):
955         (TGraphParentNode::TGraphParentNode):
956         (TGraphParentNode::~TGraphParentNode):
957         (TGraphParentNode::addDependentNode):
958         (TGraphArgument):
959         (TGraphArgument::TGraphArgument):
960         (TGraphArgument::~TGraphArgument):
961         (TGraphArgument::getIntermFunctionCall):
962         (TGraphArgument::getArgumentNumber):
963         (TGraphFunctionCall):
964         (TGraphFunctionCall::TGraphFunctionCall):
965         (TGraphFunctionCall::~TGraphFunctionCall):
966         (TGraphFunctionCall::getIntermFunctionCall):
967         (TGraphSymbol):
968         (TGraphSymbol::TGraphSymbol):
969         (TGraphSymbol::~TGraphSymbol):
970         (TGraphSymbol::getIntermSymbol):
971         (TGraphSelection):
972         (TGraphSelection::TGraphSelection):
973         (TGraphSelection::~TGraphSelection):
974         (TGraphSelection::getIntermSelection):
975         (TGraphLoop):
976         (TGraphLoop::TGraphLoop):
977         (TGraphLoop::~TGraphLoop):
978         (TGraphLoop::getIntermLoop):
979         (TGraphLogicalOp):
980         (TGraphLogicalOp::TGraphLogicalOp):
981         (TGraphLogicalOp::~TGraphLogicalOp):
982         (TGraphLogicalOp::getIntermLogicalOp):
983         (TDependencyGraph):
984         (TDependencyGraph::begin):
985         (TDependencyGraph::end):
986         (TDependencyGraph::beginSamplerSymbols):
987         (TDependencyGraph::endSamplerSymbols):
988         (TDependencyGraph::beginUserDefinedFunctionCalls):
989         (TDependencyGraph::endUserDefinedFunctionCalls):
990         (TDependencyGraphTraverser):
991         (TDependencyGraphTraverser::TDependencyGraphTraverser):
992         (TDependencyGraphTraverser::visitSymbol):
993         (TDependencyGraphTraverser::visitArgument):
994         (TDependencyGraphTraverser::visitFunctionCall):
995         (TDependencyGraphTraverser::visitSelection):
996         (TDependencyGraphTraverser::visitLoop):
997         (TDependencyGraphTraverser::visitLogicalOp):
998         (TDependencyGraphTraverser::getDepth):
999         (TDependencyGraphTraverser::incrementDepth):
1000         (TDependencyGraphTraverser::decrementDepth):
1001         (TDependencyGraphTraverser::clearVisited):
1002         (TDependencyGraphTraverser::markVisited):
1003         (TDependencyGraphTraverser::isVisited):
1004         * src/compiler/depgraph/DependencyGraphBuilder.cpp: Added.
1005         (TDependencyGraphBuilder::build):
1006         (TDependencyGraphBuilder::visitAggregate):
1007         (TDependencyGraphBuilder::visitFunctionDefinition):
1008         (TDependencyGraphBuilder::visitFunctionCall):
1009         (TDependencyGraphBuilder::visitAggregateChildren):
1010         (TDependencyGraphBuilder::visitSymbol):
1011         (TDependencyGraphBuilder::visitBinary):
1012         (TDependencyGraphBuilder::visitAssignment):
1013         (TDependencyGraphBuilder::visitLogicalOp):
1014         (TDependencyGraphBuilder::visitBinaryChildren):
1015         (TDependencyGraphBuilder::visitSelection):
1016         (TDependencyGraphBuilder::visitLoop):
1017         (TDependencyGraphBuilder::connectMultipleNodesToSingleNode):
1018         * src/compiler/depgraph/DependencyGraphBuilder.h: Added.
1019         (TDependencyGraphBuilder):
1020         (TNodeSetStack):
1021         (TDependencyGraphBuilder::TNodeSetStack::TNodeSetStack):
1022         (TDependencyGraphBuilder::TNodeSetStack::~TNodeSetStack):
1023         (TDependencyGraphBuilder::TNodeSetStack::getTopSet):
1024         (TDependencyGraphBuilder::TNodeSetStack::pushSet):
1025         (TDependencyGraphBuilder::TNodeSetStack::popSet):
1026         (TDependencyGraphBuilder::TNodeSetStack::popSetIntoNext):
1027         (TDependencyGraphBuilder::TNodeSetStack::insertIntoTopSet):
1028         (TDependencyGraphBuilder::TNodeSetStack::clear):
1029         (TNodeSetMaintainer):
1030         (TDependencyGraphBuilder::TNodeSetMaintainer::TNodeSetMaintainer):
1031         (TDependencyGraphBuilder::TNodeSetMaintainer::~TNodeSetMaintainer):
1032         (TNodeSetPropagatingMaintainer):
1033         (TDependencyGraphBuilder::TNodeSetPropagatingMaintainer::TNodeSetPropagatingMaintainer):
1034         (TDependencyGraphBuilder::TNodeSetPropagatingMaintainer::~TNodeSetPropagatingMaintainer):
1035         (TLeftmostSymbolMaintainer):
1036         (TDependencyGraphBuilder::TLeftmostSymbolMaintainer::TLeftmostSymbolMaintainer):
1037         (TDependencyGraphBuilder::TLeftmostSymbolMaintainer::~TLeftmostSymbolMaintainer):
1038         (TDependencyGraphBuilder::TDependencyGraphBuilder):
1039         (TDependencyGraphBuilder::build):
1040         * src/compiler/depgraph/DependencyGraphOutput.cpp: Added.
1041         (TDependencyGraphOutput::outputIndentation):
1042         (TDependencyGraphOutput::visitArgument):
1043         (TDependencyGraphOutput::visitFunctionCall):
1044         (TDependencyGraphOutput::visitSymbol):
1045         (TDependencyGraphOutput::visitSelection):
1046         (TDependencyGraphOutput::visitLoop):
1047         (TDependencyGraphOutput::visitLogicalOp):
1048         (TDependencyGraphOutput::outputAllSpanningTrees):
1049         * src/compiler/depgraph/DependencyGraphOutput.h: Added.
1050         (TDependencyGraphOutput):
1051         (TDependencyGraphOutput::TDependencyGraphOutput):
1052         * src/compiler/depgraph/DependencyGraphTraverse.cpp: Added.
1053         (TGraphNode::traverse):
1054         (TGraphParentNode::traverse):
1055         (TGraphArgument::traverse):
1056         (TGraphFunctionCall::traverse):
1057         (TGraphSymbol::traverse):
1058         (TGraphSelection::traverse):
1059         (TGraphLoop::traverse):
1060         (TGraphLogicalOp::traverse):
1061         * src/compiler/glslang.h:
1062         * src/compiler/glslang.l:
1063         * src/compiler/glslang.y:
1064         * src/compiler/glslang_lex.cpp:
1065         (yy_buffer_state):
1066         (yyguts_t):
1067         (yy_get_previous_state):
1068         (yy_try_NUL_trans):
1069         (input):
1070         (yyensure_buffer_stack):
1071         (yy_scan_bytes):
1072         (yyget_leng):
1073         (string_input):
1074         (yyerror):
1075         (glslang_finalize):
1076         (glslang_scan):
1077         * src/compiler/glslang_tab.cpp:
1078         * src/compiler/intermediate.h:
1079         (TIntermAggregate::TIntermAggregate):
1080         (TIntermAggregate::~TIntermAggregate):
1081         (TIntermAggregate::isUserDefined):
1082         (TIntermAggregate):
1083         (TIntermTraverser::~TIntermTraverser):
1084         * src/compiler/osinclude.h:
1085         * src/compiler/preprocessor/atom.c:
1086         (FindHashLoc):
1087         (PrintAtomTable):
1088         * src/compiler/preprocessor/cpp.c:
1089         (CPPpragma):
1090         (readCPPline):
1091         (PredefineIntMacro):
1092         (MacroExpand):
1093         * src/compiler/preprocessor/cpp.h:
1094         * src/compiler/preprocessor/memory.h:
1095         * src/compiler/preprocessor/new: Added properties allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs and allow-tabs.
1096         * src/compiler/preprocessor/new/Context.cpp: Removed.
1097         * src/compiler/preprocessor/new/Context.h: Removed.
1098         * src/compiler/preprocessor/new/Diagnostics.h: Added.
1099         (pp):
1100         (Diagnostics):
1101         * src/compiler/preprocessor/new/DiagnosticsBase.cpp: Added.
1102         (pp):
1103         (pp::Diagnostics::~Diagnostics):
1104         (pp::Diagnostics::report):
1105         (pp::Diagnostics::severity):
1106         * src/compiler/preprocessor/new/DirectiveHandler.h: Added.
1107         (pp):
1108         (DirectiveHandler):
1109         * src/compiler/preprocessor/new/DirectiveHandlerBase.cpp: Added.
1110         (pp):
1111         (pp::DirectiveHandler::~DirectiveHandler):
1112         * src/compiler/preprocessor/new/DirectiveParser.cpp: Added.
1113         (getDirective):
1114         (isConditionalDirective):
1115         (isEOD):
1116         (skipUntilEOD):
1117         (isMacroNameReserved):
1118         (isMacroPredefined):
1119         (pp):
1120         (DefinedParser):
1121         (pp::DefinedParser::DefinedParser):
1122         (pp::DefinedParser::lex):
1123         (pp::DirectiveParser::DirectiveParser):
1124         (pp::DirectiveParser::lex):
1125         (pp::DirectiveParser::parseDirective):
1126         (pp::DirectiveParser::parseDefine):
1127         (pp::DirectiveParser::parseUndef):
1128         (pp::DirectiveParser::parseIf):
1129         (pp::DirectiveParser::parseIfdef):
1130         (pp::DirectiveParser::parseIfndef):
1131         (pp::DirectiveParser::parseElse):
1132         (pp::DirectiveParser::parseElif):
1133         (pp::DirectiveParser::parseEndif):
1134         (pp::DirectiveParser::parseError):
1135         (pp::DirectiveParser::parsePragma):
1136         (pp::DirectiveParser::parseExtension):
1137         (pp::DirectiveParser::parseVersion):
1138         (pp::DirectiveParser::parseLine):
1139         (pp::DirectiveParser::skipping):
1140         (pp::DirectiveParser::parseConditionalIf):
1141         (pp::DirectiveParser::parseExpressionIf):
1142         (pp::DirectiveParser::parseExpressionIfdef):
1143         * src/compiler/preprocessor/new/DirectiveParser.h: Added.
1144         (pp):
1145         (DirectiveParser):
1146         (ConditionalBlock):
1147         (pp::DirectiveParser::ConditionalBlock::ConditionalBlock):
1148         * src/compiler/preprocessor/new/ExpressionParser.cpp: Added.
1149         (yysyntax_error):
1150         (yylex):
1151         (yyerror):
1152         (pp):
1153         (pp::ExpressionParser::ExpressionParser):
1154         (pp::ExpressionParser::parse):
1155         * src/compiler/preprocessor/new/ExpressionParser.h: Added.
1156         (pp):
1157         (ExpressionParser):
1158         * src/compiler/preprocessor/new/ExpressionParser.y: Added.
1159         * src/compiler/preprocessor/new/Input.cpp: Added property allow-tabs.
1160         (pp::Input::Input):
1161         (pp::Input::read):
1162         * src/compiler/preprocessor/new/Input.h: Added property allow-tabs.
1163         (pp):
1164         (Input):
1165         (pp::Input::count):
1166         (pp::Input::string):
1167         (pp::Input::length):
1168         (Location):
1169         (pp::Input::Location::Location):
1170         (pp::Input::readLoc):
1171         * src/compiler/preprocessor/new/Lexer.cpp: Added.
1172         (pp):
1173         (pp::Lexer::~Lexer):
1174         * src/compiler/preprocessor/new/Lexer.h: Added.
1175         (pp):
1176         (Lexer):
1177         * src/compiler/preprocessor/new/Macro.cpp: Added property allow-tabs.
1178         (pp::Macro::equals):
1179         * src/compiler/preprocessor/new/Macro.h: Added property allow-tabs.
1180         (pp):
1181         (pp::Macro::Macro):
1182         (Macro):
1183         * src/compiler/preprocessor/new/MacroExpander.cpp: Added.
1184         (pp):
1185         (TokenLexer):
1186         (pp::TokenLexer::TokenLexer):
1187         (pp::TokenLexer::lex):
1188         (pp::MacroExpander::MacroExpander):
1189         (pp::MacroExpander::~MacroExpander):
1190         (pp::MacroExpander::lex):
1191         (pp::MacroExpander::getToken):
1192         (pp::MacroExpander::ungetToken):
1193         (pp::MacroExpander::isNextTokenLeftParen):
1194         (pp::MacroExpander::pushMacro):
1195         (pp::MacroExpander::popMacro):
1196         (pp::MacroExpander::expandMacro):
1197         (pp::MacroExpander::collectMacroArgs):
1198         (pp::MacroExpander::replaceMacroParams):
1199         * src/compiler/preprocessor/new/MacroExpander.h: Added.
1200         (pp):
1201         (MacroExpander):
1202         (MacroContext):
1203         (pp::MacroExpander::MacroContext::MacroContext):
1204         (pp::MacroExpander::MacroContext::empty):
1205         (pp::MacroExpander::MacroContext::get):
1206         (pp::MacroExpander::MacroContext::unget):
1207         * src/compiler/preprocessor/new/Preprocessor.cpp: Added property allow-tabs.
1208         (PreprocessorImpl):
1209         (pp::PreprocessorImpl::PreprocessorImpl):
1210         (pp):
1211         (pp::Preprocessor::Preprocessor):
1212         (pp::Preprocessor::~Preprocessor):
1213         (pp::Preprocessor::init):
1214         (pp::Preprocessor::predefineMacro):
1215         (pp::Preprocessor::lex):
1216         * src/compiler/preprocessor/new/Preprocessor.h: Added property allow-tabs.
1217         (pp):
1218         (Preprocessor):
1219         * src/compiler/preprocessor/new/SourceLocation.h: Added.
1220         (pp):
1221         (pp::SourceLocation::SourceLocation):
1222         (SourceLocation):
1223         (pp::SourceLocation::equals):
1224         (pp::operator==):
1225         (pp::operator!=):
1226         * src/compiler/preprocessor/new/Token.cpp: Added property allow-tabs.
1227         (pp::Token::reset):
1228         (pp::Token::equals):
1229         (pp::Token::setAtStartOfLine):
1230         (pp::Token::setHasLeadingSpace):
1231         (pp):
1232         (pp::Token::setExpansionDisabled):
1233         (pp::operator<<):
1234         * src/compiler/preprocessor/new/Token.h: Added property allow-tabs.
1235         (pp::Token::Token):
1236         (Token):
1237         (pp::Token::atStartOfLine):
1238         (pp::Token::hasLeadingSpace):
1239         (pp::Token::expansionDisabled):
1240         (pp::operator==):
1241         (pp):
1242         (pp::operator!=):
1243         * src/compiler/preprocessor/new/Tokenizer.cpp: Added.
1244         (yy_buffer_state):
1245         (yy_trans_info):
1246         (yyguts_t):
1247         (yy_get_previous_state):
1248         (yy_try_NUL_trans):
1249         (input):
1250         (pprestart):
1251         (pp_switch_to_buffer):
1252         (pp_load_buffer_state):
1253         (pp_create_buffer):
1254         (pp_delete_buffer):
1255         (pp_init_buffer):
1256         (pp_flush_buffer):
1257         (pppush_buffer_state):
1258         (pppop_buffer_state):
1259         (ppensure_buffer_stack):
1260         (pp_scan_buffer):
1261         (pp_scan_string):
1262         (pp_scan_bytes):
1263         (yy_fatal_error):
1264         (ppget_extra):
1265         (ppget_lineno):
1266         (ppget_column):
1267         (ppget_in):
1268         (ppget_out):
1269         (ppget_leng):
1270         (ppget_text):
1271         (ppset_extra):
1272         (ppset_lineno):
1273         (ppset_column):
1274         (ppset_in):
1275         (ppset_out):
1276         (ppget_debug):
1277         (ppset_debug):
1278         (ppget_lval):
1279         (ppset_lval):
1280         (ppget_lloc):
1281         (ppset_lloc):
1282         (pplex_init):
1283         (pplex_init_extra):
1284         (yy_init_globals):
1285         (pplex_destroy):
1286         (yy_flex_strncpy):
1287         (yy_flex_strlen):
1288         (ppalloc):
1289         (pprealloc):
1290         (ppfree):
1291         (pp):
1292         (pp::Tokenizer::Tokenizer):
1293         (pp::Tokenizer::~Tokenizer):
1294         (pp::Tokenizer::init):
1295         (pp::Tokenizer::setFileNumber):
1296         (pp::Tokenizer::setLineNumber):
1297         (pp::Tokenizer::lex):
1298         (pp::Tokenizer::initScanner):
1299         (pp::Tokenizer::destroyScanner):
1300         * src/compiler/preprocessor/new/Tokenizer.h: Added.
1301         (pp):
1302         (Tokenizer):
1303         (Context):
1304         * src/compiler/preprocessor/new/Tokenizer.l: Added.
1305         * src/compiler/preprocessor/new/generate_parser.sh: Added property allow-tabs.
1306         * src/compiler/preprocessor/new/pp.l: Removed.
1307         * src/compiler/preprocessor/new/pp.y: Removed.
1308         * src/compiler/preprocessor/new/pp_lex.cpp: Removed.
1309         * src/compiler/preprocessor/new/pp_tab.cpp: Removed.
1310         * src/compiler/preprocessor/new/pp_tab.h: Removed.
1311         * src/compiler/preprocessor/new/pp_utils.h: Added.
1312         * src/compiler/preprocessor/new/preprocessor.vcproj: Added.
1313         * src/compiler/preprocessor/new/stl_utils.h: Removed.
1314         * src/compiler/preprocessor/new/token_type.h: Removed.
1315         * src/compiler/preprocessor/preprocess.h:
1316         * src/compiler/preprocessor/scanner.c:
1317         (InitScannerInput):
1318         * src/compiler/preprocessor/scanner.h:
1319         * src/compiler/preprocessor/symbols.h:
1320         * src/compiler/preprocessor/tokens.c:
1321         (ReadToken):
1322         (DumpTokenStream):
1323         * src/compiler/preprocessor/tokens.h:
1324         * src/compiler/timing: Added.
1325         * src/compiler/timing/RestrictFragmentShaderTiming.cpp: Added.
1326         (RestrictFragmentShaderTiming::RestrictFragmentShaderTiming):
1327         (RestrictFragmentShaderTiming::enforceRestrictions):
1328         (RestrictFragmentShaderTiming::validateUserDefinedFunctionCallUsage):
1329         (RestrictFragmentShaderTiming::beginError):
1330         (RestrictFragmentShaderTiming::isSamplingOp):
1331         (RestrictFragmentShaderTiming::visitArgument):
1332         (RestrictFragmentShaderTiming::visitSelection):
1333         (RestrictFragmentShaderTiming::visitLoop):
1334         (RestrictFragmentShaderTiming::visitLogicalOp):
1335         * src/compiler/timing/RestrictFragmentShaderTiming.h: Added.
1336         (RestrictFragmentShaderTiming):
1337         (RestrictFragmentShaderTiming::numErrors):
1338         * src/compiler/timing/RestrictVertexShaderTiming.cpp: Added.
1339         (RestrictVertexShaderTiming::visitSymbol):
1340         * src/compiler/timing/RestrictVertexShaderTiming.h: Added.
1341         (RestrictVertexShaderTiming):
1342         (RestrictVertexShaderTiming::RestrictVertexShaderTiming):
1343         (RestrictVertexShaderTiming::enforceRestrictions):
1344         (RestrictVertexShaderTiming::numErrors):
1345         * src/libEGL/Display.cpp:
1346         (egl):
1347         (egl::Display::getDepthTextureSupport):
1348         (egl::Display::getTexturePool):
1349         * src/libEGL/Display.h:
1350         (Display):
1351         * src/libEGL/Surface.cpp:
1352         (egl::Surface::Surface):
1353         (egl::Surface::release):
1354         (egl::Surface::resetSwapChain):
1355         (egl::Surface::swapRect):
1356         (egl):
1357         (egl::Surface::swap):
1358         (egl::Surface::postSubBuffer):
1359         * src/libEGL/Surface.h:
1360         (Surface):
1361         * src/libEGL/libEGL.cpp:
1362         * src/libGLESv2/Context.cpp:
1363         (gl::Context::makeCurrent):
1364         (gl::Context::markDxUniformsDirty):
1365         (gl):
1366         (gl::Context::getIntegerv):
1367         (gl::Context::getQueryParameterInfo):
1368         (gl::Context::applyRenderTarget):
1369         (gl::Context::applyState):
1370         (gl::Context::applyShaders):
1371         (gl::Context::applyTextures):
1372         (gl::Context::readPixels):
1373         (gl::Context::clear):
1374         (gl::Context::drawArrays):
1375         (gl::Context::drawElements):
1376         (gl::Context::supportsDepthTextures):
1377         (gl::Context::initExtensionString):
1378         (gl::Context::blitFramebuffer):
1379         (gl::VertexDeclarationCache::applyDeclaration):
1380         * src/libGLESv2/Context.h:
1381         (Context):
1382         * src/libGLESv2/Framebuffer.cpp:
1383         (gl::Framebuffer::~Framebuffer):
1384         (gl):
1385         (gl::Framebuffer::getNullColorbuffer):
1386         (gl::Framebuffer::completeness):
1387         * src/libGLESv2/Framebuffer.h:
1388         (Framebuffer):
1389         * src/libGLESv2/Program.cpp:
1390         (gl):
1391         (gl::AttributeBindings::AttributeBindings):
1392         (gl::AttributeBindings::~AttributeBindings):
1393         (gl::InfoLog::InfoLog):
1394         (gl::InfoLog::~InfoLog):
1395         (gl::InfoLog::getLength):
1396         (gl::InfoLog::getLog):
1397         (gl::InfoLog::appendSanitized):
1398         (gl::InfoLog::append):
1399         (gl::InfoLog::reset):
1400         (gl::Program::Program):
1401         (gl::Program::~Program):
1402         (gl::Program::attachShader):
1403         (gl::Program::detachShader):
1404         (gl::Program::getAttachedShadersCount):
1405         (gl::AttributeBindings::bindAttributeLocation):
1406         (gl::Program::bindAttributeLocation):
1407         (gl::Program::link):
1408         (gl::AttributeBindings::getAttributeBinding):
1409         (gl::Program::unlink):
1410         (gl::Program::getProgramBinary):
1411         (gl::Program::setProgramBinary):
1412         (gl::Program::getInfoLogLength):
1413         (gl::Program::getInfoLog):
1414         (gl::Program::getActiveAttribute):
1415         (gl::Program::getActiveAttributeCount):
1416         (gl::Program::getActiveAttributeMaxLength):
1417         (gl::Program::getActiveUniform):
1418         (gl::Program::getActiveUniformCount):
1419         (gl::Program::getActiveUniformMaxLength):
1420         (gl::Program::validate):
1421         (gl::Program::isValidated):
1422         * src/libGLESv2/Program.h:
1423         (gl):
1424         (AttributeBindings):
1425         (InfoLog):
1426         (Program):
1427         * src/libGLESv2/ProgramBinary.cpp: Added.
1428         (gl::str):
1429         (gl):
1430         (gl::Uniform::Uniform):
1431         (gl::Uniform::~Uniform):
1432         (gl::Uniform::isArray):
1433         (gl::UniformLocation::UniformLocation):
1434         (gl::ProgramBinary::ProgramBinary):
1435         (gl::ProgramBinary::~ProgramBinary):
1436         (gl::ProgramBinary::getPixelShader):
1437         (gl::ProgramBinary::getVertexShader):
1438         (gl::ProgramBinary::getAttributeLocation):
1439         (gl::ProgramBinary::getSemanticIndex):
1440         (gl::ProgramBinary::getUsedSamplerRange):
1441         (gl::ProgramBinary::getSamplerMapping):
1442         (gl::ProgramBinary::getSamplerTextureType):
1443         (gl::ProgramBinary::getUniformLocation):
1444         (gl::ProgramBinary::setUniform1fv):
1445         (gl::ProgramBinary::setUniform2fv):
1446         (gl::ProgramBinary::setUniform3fv):
1447         (gl::ProgramBinary::setUniform4fv):
1448         (gl::transposeMatrix):
1449         (gl::ProgramBinary::setUniformMatrix2fv):
1450         (gl::ProgramBinary::setUniformMatrix3fv):
1451         (gl::ProgramBinary::setUniformMatrix4fv):
1452         (gl::ProgramBinary::setUniform1iv):
1453         (gl::ProgramBinary::setUniform2iv):
1454         (gl::ProgramBinary::setUniform3iv):
1455         (gl::ProgramBinary::setUniform4iv):
1456         (gl::ProgramBinary::getUniformfv):
1457         (gl::ProgramBinary::getUniformiv):
1458         (gl::ProgramBinary::dirtyAllUniforms):
1459         (gl::ProgramBinary::applyUniforms):
1460         (gl::ProgramBinary::compileToBinary):
1461         (gl::ProgramBinary::packVaryings):
1462         (gl::ProgramBinary::linkVaryings):
1463         (gl::ProgramBinary::link):
1464         (gl::ProgramBinary::linkAttributes):
1465         (gl::ProgramBinary::linkUniforms):
1466         (gl::ProgramBinary::defineUniform):
1467         (gl::ProgramBinary::createUniform):
1468         (gl::ProgramBinary::decorateAttribute):
1469         (gl::ProgramBinary::undecorateUniform):
1470         (gl::ProgramBinary::applyUniformnbv):
1471         (gl::ProgramBinary::applyUniformnfv):
1472         (gl::ProgramBinary::applyUniform1iv):
1473         (gl::ProgramBinary::applyUniform2iv):
1474         (gl::ProgramBinary::applyUniform3iv):
1475         (gl::ProgramBinary::applyUniform4iv):
1476         (gl::ProgramBinary::applyUniformniv):
1477         (gl::ProgramBinary::isValidated):
1478         (gl::ProgramBinary::getActiveAttribute):
1479         (gl::ProgramBinary::getActiveAttributeCount):
1480         (gl::ProgramBinary::getActiveAttributeMaxLength):
1481         (gl::ProgramBinary::getActiveUniform):
1482         (gl::ProgramBinary::getActiveUniformCount):
1483         (gl::ProgramBinary::getActiveUniformMaxLength):
1484         (gl::ProgramBinary::validate):
1485         (gl::ProgramBinary::validateSamplers):
1486         (gl::ProgramBinary::getDxDepthRangeLocation):
1487         (gl::ProgramBinary::getDxDepthLocation):
1488         (gl::ProgramBinary::getDxCoordLocation):
1489         (gl::ProgramBinary::getDxHalfPixelSizeLocation):
1490         (gl::ProgramBinary::getDxFrontCCWLocation):
1491         (gl::ProgramBinary::getDxPointsOrLinesLocation):
1492         * src/libGLESv2/ProgramBinary.h: Added.
1493         (gl):
1494         (Uniform):
1495         (gl::Uniform::RegisterInfo::RegisterInfo):
1496         (RegisterInfo):
1497         (gl::Uniform::RegisterInfo::set):
1498         (UniformLocation):
1499         (ProgramBinary):
1500         (Sampler):
1501         * src/libGLESv2/Renderbuffer.cpp:
1502         (gl):
1503         (gl::RenderbufferTexture2D::RenderbufferTexture2D):
1504         (gl::RenderbufferTexture2D::~RenderbufferTexture2D):
1505         (gl::RenderbufferTexture2D::addProxyRef):
1506         (gl::RenderbufferTexture2D::releaseProxy):
1507         (gl::RenderbufferTexture2D::getRenderTarget):
1508         (gl::RenderbufferTexture2D::getDepthStencil):
1509         (gl::RenderbufferTexture2D::getWidth):
1510         (gl::RenderbufferTexture2D::getHeight):
1511         (gl::RenderbufferTexture2D::getInternalFormat):
1512         (gl::RenderbufferTexture2D::getD3DFormat):
1513         (gl::RenderbufferTexture2D::getSamples):
1514         (gl::RenderbufferTexture2D::getSerial):
1515         (gl::RenderbufferTextureCubeMap::RenderbufferTextureCubeMap):
1516         (gl::RenderbufferTextureCubeMap::~RenderbufferTextureCubeMap):
1517         (gl::RenderbufferTextureCubeMap::addProxyRef):
1518         (gl::RenderbufferTextureCubeMap::releaseProxy):
1519         (gl::RenderbufferTextureCubeMap::getRenderTarget):
1520         (gl::RenderbufferTextureCubeMap::getDepthStencil):
1521         (gl::RenderbufferTextureCubeMap::getWidth):
1522         (gl::RenderbufferTextureCubeMap::getHeight):
1523         (gl::RenderbufferTextureCubeMap::getInternalFormat):
1524         (gl::RenderbufferTextureCubeMap::getD3DFormat):
1525         (gl::RenderbufferTextureCubeMap::getSamples):
1526         (gl::RenderbufferTextureCubeMap::getSerial):
1527         (gl::DepthStencilbuffer::getDepthStencil):
1528         * src/libGLESv2/Renderbuffer.h:
1529         (gl):
1530         (RenderbufferTexture2D):
1531         (RenderbufferTextureCubeMap):
1532         * src/libGLESv2/Shader.cpp:
1533         (gl::Shader::getInfoLog):
1534         (gl::Shader::getSourceImpl):
1535         * src/libGLESv2/Shader.h:
1536         (Shader):
1537         (VertexShader):
1538         * src/libGLESv2/Texture.cpp:
1539         (gl::ConvertTextureFormatType):
1540         (gl::IsTextureFormatRenderable):
1541         (gl::GetTextureUsage):
1542         (gl):
1543         (gl::Image::createSurface):
1544         (gl::Image::updateSurface):
1545         (gl::Image::loadData):
1546         (gl::Image::loadAlphaData):
1547         (gl::Image::loadAlphaDataSSE2):
1548         (gl::Image::loadAlphaFloatData):
1549         (gl::Image::loadAlphaHalfFloatData):
1550         (gl::Image::loadLuminanceData):
1551         (gl::Image::loadLuminanceFloatData):
1552         (gl::Image::loadLuminanceHalfFloatData):
1553         (gl::Image::loadLuminanceAlphaData):
1554         (gl::Image::loadLuminanceAlphaFloatData):
1555         (gl::Image::loadLuminanceAlphaHalfFloatData):
1556         (gl::Image::loadRGBUByteData):
1557         (gl::Image::loadRGB565Data):
1558         (gl::Image::loadRGBFloatData):
1559         (gl::Image::loadRGBHalfFloatData):
1560         (gl::Image::loadRGBAUByteDataSSE2):
1561         (gl::Image::loadRGBAUByteData):
1562         (gl::Image::loadRGBA4444Data):
1563         (gl::Image::loadRGBA5551Data):
1564         (gl::Image::loadRGBAFloatData):
1565         (gl::Image::loadRGBAHalfFloatData):
1566         (gl::Image::loadBGRAData):
1567         (gl::Image::loadCompressedData):
1568         (gl::Image::copy):
1569         (gl::TextureStorage::TextureStorage):
1570         (gl::TextureStorage::isRenderTarget):
1571         (gl::TextureStorage::getUsage):
1572         (gl::Texture::setImage):
1573         (gl::Texture::setCompressedImage):
1574         (gl::Texture::subImage):
1575         (gl::Texture::subImageCompressed):
1576         (gl::TextureStorage2D::TextureStorage2D):
1577         (gl::Texture2D::getInternalFormat):
1578         (gl::Texture2D::getD3DFormat):
1579         (gl::Texture2D::copyImage):
1580         (gl::Texture2D::copySubImage):
1581         (gl::Texture2D::storage):
1582         (gl::Texture2D::isSamplerComplete):
1583         (gl::Texture2D::isCompressed):
1584         (gl::Texture2D::isDepth):
1585         (gl::Texture2D::createTexture):
1586         (gl::Texture2D::convertToRenderTarget):
1587         (gl::Texture2D::getRenderbuffer):
1588         (gl::Texture2D::getRenderTarget):
1589         (gl::Texture2D::getDepthStencil):
1590         (gl::TextureStorageCubeMap::TextureStorageCubeMap):
1591         (gl::TextureCubeMap::getWidth):
1592         (gl::TextureCubeMap::getHeight):
1593         (gl::TextureCubeMap::getInternalFormat):
1594         (gl::TextureCubeMap::getD3DFormat):
1595         (gl::TextureCubeMap::isSamplerComplete):
1596         (gl::TextureCubeMap::isCompressed):
1597         (gl::TextureCubeMap::createTexture):
1598         (gl::TextureCubeMap::convertToRenderTarget):
1599         (gl::TextureCubeMap::copyImage):
1600         (gl::TextureCubeMap::copySubImage):
1601         (gl::TextureCubeMap::storage):
1602         (gl::TextureCubeMap::getRenderbuffer):
1603         * src/libGLESv2/Texture.h:
1604         (Image):
1605         (TextureStorage):
1606         (Texture):
1607         (TextureStorage2D):
1608         (Texture2D):
1609         (TextureStorageCubeMap):
1610         (TextureCubeMap):
1611         * src/libGLESv2/VertexDataManager.cpp:
1612         (gl::VertexDataManager::prepareVertexData):
1613         * src/libGLESv2/libGLESv2.cpp:
1614         (checkTextureFormatType):
1615         (validateSubImageParams2D):
1616         (validateSubImageParamsCube):
1617         * src/libGLESv2/libGLESv2.vcproj:
1618         * src/libGLESv2/mathutil.h:
1619         (gl):
1620         * src/libGLESv2/utilities.cpp:
1621         (gl::IsDepthTexture):
1622         (gl):
1623         (gl::ComputePixelSize):
1624         (gl::ExtractFormat):
1625         (gl::ExtractType):
1626         (es2dx::ConvertCubeFace):
1627         (es2dx::ConvertRenderbufferFormat):
1628         (dx2es::GetStencilSize):
1629         (dx2es::GetDepthSize):
1630         (dx2es::IsDepthTextureFormat):
1631         (dx2es):
1632         (dx2es::IsStencilTextureFormat):
1633         (dx2es::ConvertDepthStencilFormat):
1634         * src/libGLESv2/utilities.h:
1635         (gl):
1636         (dx2es):
1637
1638 2012-07-11  Mark Rowe  <mrowe@apple.com>
1639
1640         <http://webkit.org/b/91024> Build against the latest SDK when targeting older OS X versions.
1641
1642         Reviewed by Dan Bernstein.
1643
1644         The deployment target is already set to the version that we're targeting, and it's that setting
1645         which determines which functionality from the SDK is available to us.
1646
1647         * Configurations/Base.xcconfig:
1648
1649 2012-06-22  Joshua Netterfield  <jnetterfield@rim.com>
1650
1651         [BlackBerry] Sanitize GLSL code using ANGLE.
1652
1653         BlackBerry port does not sanitize GLSL code with ANGLE
1654         https://bugs.webkit.org/show_bug.cgi?id=89583
1655
1656         Reviewed by Rob Buis.
1657
1658         * src/compiler/osinclude.h: Recognises QNX as POSIX
1659
1660 2012-03-26  Dean Jackson  <dino@apple.com>
1661
1662         Update ANGLE in WebKit
1663         https://bugs.webkit.org/show_bug.cgi?id=81717
1664
1665         Reviewed by Kenneth Russell.
1666
1667         Update angleproject to r1009. Synced the source directory
1668         between the angle repository and WebKit. Ran the OS X Lion
1669         version of Bison over the glslang.l input which generates
1670         a slightly different output than angle provided.
1671
1672         * include/EGL/eglext.h:
1673         * include/GLES2/gl2ext.h:
1674         * include/GLSLANG/ShaderLang.h:
1675         * src/common/RefCountObject.cpp: Renamed from Source/ThirdParty/ANGLE/src/libGLESv2/RefCountObject.cpp.
1676         (RefCountObject::RefCountObject):
1677         (RefCountObject::~RefCountObject):
1678         (RefCountObject::addRef):
1679         (RefCountObject::release):
1680         (RefCountObjectBindingPointer::set):
1681         * src/common/RefCountObject.h: Renamed from Source/ThirdParty/ANGLE/src/libGLESv2/RefCountObject.h.
1682         (RefCountObject):
1683         (RefCountObject::id):
1684         (RefCountObjectBindingPointer):
1685         (RefCountObjectBindingPointer::RefCountObjectBindingPointer):
1686         (RefCountObjectBindingPointer::~RefCountObjectBindingPointer):
1687         (RefCountObjectBindingPointer::get):
1688         (RefCountObjectBindingPointer::id):
1689         (RefCountObjectBindingPointer::operator ! ):
1690         (BindingPointer):
1691         (BindingPointer::set):
1692         (BindingPointer::get):
1693         (BindingPointer::operator -> ):
1694         * src/common/debug.cpp:
1695         (gl::output):
1696         * src/common/version.h:
1697         * src/compiler/BaseTypes.h:
1698         * src/compiler/Compiler.cpp:
1699         (TCompiler::TCompiler):
1700         (TCompiler::~TCompiler):
1701         (TCompiler::mapLongVariableNames):
1702         * src/compiler/ConstantUnion.h:
1703         (ConstantUnion::ConstantUnion):
1704         (ConstantUnion::operator==):
1705         (ConstantUnion::operator>):
1706         (ConstantUnion::operator<):
1707         * src/compiler/Intermediate.cpp:
1708         (TIntermConstantUnion::fold):
1709         * src/compiler/MapLongVariableNames.cpp:
1710         (LongNameMap::LongNameMap):
1711         (LongNameMap::~LongNameMap):
1712         (LongNameMap::GetInstance):
1713         (LongNameMap::Release):
1714         (LongNameMap::Find):
1715         (LongNameMap::Insert):
1716         (LongNameMap::Size):
1717         (MapLongVariableNames::MapLongVariableNames):
1718         (MapLongVariableNames::visitSymbol):
1719         (MapLongVariableNames::mapGlobalLongName):
1720         * src/compiler/MapLongVariableNames.h:
1721         (LongNameMap):
1722         (MapLongVariableNames):
1723         * src/compiler/OutputHLSL.cpp:
1724         (sh::OutputHLSL::OutputHLSL):
1725         (sh::OutputHLSL::header):
1726         (sh::OutputHLSL::visitSymbol):
1727         (sh::OutputHLSL::visitUnary):
1728         (sh::OutputHLSL::visitAggregate):
1729         (sh::OutputHLSL::visitLoop):
1730         (sh::OutputHLSL::handleExcessiveLoop):
1731         (sh::OutputHLSL::typeString):
1732         (sh::OutputHLSL::addConstructor):
1733         (sh::OutputHLSL::decorateUniform):
1734         * src/compiler/OutputHLSL.h:
1735         (OutputHLSL):
1736         * src/compiler/PoolAlloc.cpp:
1737         (TAllocation::checkGuardBlock):
1738         * src/compiler/ShHandle.h:
1739         (TCompiler):
1740         * src/compiler/SymbolTable.cpp:
1741         * src/compiler/SymbolTable.h:
1742         (TSymbolTable):
1743         (TSymbolTable::getOuterLevel):
1744         * src/compiler/VariableInfo.cpp:
1745         (getVariableDataType):
1746         * src/compiler/glslang.l:
1747         * src/compiler/glslang.y:
1748         * src/compiler/glslang_lex.cpp:
1749         (yy_buffer_state):
1750         (yyguts_t):
1751         (input):
1752         (yyensure_buffer_stack):
1753         (yy_scan_bytes):
1754         (yyget_leng):
1755         * src/compiler/glslang_tab.cpp:
1756         * src/compiler/osinclude.h:
1757         * src/compiler/preprocessor/cpp.c:
1758         * src/compiler/preprocessor/memory.c:
1759         * src/compiler/preprocessor/new/Context.cpp: Added.
1760         (isMacroNameReserved):
1761         (pp):
1762         (pp::Context::Context):
1763         (pp::Context::~Context):
1764         (pp::Context::init):
1765         (pp::Context::process):
1766         (pp::Context::defineMacro):
1767         (pp::Context::undefineMacro):
1768         (pp::Context::isMacroDefined):
1769         (pp::Context::reset):
1770         (pp::Context::defineBuiltInMacro):
1771         * src/compiler/preprocessor/new/Context.h: Added.
1772         (pp):
1773         (Context):
1774         (pp::Context::lexer):
1775         (pp::Context::output):
1776         * src/compiler/preprocessor/new/Input.cpp: Added.
1777         (pp):
1778         (pp::Input::Input):
1779         (pp::Input::eof):
1780         (pp::Input::read):
1781         (pp::Input::getChar):
1782         (pp::Input::peekChar):
1783         (pp::Input::switchToNextString):
1784         (pp::Input::isStringEmpty):
1785         (pp::Input::stringLength):
1786         * src/compiler/preprocessor/new/Input.h: Added.
1787         (pp):
1788         (Input):
1789         (pp::Input::error):
1790         (pp::Input::stringIndex):
1791         * src/compiler/preprocessor/new/Macro.cpp: Added.
1792         (pp):
1793         (pp::Macro::Macro):
1794         (pp::Macro::~Macro):
1795         * src/compiler/preprocessor/new/Macro.h: Added.
1796         (pp):
1797         (Macro):
1798         (pp::Macro::type):
1799         (pp::Macro::identifier):
1800         (pp::Macro::parameters):
1801         (pp::Macro::replacements):
1802         * src/compiler/preprocessor/new/Preprocessor.cpp: Added.
1803         (pp):
1804         (pp::Preprocessor::Preprocessor):
1805         (pp::Preprocessor::~Preprocessor):
1806         (pp::Preprocessor::init):
1807         (pp::Preprocessor::process):
1808         (pp::Preprocessor::reset):
1809         * src/compiler/preprocessor/new/Preprocessor.h: Added.
1810         (pp):
1811         (Preprocessor):
1812         (pp::Preprocessor::begin):
1813         (pp::Preprocessor::end):
1814         * src/compiler/preprocessor/new/Token.cpp: Added.
1815         (pp):
1816         (pp::Token::encodeLocation):
1817         (pp::Token::decodeLocation):
1818         (pp::Token::Token):
1819         (pp::Token::~Token):
1820         (pp::operator<<):
1821         * src/compiler/preprocessor/new/Token.h: Added.
1822         (pp):
1823         (Token):
1824         (pp::Token::location):
1825         (pp::Token::type):
1826         (pp::Token::value):
1827         * src/compiler/preprocessor/new/generate_parser.sh: Added.
1828         * src/compiler/preprocessor/new/pp.l: Added.
1829         * src/compiler/preprocessor/new/pp.y: Added.
1830         * src/compiler/preprocessor/new/pp_lex.cpp: Added.
1831         (yy_buffer_state):
1832         (yy_trans_info):
1833         (yyguts_t):
1834         (yy_get_previous_state):
1835         (yy_try_NUL_trans):
1836         (input):
1837         (pprestart):
1838         (pp_switch_to_buffer):
1839         (pp_load_buffer_state):
1840         (pp_create_buffer):
1841         (pp_delete_buffer):
1842         (pp_init_buffer):
1843         (pp_flush_buffer):
1844         (pppush_buffer_state):
1845         (pppop_buffer_state):
1846         (ppensure_buffer_stack):
1847         (pp_scan_buffer):
1848         (pp_scan_string):
1849         (pp_scan_bytes):
1850         (yy_push_state):
1851         (yy_pop_state):
1852         (yy_top_state):
1853         (yy_fatal_error):
1854         (ppget_extra):
1855         (ppget_lineno):
1856         (ppget_column):
1857         (ppget_in):
1858         (ppget_out):
1859         (ppget_leng):
1860         (ppget_text):
1861         (ppset_extra):
1862         (ppset_lineno):
1863         (ppset_column):
1864         (ppset_in):
1865         (ppset_out):
1866         (ppget_debug):
1867         (ppset_debug):
1868         (ppget_lval):
1869         (ppset_lval):
1870         (ppget_lloc):
1871         (ppset_lloc):
1872         (pplex_init):
1873         (pplex_init_extra):
1874         (yy_init_globals):
1875         (pplex_destroy):
1876         (yy_flex_strncpy):
1877         (yy_flex_strlen):
1878         (ppalloc):
1879         (pprealloc):
1880         (ppfree):
1881         (extractMacroName):
1882         (pp):
1883         (pp::Context::readInput):
1884         (pp::Context::initLexer):
1885         (pp::Context::destroyLexer):
1886         * src/compiler/preprocessor/new/pp_tab.cpp: Added.
1887         (YYLTYPE):
1888         (yysyntax_error):
1889         (yyerror):
1890         (pushConditionalBlock):
1891         (popConditionalBlock):
1892         (pp::Context::parse):
1893         * src/compiler/preprocessor/new/pp_tab.h: Added.
1894         (YYLTYPE):
1895         * src/compiler/preprocessor/new/stl_utils.h: Added.
1896         (pp):
1897         (Delete):
1898         (pp::Delete::operator()):
1899         (DeleteSecond):
1900         (pp::DeleteSecond::operator()):
1901         * src/compiler/preprocessor/new/token_type.h: Added.
1902         * src/compiler/preprocessor/scanner.c:
1903         (yylex_CPP):
1904         * src/compiler/preprocessor/symbols.c:
1905         * src/compiler/preprocessor/tokens.c:
1906         * src/libEGL/Config.cpp:
1907         (egl::ConfigSet::getConfigs):
1908         * src/libEGL/Display.cpp:
1909         (egl::Display::initialize):
1910         (egl::Display::terminate):
1911         (egl::Display::restoreLostDevice):
1912         (egl::Display::sync):
1913         (egl):
1914         (egl::Display::allocateEventQuery):
1915         (egl::Display::freeEventQuery):
1916         (egl::Display::getFloat32TextureSupport):
1917         (egl::Display::getFloat16TextureSupport):
1918         (egl::Display::getEventQuerySupport):
1919         (egl::Display::initExtensionString):
1920         (egl::Display::shareHandleSupported):
1921         (egl::Display::getOcclusionQuerySupport):
1922         (egl::Display::getInstancingSupport):
1923         * src/libEGL/Display.h:
1924         (Display):
1925         (egl::Display::isD3d9ExDevice):
1926         * src/libEGL/Surface.cpp:
1927         (egl::Surface::resetSwapChain):
1928         * src/libEGL/libEGL.cpp:
1929         * src/libEGL/libEGL.vcproj:
1930         * src/libGLESv2/Blit.cpp:
1931         (gl::Blit::setCommonBlitState):
1932         * src/libGLESv2/Buffer.h:
1933         (Buffer):
1934         * src/libGLESv2/Context.cpp:
1935         (gl::Context::Context):
1936         (gl::Context::~Context):
1937         (gl::Context::makeCurrent):
1938         (gl::Context::getActiveQuery):
1939         (gl):
1940         (gl::Context::createFence):
1941         (gl::Context::createQuery):
1942         (gl::Context::deleteQuery):
1943         (gl::Context::beginQuery):
1944         (gl::Context::endQuery):
1945         (gl::Context::getQuery):
1946         (gl::Context::applyVertexBuffer):
1947         (gl::Context::applyIndexBuffer):
1948         (gl::Context::readPixels):
1949         (gl::Context::clear):
1950         (gl::Context::drawArrays):
1951         (gl::Context::drawElements):
1952         (gl::Context::sync):
1953         (gl::Context::drawLineLoop):
1954         (gl::Context::supportsOcclusionQueries):
1955         (gl::Context::supportsInstancing):
1956         (gl::Context::setVertexAttribDivisor):
1957         (gl::Context::initExtensionString):
1958         (gl::VertexDeclarationCache::applyDeclaration):
1959         (gl::VertexDeclarationCache::markStateDirty):
1960         * src/libGLESv2/Context.h:
1961         (gl):
1962         (gl::VertexAttribute::VertexAttribute):
1963         (State):
1964         (VertexDeclarationCache):
1965         (Context):
1966         * src/libGLESv2/Fence.cpp:
1967         (gl::Fence::Fence):
1968         (gl::Fence::~Fence):
1969         (gl::Fence::setFence):
1970         * src/libGLESv2/Fence.h:
1971         (egl):
1972         (Fence):
1973         * src/libGLESv2/Framebuffer.cpp:
1974         (gl::Framebuffer::lookupRenderbuffer):
1975         (gl::Framebuffer::detachTexture):
1976         (gl::Framebuffer::completeness):
1977         * src/libGLESv2/Framebuffer.h:
1978         * src/libGLESv2/IndexDataManager.cpp:
1979         (gl::IndexDataManager::IndexDataManager):
1980         (gl::IndexDataManager::~IndexDataManager):
1981         (gl::computeRange):
1982         (gl::IndexDataManager::prepareIndexData):
1983         (gl::IndexDataManager::getCountingIndices):
1984         (gl):
1985         * src/libGLESv2/IndexDataManager.h:
1986         (IndexDataManager):
1987         * src/libGLESv2/Program.cpp:
1988         (gl::Program::getUniformLocation):
1989         (gl::Program::setUniform1fv):
1990         (gl::Program::setUniform2fv):
1991         (gl::Program::setUniform3fv):
1992         (gl::Program::setUniform4fv):
1993         (gl::Program::setUniform1iv):
1994         (gl::Program::setUniform2iv):
1995         (gl::Program::setUniform3iv):
1996         (gl::Program::setUniform4iv):
1997         (gl::Program::packVaryings):
1998         (gl::Program::linkVaryings):
1999         (gl::Program::defineUniform):
2000         (gl::Program::createUniform):
2001         (gl::Program::applyUniformnbv):
2002         (gl::Program::applyUniform1iv):
2003         (gl::Program::applyUniform2iv):
2004         (gl::Program::applyUniform3iv):
2005         (gl::Program::applyUniform4iv):
2006         (gl::Program::getInfoLog):
2007         * src/libGLESv2/Program.h:
2008         (Program):
2009         * src/libGLESv2/Query.cpp: Added.
2010         (gl):
2011         (gl::Query::Query):
2012         (gl::Query::~Query):
2013         (gl::Query::begin):
2014         (gl::Query::end):
2015         (gl::Query::getResult):
2016         (gl::Query::isResultAvailable):
2017         (gl::Query::getType):
2018         (gl::Query::testQuery):
2019         * src/libGLESv2/Query.h: Added.
2020         (gl):
2021         (Query):
2022         * src/libGLESv2/Renderbuffer.cpp:
2023         (gl):
2024         (gl::RenderbufferInterface::addProxyRef):
2025         (gl::RenderbufferInterface::releaseProxy):
2026         (gl::RenderbufferTexture::RenderbufferTexture):
2027         (gl::RenderbufferTexture::~RenderbufferTexture):
2028         (gl::RenderbufferTexture::addProxyRef):
2029         (gl::RenderbufferTexture::releaseProxy):
2030         (gl::Renderbuffer::addRef):
2031         (gl::Renderbuffer::release):
2032         * src/libGLESv2/Renderbuffer.h:
2033         (gl):
2034         (RenderbufferInterface):
2035         (RenderbufferTexture):
2036         (Renderbuffer):
2037         * src/libGLESv2/Shader.cpp:
2038         (gl::Shader::Shader):
2039         (gl::Shader::getInfoLog):
2040         (gl::Shader::getSourceImpl):
2041         (gl):
2042         (gl::Shader::initializeCompiler):
2043         (gl::Shader::parseVaryings):
2044         (gl::Shader::uncompile):
2045         (gl::Shader::compileToHLSL):
2046         (gl::VertexShader::uncompile):
2047         (gl::VertexShader::compile):
2048         (gl::VertexShader::parseAttributes):
2049         (gl::FragmentShader::compile):
2050         * src/libGLESv2/Shader.h:
2051         (Shader):
2052         (VertexShader):
2053         * src/libGLESv2/Texture.cpp:
2054         (gl::Texture2D::Texture2D):
2055         (gl::Texture2D::~Texture2D):
2056         (gl):
2057         (gl::Texture2D::addProxyRef):
2058         (gl::Texture2D::releaseProxy):
2059         (gl::Texture2D::getRenderbuffer):
2060         (gl::TextureCubeMap::TextureCubeMap):
2061         (gl::TextureCubeMap::~TextureCubeMap):
2062         (gl::TextureCubeMap::addProxyRef):
2063         (gl::TextureCubeMap::releaseProxy):
2064         (gl::TextureCubeMap::isSamplerComplete):
2065         (gl::TextureCubeMap::convertToRenderTarget):
2066         (gl::TextureCubeMap::getRenderbuffer):
2067         * src/libGLESv2/Texture.h:
2068         (Texture):
2069         (Texture2D):
2070         (TextureCubeMap):
2071         * src/libGLESv2/VertexDataManager.cpp:
2072         (gl::VertexDataManager::writeAttributeData):
2073         (gl::VertexDataManager::prepareVertexData):
2074         (gl::VertexDataManager::spaceRequired):
2075         (gl):
2076         * src/libGLESv2/VertexDataManager.h:
2077         (TranslatedAttribute):
2078         (VertexDataManager):
2079         * src/libGLESv2/libGLESv2.cpp:
2080         * src/libGLESv2/libGLESv2.def:
2081         * src/libGLESv2/libGLESv2.vcproj:
2082         * src/libGLESv2/utilities.cpp:
2083         (gl::IsInternalTextureTarget):
2084         * src/libGLESv2/utilities.h:
2085         (gl):
2086
2087 2012-03-09  Ashod Nakashian  <ashodnakashian@yahoo.com>
2088
2089         Bash scripts should support LF endings only
2090         https://bugs.webkit.org/show_bug.cgi?id=79509
2091
2092         Reviewed by David Kilzer.
2093
2094         * src/compiler/generate_parser.sh: Added property svn:eol-style.
2095
2096 2012-02-21  Sam Weinig  <sam@webkit.org>
2097
2098         Attempt to fix the Snow Leopard build.
2099
2100         * Configurations/Base.xcconfig:
2101
2102 2012-02-21  Sam Weinig  <sam@webkit.org>
2103
2104         Use libc++ when building with Clang on Mac
2105         https://bugs.webkit.org/show_bug.cgi?id=78981
2106
2107         Reviewed by Dan Bernstein.
2108
2109         * Configurations/Base.xcconfig:
2110
2111 2012-01-07  Chris Marrin  <cmarrin@apple.com>
2112
2113         Fixed a warning in GTK build of ANGLE
2114
2115         Unreviewed.
2116
2117         * src/compiler/DetectRecursion.cpp:
2118         (DetectRecursion::~DetectRecursion):
2119
2120 2012-01-06  Mark Rowe  <mrowe@apple.com>
2121
2122         Regenerate a few files with a more appropriate version of bison.
2123
2124         Rubber-stamped by Dan Bernstein.
2125
2126         * src/compiler/glslang.l: Tweak the input so that it generates code that compiles without warnings.
2127         * src/compiler/glslang_lex.cpp:
2128         * src/compiler/glslang_tab.cpp:
2129         * src/compiler/glslang_tab.h:
2130
2131 2012-01-06  Chris Marrin  <cmarrin@apple.com>
2132
2133         Update ANGLE in WebKit tree
2134         https://bugs.webkit.org/show_bug.cgi?id=75753
2135
2136         Reviewed by Simon Fraser.
2137
2138         Updated ANGLE to r939. Fixed a compiler error (missing case in switch statement)
2139         and added 5 new files to xcodeproj. Other than that it is a straight copy of
2140         the files from the ANGLE repository.
2141
2142         * ANGLE.xcodeproj/project.pbxproj:
2143         * include/EGL/eglext.h:
2144         * include/EGL/eglplatform.h:
2145         * include/GLES2/gl2ext.h:
2146         * include/GLSLANG/ShaderLang.h:
2147         * src/common/debug.cpp:
2148         (gl::output):
2149         (gl::trace):
2150         (gl::perfActive):
2151         (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
2152         (gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
2153         * src/common/version.h:
2154         * src/compiler/BaseTypes.h:
2155         (getBasicString):
2156         * src/compiler/BuiltInFunctionEmulator.cpp: Added.
2157         (BuiltInFunctionEmulator::BuiltInFunctionEmulator):
2158         (BuiltInFunctionEmulator::SetFunctionCalled):
2159         (BuiltInFunctionEmulator::OutputEmulatedFunctionDefinition):
2160         (BuiltInFunctionEmulator::IdentifyFunction):
2161         (BuiltInFunctionEmulator::MarkBuiltInFunctionsForEmulation):
2162         (BuiltInFunctionEmulator::Cleanup):
2163         (BuiltInFunctionEmulator::GetEmulatedFunctionName):
2164         * src/compiler/BuiltInFunctionEmulator.h: Added.
2165         * src/compiler/Compiler.cpp:
2166         (TCompiler::TCompiler):
2167         (TCompiler::compile):
2168         (TCompiler::clearResults):
2169         (TCompiler::detectRecursion):
2170         (TCompiler::getMappedNameMaxLength):
2171         (TCompiler::getBuiltInFunctionEmulator):
2172         * src/compiler/DetectRecursion.cpp: Added.
2173         (DetectRecursion::FunctionNode::FunctionNode):
2174         (DetectRecursion::FunctionNode::getName):
2175         (DetectRecursion::FunctionNode::addCallee):
2176         (DetectRecursion::FunctionNode::detectRecursion):
2177         (DetectRecursion::DetectRecursion):
2178         (DetectRecursion::~DetectRecursion):
2179         (DetectRecursion::visitAggregate):
2180         (DetectRecursion::detectRecursion):
2181         (DetectRecursion::findFunctionByName):
2182         * src/compiler/DetectRecursion.h: Added.
2183         * src/compiler/ExtensionBehavior.h:
2184         * src/compiler/ForLoopUnroll.cpp:
2185         (ForLoopUnroll::MarkForLoopsWithIntegerIndicesForUnrolling):
2186         * src/compiler/ForLoopUnroll.h:
2187         * src/compiler/Initialize.cpp:
2188         (BuiltInFunctionsCommon):
2189         (BuiltInFunctionsVertex):
2190         (BuiltInFunctionsFragment):
2191         (TBuiltIns::initialize):
2192         (IdentifyBuiltIns):
2193         (InitExtensionBehavior):
2194         * src/compiler/MapLongVariableNames.cpp:
2195         (MapLongVariableNames::MapLongVariableNames):
2196         (MapLongVariableNames::visitSymbol):
2197         (MapLongVariableNames::mapVaryingLongName):
2198         * src/compiler/MapLongVariableNames.h:
2199         * src/compiler/OutputGLSLBase.cpp:
2200         (TOutputGLSLBase::visitUnary):
2201         (TOutputGLSLBase::visitAggregate):
2202         * src/compiler/OutputHLSL.cpp:
2203         (sh::OutputHLSL::OutputHLSL):
2204         (sh::OutputHLSL::header):
2205         (sh::OutputHLSL::visitSymbol):
2206         (sh::OutputHLSL::visitAggregate):
2207         (sh::OutputHLSL::visitSelection):
2208         (sh::OutputHLSL::visitLoop):
2209         (sh::OutputHLSL::handleExcessiveLoop):
2210         (sh::OutputHLSL::addConstructor):
2211         (sh::OutputHLSL::decorate):
2212         (sh::OutputHLSL::decorateUniform):
2213         * src/compiler/OutputHLSL.h:
2214         * src/compiler/ParseHelper.cpp:
2215         (TParseContext::recover):
2216         (TParseContext::reservedErrorCheck):
2217         (TParseContext::constructorErrorCheck):
2218         (TParseContext::extensionErrorCheck):
2219         (TParseContext::supportsExtension):
2220         (TParseContext::enterStructDeclaration):
2221         (TParseContext::exitStructDeclaration):
2222         (TParseContext::structNestingErrorCheck):
2223         * src/compiler/ParseHelper.h:
2224         (TParseContext::TParseContext):
2225         * src/compiler/PoolAlloc.h:
2226         (pool_allocator::pool_allocator):
2227         (pool_allocator::operator=):
2228         (pool_allocator::setAllocator):
2229         (pool_allocator::getAllocator):
2230         * src/compiler/ShHandle.h:
2231         * src/compiler/ShaderLang.cpp:
2232         (checkActiveUniformAndAttribMaxLengths):
2233         (checkMappedNameMaxLength):
2234         (getVariableInfo):
2235         (ShInitBuiltInResources):
2236         (ShGetInfo):
2237         * src/compiler/SymbolTable.cpp:
2238         (TType::computeDeepestStructNesting):
2239         * src/compiler/TranslatorESSL.cpp:
2240         (TranslatorESSL::translate):
2241         (TranslatorESSL::writeExtensionBehavior):
2242         * src/compiler/TranslatorGLSL.cpp:
2243         (TranslatorGLSL::translate):
2244         * src/compiler/Types.h:
2245         (TType::TType):
2246         (TType::copyType):
2247         (TType::setStruct):
2248         (TType::getDeepestStructNesting):
2249         * src/compiler/UnfoldSelect.cpp:
2250         (sh::UnfoldSelect::traverse):
2251         (sh::UnfoldSelect::visitSelection):
2252         (sh::UnfoldSelect::visitLoop):
2253         (sh::UnfoldSelect::getNextTemporaryIndex):
2254         * src/compiler/UnfoldSelect.h:
2255         * src/compiler/ValidateLimitations.cpp:
2256         * src/compiler/ValidateLimitations.h:
2257         * src/compiler/VariableInfo.cpp:
2258         (getVariableDataType):
2259         * src/compiler/generate_glslang_lexer.sh: Removed.
2260         * src/compiler/generate_glslang_parser.sh: Removed.
2261         * src/compiler/generate_parser.sh: Added.
2262         * src/compiler/glslang.l:
2263         * src/compiler/glslang.y:
2264         * src/compiler/glslang_lex.cpp:
2265         (yy_get_previous_state):
2266         (yy_try_NUL_trans):
2267         * src/compiler/glslang_tab.cpp:
2268         * src/compiler/glslang_tab.h:
2269         * src/compiler/intermOut.cpp:
2270         (TOutputTraverser::visitAggregate):
2271         * src/compiler/intermediate.h:
2272         (TIntermUnary::TIntermUnary):
2273         (TIntermUnary::setUseEmulatedFunction):
2274         (TIntermUnary::getUseEmulatedFunction):
2275         (TIntermAggregate::TIntermAggregate):
2276         (TIntermAggregate::setUseEmulatedFunction):
2277         (TIntermAggregate::getUseEmulatedFunction):
2278         * src/compiler/osinclude.h:
2279         * src/compiler/ossource_posix.cpp:
2280         (OS_AllocTLSIndex):
2281         (OS_SetTLSValue):
2282         (OS_FreeTLSIndex):
2283         * src/compiler/preprocessor/atom.c:
2284         (GrowAtomTable):
2285         * src/compiler/preprocessor/length_limits.h: Added.
2286         * src/compiler/preprocessor/scanner.h:
2287         * src/libEGL/Display.cpp:
2288         (egl::Display::getDisplay):
2289         (egl::Display::Display):
2290         (egl::Display::~Display):
2291         (egl::Display::initialize):
2292         (egl::Display::terminate):
2293         (egl::Display::startScene):
2294         (egl::Display::endScene):
2295         (egl::Display::createDevice):
2296         (egl::Display::initializeDevice):
2297         (egl::Display::resetDevice):
2298         (egl::Display::createWindowSurface):
2299         (egl::Display::createOffscreenSurface):
2300         (egl::Display::createContext):
2301         (egl::Display::restoreLostDevice):
2302         (egl::Display::notifyDeviceLost):
2303         (egl::Display::isDeviceLost):
2304         (egl::Display::testDeviceLost):
2305         (egl::Display::testDeviceResettable):
2306         (egl::Display::getDXT1TextureSupport):
2307         (egl::Display::getDXT3TextureSupport):
2308         (egl::Display::getDXT5TextureSupport):
2309         (egl::Display::getFloat32TextureSupport):
2310         (egl::Display::getFloat16TextureSupport):
2311         (egl::Display::getTexturePool):
2312         (egl::Display::initExtensionString):
2313         * src/libEGL/Display.h:
2314         * src/libEGL/Surface.cpp:
2315         (egl::Surface::Surface):
2316         (egl::Surface::initialize):
2317         (egl::Surface::resetSwapChain):
2318         (egl::Surface::subclassWindow):
2319         (egl::Surface::unsubclassWindow):
2320         (egl::Surface::swap):
2321         (egl::Surface::postSubBuffer):
2322         (egl::Surface::isPostSubBufferSupported):
2323         * src/libEGL/Surface.h:
2324         * src/libEGL/libEGL.cpp:
2325         * src/libEGL/libEGL.rc:
2326         * src/libEGL/libEGL.vcproj:
2327         * src/libGLESv2/Buffer.cpp:
2328         (gl::Buffer::bufferSubData):
2329         * src/libGLESv2/Context.cpp:
2330         (gl::Context::Context):
2331         (gl::Context::makeCurrent):
2332         (gl::Context::markAllStateDirty):
2333         (gl::Context::markContextLost):
2334         (gl::Context::isContextLost):
2335         (gl::Context::setPackReverseRowOrder):
2336         (gl::Context::getPackReverseRowOrder):
2337         (gl::Context::deleteProgram):
2338         (gl::Context::getDrawFramebuffer):
2339         (gl::Context::bindDrawFramebuffer):
2340         (gl::Context::useProgram):
2341         (gl::Context::setFramebufferZero):
2342         (gl::Context::getCurrentProgram):
2343         (gl::Context::getBooleanv):
2344         (gl::Context::getIntegerv):
2345         (gl::Context::getQueryParameterInfo):
2346         (gl::Context::applyRenderTarget):
2347         (gl::Context::applyState):
2348         (gl::Context::applyVertexBuffer):
2349         (gl::Context::applyIndexBuffer):
2350         (gl::Context::applyShaders):
2351         (gl::Context::applyTextures):
2352         (gl::Context::readPixels):
2353         (gl::Context::clear):
2354         (gl::Context::drawArrays):
2355         (gl::Context::drawElements):
2356         (gl::Context::sync):
2357         (gl::Context::drawClosingLine):
2358         (gl::Context::getResetStatus):
2359         (gl::Context::isResetNotificationEnabled):
2360         (gl::Context::supportsDXT1Textures):
2361         (gl::Context::supportsDXT3Textures):
2362         (gl::Context::supportsDXT5Textures):
2363         (gl::Context::supportsFloat32Textures):
2364         (gl::Context::supportsFloat32LinearFilter):
2365         (gl::Context::supportsFloat32RenderableTextures):
2366         (gl::Context::supportsFloat16Textures):
2367         (gl::Context::supportsFloat16LinearFilter):
2368         (gl::Context::supportsFloat16RenderableTextures):
2369         (gl::Context::initExtensionString):
2370         (gl::Context::initRendererString):
2371         (gl::Context::getRendererString):
2372         (gl::Context::blitFramebuffer):
2373         (gl::VertexDeclarationCache::applyDeclaration):
2374         (gl::VertexDeclarationCache::markStateDirty):
2375         * src/libGLESv2/Context.h:
2376         * src/libGLESv2/Fence.cpp:
2377         (gl::Fence::testFence):
2378         (gl::Fence::getFenceiv):
2379         * src/libGLESv2/Framebuffer.cpp:
2380         (gl::Framebuffer::setColorbuffer):
2381         (gl::Framebuffer::setDepthbuffer):
2382         (gl::Framebuffer::setStencilbuffer):
2383         (gl::Framebuffer::getColorbuffer):
2384         (gl::Framebuffer::getDepthbuffer):
2385         (gl::Framebuffer::getStencilbuffer):
2386         (gl::Framebuffer::hasStencil):
2387         (gl::Framebuffer::completeness):
2388         (gl::DefaultFramebuffer::DefaultFramebuffer):
2389         * src/libGLESv2/Framebuffer.h:
2390         * src/libGLESv2/IndexDataManager.cpp:
2391         (gl::IndexDataManager::prepareIndexData):
2392         (gl::IndexBuffer::IndexBuffer):
2393         (gl::IndexBuffer::getSerial):
2394         (gl::IndexBuffer::issueSerial):
2395         (gl::StreamingIndexBuffer::reserveSpace):
2396         (gl::StaticIndexBuffer::reserveSpace):
2397         (gl::StaticIndexBuffer::lookupRange):
2398         (gl::StaticIndexBuffer::addRange):
2399         * src/libGLESv2/IndexDataManager.h:
2400         (gl::StaticIndexBuffer::IndexRange::operator<):
2401         * src/libGLESv2/Program.cpp:
2402         (gl::Uniform::Uniform):
2403         (gl::Uniform::isArray):
2404         (gl::UniformLocation::UniformLocation):
2405         (gl::Program::Program):
2406         (gl::Program::detachShader):
2407         (gl::Program::getUsedSamplerRange):
2408         (gl::Program::getSamplerMapping):
2409         (gl::Program::getUniformLocation):
2410         (gl::Program::setUniform1fv):
2411         (gl::Program::setUniform2fv):
2412         (gl::Program::setUniform3fv):
2413         (gl::transposeMatrix):
2414         (gl::Program::setUniformMatrix2fv):
2415         (gl::Program::setUniformMatrix3fv):
2416         (gl::Program::setUniformMatrix4fv):
2417         (gl::Program::getUniformfv):
2418         (gl::Program::getUniformiv):
2419         (gl::Program::applyUniforms):
2420         (gl::Program::compileToBinary):
2421         (gl::Program::linkVaryings):
2422         (gl::Program::link):
2423         (gl::Program::defineUniform):
2424         (gl::Program::createUniform):
2425         (gl::Program::decorateAttribute):
2426         (gl::Program::undecorateUniform):
2427         (gl::Program::applyUniformnbv):
2428         (gl::Program::applyUniformnfv):
2429         (gl::Program::applyUniform1iv):
2430         (gl::Program::applyUniform2iv):
2431         (gl::Program::applyUniform3iv):
2432         (gl::Program::applyUniform4iv):
2433         (gl::Program::applyUniformniv):
2434         (gl::Program::appendToInfoLogSanitized):
2435         (gl::Program::unlink):
2436         (gl::Program::getActiveUniform):
2437         (gl::Program::getActiveUniformCount):
2438         (gl::Program::getActiveUniformMaxLength):
2439         (gl::Program::validateSamplers):
2440         (gl::Program::initializeConstantHandles):
2441         (gl::Program::getDxCoordLocation):
2442         * src/libGLESv2/Program.h:
2443         * src/libGLESv2/Renderbuffer.cpp:
2444         (gl::RenderbufferInterface::RenderbufferInterface):
2445         (gl::RenderbufferInterface::getRedSize):
2446         (gl::RenderbufferInterface::getGreenSize):
2447         (gl::RenderbufferInterface::getBlueSize):
2448         (gl::RenderbufferInterface::getAlphaSize):
2449         (gl::RenderbufferInterface::getDepthSize):
2450         (gl::RenderbufferInterface::getStencilSize):
2451         (gl::RenderbufferTexture::RenderbufferTexture):
2452         (gl::RenderbufferTexture::~RenderbufferTexture):
2453         (gl::RenderbufferTexture::getRenderTarget):
2454         (gl::RenderbufferTexture::getDepthStencil):
2455         (gl::RenderbufferTexture::getWidth):
2456         (gl::RenderbufferTexture::getHeight):
2457         (gl::RenderbufferTexture::getInternalFormat):
2458         (gl::RenderbufferTexture::getD3DFormat):
2459         (gl::RenderbufferTexture::getSamples):
2460         (gl::RenderbufferTexture::getSerial):
2461         (gl::Renderbuffer::Renderbuffer):
2462         (gl::Renderbuffer::~Renderbuffer):
2463         (gl::Renderbuffer::getRenderTarget):
2464         (gl::Renderbuffer::getDepthStencil):
2465         (gl::Renderbuffer::getWidth):
2466         (gl::Renderbuffer::getHeight):
2467         (gl::Renderbuffer::getInternalFormat):
2468         (gl::Renderbuffer::getD3DFormat):
2469         (gl::Renderbuffer::getRedSize):
2470         (gl::Renderbuffer::getGreenSize):
2471         (gl::Renderbuffer::getBlueSize):
2472         (gl::Renderbuffer::getAlphaSize):
2473         (gl::Renderbuffer::getDepthSize):
2474         (gl::Renderbuffer::getStencilSize):
2475         (gl::Renderbuffer::getSamples):
2476         (gl::Renderbuffer::getSerial):
2477         (gl::Renderbuffer::setStorage):
2478         (gl::RenderbufferStorage::getD3DFormat):
2479         (gl::RenderbufferStorage::issueCubeSerials):
2480         (gl::Colorbuffer::Colorbuffer):
2481         (gl::Colorbuffer::getRenderTarget):
2482         (gl::Depthbuffer::Depthbuffer):
2483         (gl::Stencilbuffer::Stencilbuffer):
2484         * src/libGLESv2/Renderbuffer.h:
2485         (gl::RenderbufferInterface::~RenderbufferInterface):
2486         * src/libGLESv2/Shader.cpp:
2487         (gl::Shader::getTranslatedSourceLength):
2488         (gl::Shader::getSourceImpl):
2489         (gl::Shader::getSource):
2490         (gl::Shader::getTranslatedSource):
2491         * src/libGLESv2/Shader.h:
2492         * src/libGLESv2/Texture.cpp:
2493         (gl::ConvertTextureFormatType):
2494         (gl::IsTextureFormatRenderable):
2495         (gl::Image::Image):
2496         (gl::Image::~Image):
2497         (gl::Image::redefine):
2498         (gl::Image::createSurface):
2499         (gl::Image::lock):
2500         (gl::Image::unlock):
2501         (gl::Image::isRenderableFormat):
2502         (gl::Image::getD3DFormat):
2503         (gl::Image::getSurface):
2504         (gl::Image::setManagedSurface):
2505         (gl::Image::updateSurface):
2506         (gl::Image::loadData):
2507         (gl::Image::loadAlphaData):
2508         (gl::Image::loadAlphaFloatData):
2509         (gl::Image::loadAlphaHalfFloatData):
2510         (gl::Image::loadLuminanceData):
2511         (gl::Image::loadLuminanceFloatData):
2512         (gl::Image::loadLuminanceHalfFloatData):
2513         (gl::Image::loadLuminanceAlphaData):
2514         (gl::Image::loadLuminanceAlphaFloatData):
2515         (gl::Image::loadLuminanceAlphaHalfFloatData):
2516         (gl::Image::loadRGBUByteData):
2517         (gl::Image::loadRGB565Data):
2518         (gl::Image::loadRGBFloatData):
2519         (gl::Image::loadRGBHalfFloatData):
2520         (gl::Image::loadRGBAUByteDataSSE2):
2521         (gl::Image::loadRGBAUByteData):
2522         (gl::Image::loadRGBA4444Data):
2523         (gl::Image::loadRGBA5551Data):
2524         (gl::Image::loadRGBAFloatData):
2525         (gl::Image::loadRGBAHalfFloatData):
2526         (gl::Image::loadBGRAData):
2527         (gl::Image::loadCompressedData):
2528         (gl::FlipCopyDXT1BlockFull):
2529         (gl::FlipCopyDXT1BlockHalf):
2530         (gl::FlipCopyDXT3BlockFull):
2531         (gl::FlipCopyDXT3BlockHalf):
2532         (gl::FlipCopyDXT5BlockFull):
2533         (gl::FlipCopyDXT5BlockHalf):
2534         (gl::Image::loadDXT1Data):
2535         (gl::Image::loadDXT3Data):
2536         (gl::Image::loadDXT5Data):
2537         (gl::Image::copy):
2538         (gl::TextureStorage::TextureStorage):
2539         (gl::TextureStorage::~TextureStorage):
2540         (gl::TextureStorage::isRenderTarget):
2541         (gl::TextureStorage::isManaged):
2542         (gl::TextureStorage::getPool):
2543         (gl::TextureStorage::getTextureSerial):
2544         (gl::TextureStorage::issueTextureSerial):
2545         (gl::Texture::Texture):
2546         (gl::Texture::~Texture):
2547         (gl::Texture::setMinFilter):
2548         (gl::Texture::setMagFilter):
2549         (gl::Texture::setWrapS):
2550         (gl::Texture::setWrapT):
2551         (gl::Texture::setUsage):
2552         (gl::Texture::getMinFilter):
2553         (gl::Texture::getMagFilter):
2554         (gl::Texture::getWrapS):
2555         (gl::Texture::getWrapT):
2556         (gl::Texture::getUsage):
2557         (gl::Texture::setImage):
2558         (gl::Texture::setCompressedImage):
2559         (gl::Texture::subImage):
2560         (gl::Texture::subImageCompressed):
2561         (gl::Texture::getTexture):
2562         (gl::Texture::hasDirtyParameters):
2563         (gl::Texture::hasDirtyImages):
2564         (gl::Texture::resetDirty):
2565         (gl::Texture::getTextureSerial):
2566         (gl::Texture::getRenderTargetSerial):
2567         (gl::Texture::isImmutable):
2568         (gl::Texture::creationLevels):
2569         (gl::Texture::getBlitter):
2570         (gl::Texture::copyToRenderTarget):
2571         (gl::TextureStorage2D::TextureStorage2D):
2572         (gl::TextureStorage2D::~TextureStorage2D):
2573         (gl::TextureStorage2D::getSurfaceLevel):
2574         (gl::TextureStorage2D::getBaseTexture):
2575         (gl::TextureStorage2D::getRenderTargetSerial):
2576         (gl::Texture2D::Texture2D):
2577         (gl::Texture2D::~Texture2D):
2578         (gl::Texture2D::getWidth):
2579         (gl::Texture2D::getHeight):
2580         (gl::Texture2D::getInternalFormat):
2581         (gl::Texture2D::getType):
2582         (gl::Texture2D::redefineImage):
2583         (gl::Texture2D::setImage):
2584         (gl::Texture2D::bindTexImage):
2585         (gl::Texture2D::releaseTexImage):
2586         (gl::Texture2D::setCompressedImage):
2587         (gl::Texture2D::commitRect):
2588         (gl::Texture2D::copyImage):
2589         (gl::Texture2D::copySubImage):
2590         (gl::Texture2D::storage):
2591         (gl::Texture2D::isSamplerComplete):
2592         (gl::Texture2D::isMipmapComplete):
2593         (gl::Texture2D::getBaseTexture):
2594         (gl::Texture2D::createTexture):
2595         (gl::Texture2D::updateTexture):
2596         (gl::Texture2D::convertToRenderTarget):
2597         (gl::Texture2D::generateMipmaps):
2598         (gl::Texture2D::getRenderbuffer):
2599         (gl::Texture2D::getRenderTarget):
2600         (gl::Texture2D::getStorage):
2601         (gl::TextureStorageCubeMap::TextureStorageCubeMap):
2602         (gl::TextureStorageCubeMap::~TextureStorageCubeMap):
2603         (gl::TextureStorageCubeMap::getCubeMapSurface):
2604         (gl::TextureStorageCubeMap::getBaseTexture):
2605         (gl::TextureStorageCubeMap::getRenderTargetSerial):
2606         (gl::TextureCubeMap::TextureCubeMap):
2607         (gl::TextureCubeMap::~TextureCubeMap):
2608         (gl::TextureCubeMap::getWidth):
2609         (gl::TextureCubeMap::getHeight):
2610         (gl::TextureCubeMap::getInternalFormat):
2611         (gl::TextureCubeMap::getType):
2612         (gl::TextureCubeMap::setCompressedImage):
2613         (gl::TextureCubeMap::commitRect):
2614         (gl::TextureCubeMap::subImage):
2615         (gl::TextureCubeMap::subImageCompressed):
2616         (gl::TextureCubeMap::isSamplerComplete):
2617         (gl::TextureCubeMap::isCubeComplete):
2618         (gl::TextureCubeMap::isMipmapCubeComplete):
2619         (gl::TextureCubeMap::getBaseTexture):
2620         (gl::TextureCubeMap::createTexture):
2621         (gl::TextureCubeMap::updateTexture):
2622         (gl::TextureCubeMap::convertToRenderTarget):
2623         (gl::TextureCubeMap::setImage):
2624         (gl::TextureCubeMap::redefineImage):
2625         (gl::TextureCubeMap::copyImage):
2626         (gl::TextureCubeMap::copySubImage):
2627         (gl::TextureCubeMap::storage):
2628         (gl::TextureCubeMap::generateMipmaps):
2629         (gl::TextureCubeMap::getRenderbuffer):
2630         (gl::TextureCubeMap::getRenderTarget):
2631         (gl::TextureCubeMap::getStorage):
2632         * src/libGLESv2/Texture.h:
2633         (gl::Image::markDirty):
2634         (gl::Image::markClean):
2635         (gl::Image::getWidth):
2636         (gl::Image::getHeight):
2637         (gl::Image::getFormat):
2638         (gl::Image::getType):
2639         (gl::Image::isDirty):
2640         * src/libGLESv2/VertexDataManager.cpp:
2641         (gl::elementsInBuffer):
2642         (gl::VertexDataManager::VertexDataManager):
2643         (gl::VertexDataManager::writeAttributeData):
2644         (gl::VertexDataManager::prepareVertexData):
2645         (gl::VertexBuffer::VertexBuffer):
2646         (gl::VertexBuffer::getSerial):
2647         (gl::VertexBuffer::issueSerial):
2648         (gl::StreamingVertexBuffer::reserveRequiredSpace):
2649         (gl::StaticVertexBuffer::map):
2650         (gl::StaticVertexBuffer::reserveRequiredSpace):
2651         (gl::StaticVertexBuffer::lookupAttribute):
2652         * src/libGLESv2/VertexDataManager.h:
2653         (gl::ArrayVertexBuffer::size):
2654         * src/libGLESv2/geometry/IndexDataManager.cpp: Removed.
2655         * src/libGLESv2/geometry/IndexDataManager.h: Removed.
2656         * src/libGLESv2/geometry/VertexDataManager.cpp: Removed.
2657         * src/libGLESv2/geometry/VertexDataManager.h: Removed.
2658         * src/libGLESv2/geometry/vertexconversion.h: Removed.
2659         * src/libGLESv2/libGLESv2.cpp:
2660         (validateSubImageParams):
2661         (validReadFormatType):
2662         (Extension::glBindTexImage):
2663         * src/libGLESv2/libGLESv2.def:
2664         * src/libGLESv2/libGLESv2.rc:
2665         * src/libGLESv2/libGLESv2.vcproj:
2666         * src/libGLESv2/main.cpp:
2667         (gl::getNonLostContext):
2668         (gl::checkDeviceLost):
2669         * src/libGLESv2/main.h:
2670         * src/libGLESv2/utilities.cpp:
2671         (gl::UniformExternalComponentCount):
2672         (gl::UniformInternalComponentCount):
2673         (gl::UniformComponentSize):
2674         (gl::UniformInternalSize):
2675         (gl::UniformExternalSize):
2676         (gl::ComputeCompressedSize):
2677         (gl::IsCompressed):
2678         (gl::ExtractFormat):
2679         (gl::ExtractType):
2680         (dx2es::IsFloat32Format):
2681         (dx2es::IsFloat16Format):
2682         * src/libGLESv2/utilities.h:
2683         (isDeviceLostError):
2684
2685 2011-11-11  Darin Adler  <darin@apple.com>
2686
2687         * ANGLE.xcodeproj/project.pbxproj: Let a newer Xcode update this file.
2688         If an older Xcode downgrades this file and we have a risk of some kind of
2689         oscillating commit situation, please contact me so I know not to do this again.
2690
2691 2011-09-19  Adam Roben  <aroben@apple.com>
2692
2693         Let Xcode 4 do its thang with ANGLE.xcodeproj
2694
2695         * ANGLE.xcodeproj/project.pbxproj:
2696
2697 2011-09-13  Anders Carlsson  <andersca@apple.com>
2698
2699         Disable C++ exceptions when building with clang
2700         https://bugs.webkit.org/show_bug.cgi?id=68031
2701         <rdar://problem/9556880>
2702
2703         Reviewed by Mark Rowe.
2704
2705         * Configurations/Base.xcconfig:
2706
2707 2011-09-08  Andras Becsi  <andras.becsi@nokia.com>
2708
2709         [Qt] Build fails with strict compiler
2710         https://bugs.webkit.org/show_bug.cgi?id=67778
2711
2712         Reviewed by Csaba Osztrogonác.
2713
2714         * src/compiler/glslang_lex.cpp: Regenerate with generate_glslang_lexer.sh using a newer flex
2715         to suppress warning and fix the build when using [-Werror=unused-result]
2716
2717 2011-08-12  Mark Rowe  <mrowe@apple.com>
2718
2719         Be more forward-looking in the choice of compiler.
2720
2721         Rubber-stamped by Jon Honeycutt.
2722
2723         * Configurations/CompilerVersion.xcconfig:
2724
2725 2011-08-11  Renata Hodovan  <reni@webkit.org>
2726
2727         [Qt]Fix warnings after r92805.
2728
2729         Reviewed by Csaba Osztrogonác.
2730
2731         Control reached the end non-void functions.
2732
2733         * src/compiler/ossource_posix.cpp:
2734         (OS_AllocTLSIndex):
2735         (OS_SetTLSValue):
2736
2737 2011-08-11  Renata Hodovan  <reni@webkit.org>
2738
2739         Build fix on Qt Windows 32-bit Release/Debug after r92805.
2740
2741         Unreviewed.
2742
2743         * src/compiler/ossource_posix.cpp:
2744         (OS_FreeTLSIndex):
2745
2746 2011-08-04  Mark Rowe  <mrowe@apple.com>
2747
2748         Future-proof Xcode configuration settings.
2749
2750         * Configurations/Base.xcconfig:
2751         * Configurations/CompilerVersion.xcconfig:
2752         * Configurations/DebugRelease.xcconfig:
2753
2754 2011-06-30  Mark Rowe  <mrowe@apple.com>
2755
2756         Rubber-stamped by Dan Bernstein.
2757
2758         ANGLE shouldn't try to use internal SDKs. It doesn't need them!
2759
2760         * Configurations/Base.xcconfig:
2761
2762 2011-06-20  Zhenyao Mo  <zmo@google.com>
2763
2764         Reviewed by Kenneth Russell.
2765
2766         Update ANGLE to r696
2767         https://bugs.webkit.org/show_bug.cgi?id=56396
2768
2769         * ANGLE.xcodeproj/project.pbxproj:
2770         * include/EGL/eglext.h:
2771         * include/GLSLANG/ShaderLang.h:
2772         * src/build_angle.xcodeproj/project.pbxproj:
2773         * src/common/debug.cpp:
2774         (gl::output):
2775         (gl::trace):
2776         (gl::perfActive):
2777         (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
2778         (gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
2779         * src/common/debug.h:
2780         * src/common/version.h: Added.
2781         * src/compiler/CodeGenGLSL.cpp:
2782         (ConstructCompiler):
2783         * src/compiler/CodeGenHLSL.cpp:
2784         (ConstructCompiler):
2785         * src/compiler/Compiler.cpp:
2786         (TCompiler::compile):
2787         (TCompiler::mapLongVariableNames):
2788         (TCompiler::getMappedNameMaxLength):
2789         (TCompiler::getExtensionBehavior):
2790         * src/compiler/ConstantUnion.h:
2791         (ConstantUnion::operator==):
2792         (ConstantUnion::operator>):
2793         (ConstantUnion::operator<):
2794         * src/compiler/ExtensionBehavior.h:
2795         (getBehaviorString):
2796         * src/compiler/ForLoopUnroll.cpp: Added.
2797         (ForLoopUnroll::FillLoopIndexInfo):
2798         (ForLoopUnroll::Step):
2799         (ForLoopUnroll::SatisfiesLoopCondition):
2800         (ForLoopUnroll::NeedsToReplaceSymbolWithValue):
2801         (ForLoopUnroll::GetLoopIndexValue):
2802         (ForLoopUnroll::Push):
2803         (ForLoopUnroll::Pop):
2804         (ForLoopUnroll::getLoopIncrement):
2805         (ForLoopUnroll::evaluateIntConstant):
2806         * src/compiler/ForLoopUnroll.h: Added.
2807         (ForLoopUnroll::ForLoopUnroll):
2808         * src/compiler/Initialize.cpp:
2809         (BuiltInFunctionsVertex):
2810         * src/compiler/MapLongVariableNames.cpp: Added.
2811         (MapLongVariableNames::MapLongVariableNames):
2812         (MapLongVariableNames::visitSymbol):
2813         (MapLongVariableNames::visitConstantUnion):
2814         (MapLongVariableNames::visitBinary):
2815         (MapLongVariableNames::visitUnary):
2816         (MapLongVariableNames::visitSelection):
2817         (MapLongVariableNames::visitAggregate):
2818         (MapLongVariableNames::visitLoop):
2819         (MapLongVariableNames::visitBranch):
2820         (MapLongVariableNames::mapVaryingLongName):
2821         * src/compiler/MapLongVariableNames.h: Added.
2822         * src/compiler/OutputESSL.cpp: Added.
2823         (TOutputESSL::TOutputESSL):
2824         (TOutputESSL::writeVariablePrecision):
2825         * src/compiler/OutputESSL.h: Added.
2826         * src/compiler/OutputGLSL.cpp:
2827         (TOutputGLSL::TOutputGLSL):
2828         (TOutputGLSL::writeVariablePrecision):
2829         * src/compiler/OutputGLSL.h:
2830         * src/compiler/OutputGLSLBase.cpp: Added.
2831         (TOutputGLSLBase::TOutputGLSLBase):
2832         (TOutputGLSLBase::writeTriplet):
2833         (TOutputGLSLBase::writeVariableType):
2834         (TOutputGLSLBase::writeFunctionParameters):
2835         (TOutputGLSLBase::writeConstantUnion):
2836         (TOutputGLSLBase::visitSymbol):
2837         (TOutputGLSLBase::visitConstantUnion):
2838         (TOutputGLSLBase::visitBinary):
2839         (TOutputGLSLBase::visitUnary):
2840         (TOutputGLSLBase::visitSelection):
2841         (TOutputGLSLBase::visitAggregate):
2842         (TOutputGLSLBase::visitLoop):
2843         (TOutputGLSLBase::visitBranch):
2844         (TOutputGLSLBase::visitCodeBlock):
2845         * src/compiler/OutputGLSLBase.h: Added.
2846         (TOutputGLSLBase::objSink):
2847         * src/compiler/OutputHLSL.cpp:
2848         (sh::OutputHLSL::OutputHLSL):
2849         (sh::OutputHLSL::header):
2850         (sh::OutputHLSL::visitUnary):
2851         (sh::OutputHLSL::visitAggregate):
2852         (sh::OutputHLSL::visitSelection):
2853         (sh::OutputHLSL::visitLoop):
2854         (sh::OutputHLSL::visitBranch):
2855         (sh::OutputHLSL::handleExcessiveLoop):
2856         (sh::OutputHLSL::outputLineDirective):
2857         * src/compiler/OutputHLSL.h:
2858         * src/compiler/ParseHelper.cpp:
2859         (TParseContext::precisionErrorCheck):
2860         (TParseContext::constructorErrorCheck):
2861         (TParseContext::nonInitErrorCheck):
2862         * src/compiler/ParseHelper.h:
2863         (TParseContext::TParseContext):
2864         * src/compiler/ShHandle.h:
2865         * src/compiler/ShaderLang.cpp:
2866         (getVariableInfo):
2867         (ShConstructCompiler):
2868         (ShGetInfo):
2869         (ShGetActiveAttrib):
2870         (ShGetActiveUniform):
2871         * src/compiler/TranslatorESSL.cpp: Added.
2872         (TranslatorESSL::TranslatorESSL):
2873         (TranslatorESSL::translate):
2874         (TranslatorESSL::writeExtensionBehavior):
2875         * src/compiler/TranslatorESSL.h: Added.
2876         * src/compiler/ValidateLimitations.cpp:
2877         (ValidateLimitations::visitBinary):
2878         (ValidateLimitations::visitLoop):
2879         * src/compiler/ValidateLimitations.h:
2880         * src/compiler/VariableInfo.cpp:
2881         (getVariableInfo):
2882         (getBuiltInVariableInfo):
2883         (getUserDefinedVariableInfo):
2884         (CollectAttribsUniforms::visitAggregate):
2885         * src/compiler/VariableInfo.h:
2886         * src/compiler/VersionGLSL.cpp:
2887         (TVersionGLSL::visitSymbol):
2888         (TVersionGLSL::visitConstantUnion):
2889         (TVersionGLSL::visitBinary):
2890         (TVersionGLSL::visitUnary):
2891         (TVersionGLSL::visitSelection):
2892         (TVersionGLSL::visitAggregate):
2893         (TVersionGLSL::visitLoop):
2894         (TVersionGLSL::visitBranch):
2895         * src/compiler/VersionGLSL.h:
2896         * src/compiler/glslang.y:
2897         * src/compiler/glslang_tab.cpp:
2898         * src/compiler/glslang_tab.h:
2899         * src/compiler/intermediate.h:
2900         (TIntermLoop::TIntermLoop):
2901         (TIntermLoop::setUnrollFlag):
2902         (TIntermLoop::getUnrollFlag):
2903         (TIntermSymbol::TIntermSymbol):
2904         (TIntermSymbol::setId):
2905         (TIntermSymbol::setSymbol):
2906         (TIntermSymbol::getOriginalSymbol):
2907         (TIntermAggregate::TIntermAggregate):
2908         (TIntermAggregate::setEndLine):
2909         (TIntermAggregate::getEndLine):
2910         * src/compiler/preprocessor/atom.c:
2911         (AddString):
2912         * src/compiler/preprocessor/compile.h:
2913         * src/compiler/preprocessor/cpp.c:
2914         (CPPelse):
2915         (eval):
2916         (CPPif):
2917         (CPPifdef):
2918         (readCPPline):
2919         (ChkCorrectElseNesting):
2920         * src/compiler/preprocessor/cppstruct.c:
2921         (ResetPreprocessor):
2922         * src/compiler/preprocessor/scanner.c:
2923         (byte_scan):
2924         (yylex_CPP):
2925         * src/compiler/preprocessor/scanner.h:
2926         * src/libEGL/Config.cpp:
2927         (egl::Config::Config):
2928         (egl::Config::set):
2929         (egl::ConfigSet::add):
2930         (egl::ConfigSet::getConfigs):
2931         * src/libEGL/Config.h:
2932         * src/libEGL/Display.cpp:
2933         (egl::Display::Display):
2934         (egl::Display::initialize):
2935         (egl::Display::terminate):
2936         (egl::Display::getConfigAttrib):
2937         (egl::Display::createDevice):
2938         (egl::Display::createWindowSurface):
2939         (egl::Display::createOffscreenSurface):
2940         (egl::Display::createContext):
2941         (egl::Display::destroyContext):
2942         (egl::Display::isInitialized):
2943         (egl::Display::getAdapterIdentifier):
2944         (egl::Display::isDeviceLost):
2945         (egl::Display::getBufferPool):
2946         (egl::Display::initExtensionString):
2947         (egl::Display::getExtensionString):
2948         (egl::Display::getVertexTextureSupport):
2949         (egl::Display::getNonPower2TextureSupport):
2950         * src/libEGL/Display.h:
2951         (egl::Display::isD3d9ExDevice):
2952         * src/libEGL/Surface.cpp:
2953         (egl::Surface::Surface):
2954         (egl::Surface::initialize):
2955         (egl::Surface::release):
2956         (egl::Surface::resetSwapChain):
2957         (egl::SurfaceWindowProc):
2958         (egl::Surface::subclassWindow):
2959         (egl::Surface::unsubclassWindow):
2960         (egl::Surface::swap):
2961         (egl::Surface::getRenderTarget):
2962         (egl::Surface::getOffscreenTexture):
2963         (egl::Surface::getTextureFormat):
2964         (egl::Surface::getTextureTarget):
2965         (egl::Surface::setBoundTexture):
2966         (egl::Surface::getBoundTexture):
2967         (egl::Surface::getFormat):
2968         * src/libEGL/Surface.h:
2969         (egl::Surface::getShareHandle):
2970         * src/libEGL/libEGL.cpp:
2971         (validateDisplay):
2972         (validateConfig):
2973         (validateContext):
2974         (validateSurface):
2975         * src/libEGL/libEGL.rc: Added.
2976         * src/libEGL/libEGL.vcproj:
2977         * src/libEGL/main.cpp:
2978         (DllMain):
2979         * src/libEGL/main.h:
2980         * src/libEGL/resource.h: Added.
2981         * src/libGLESv2/Blit.cpp:
2982         (gl::Blit::initGeometry):
2983         (gl::Blit::copy):
2984         * src/libGLESv2/Blit.h:
2985         * src/libGLESv2/Buffer.cpp:
2986         (gl::Buffer::Buffer):
2987         (gl::Buffer::~Buffer):
2988         (gl::Buffer::bufferData):
2989         (gl::Buffer::bufferSubData):
2990         (gl::Buffer::getStaticVertexBuffer):
2991         (gl::Buffer::getStaticIndexBuffer):
2992         (gl::Buffer::invalidateStaticData):
2993         (gl::Buffer::promoteStaticUsage):
2994         * src/libGLESv2/Buffer.h:
2995         * src/libGLESv2/Context.cpp:
2996         (gl::Context::Context):
2997         (gl::Context::~Context):
2998         (gl::Context::makeCurrent):
2999         (gl::Context::markAllStateDirty):
3000         (gl::Context::setActiveSampler):
3001         (gl::Context::createFramebuffer):
3002         (gl::Context::createFence):
3003         (gl::Context::deleteFramebuffer):
3004         (gl::Context::deleteFence):
3005         (gl::Context::bindTexture2D):
3006         (gl::Context::bindTextureCubeMap):
3007         (gl::Context::getTexture2D):
3008         (gl::Context::getTextureCubeMap):
3009         (gl::Context::getSamplerTexture):
3010         (gl::Context::getIntegerv):
3011         (gl::Context::applyRenderTarget):
3012         (gl::Context::applyState):
3013         (gl::Context::applyVertexBuffer):
3014         (gl::Context::applyShaders):
3015         (gl::Context::applyTextures):
3016         (gl::Context::readPixels):
3017         (gl::Context::clear):
3018         (gl::Context::drawArrays):
3019         (gl::Context::drawElements):
3020         (gl::Context::finish):
3021         (gl::Context::flush):
3022         (gl::Context::drawClosingLine):
3023         (gl::Context::getMaximumVertexTextureImageUnits):
3024         (gl::Context::getMaximumCombinedTextureImageUnits):
3025         (gl::Context::supportsNonPower2Texture):
3026         (gl::Context::detachTexture):
3027         (gl::Context::getIncompleteTexture):
3028         (gl::Context::initExtensionString):
3029         (gl::Context::blitFramebuffer):
3030         (gl::VertexDeclarationCache::VertexDeclarationCache):
3031         (gl::VertexDeclarationCache::~VertexDeclarationCache):
3032         (gl::VertexDeclarationCache::applyDeclaration):
3033         * src/libGLESv2/Context.h:
3034         * src/libGLESv2/Framebuffer.cpp:
3035         (gl::Framebuffer::lookupRenderbuffer):
3036         (gl::Framebuffer::completeness):
3037         * src/libGLESv2/Framebuffer.h:
3038         * src/libGLESv2/HandleAllocator.cpp: Added.
3039         (gl::HandleAllocator::HandleAllocator):
3040         (gl::HandleAllocator::~HandleAllocator):
3041         (gl::HandleAllocator::setBaseHandle):
3042         (gl::HandleAllocator::allocate):
3043         (gl::HandleAllocator::release):
3044         * src/libGLESv2/HandleAllocator.h: Added.
3045         * src/libGLESv2/IndexDataManager.cpp: Added.
3046         (gl::IndexDataManager::IndexDataManager):
3047         (gl::IndexDataManager::~IndexDataManager):
3048         (gl::convertIndices):
3049         (gl::computeRange):
3050         (gl::IndexDataManager::prepareIndexData):
3051         (gl::IndexDataManager::indexSize):
3052         (gl::IndexDataManager::typeSize):
3053         (gl::IndexBuffer::IndexBuffer):
3054         (gl::IndexBuffer::~IndexBuffer):
3055         (gl::IndexBuffer::getBuffer):
3056         (gl::IndexBuffer::unmap):
3057         (gl::StreamingIndexBuffer::StreamingIndexBuffer):
3058         (gl::StreamingIndexBuffer::~StreamingIndexBuffer):
3059         (gl::StreamingIndexBuffer::map):
3060         (gl::StreamingIndexBuffer::reserveSpace):
3061         (gl::StaticIndexBuffer::StaticIndexBuffer):
3062         (gl::StaticIndexBuffer::~StaticIndexBuffer):
3063         (gl::StaticIndexBuffer::map):
3064         (gl::StaticIndexBuffer::reserveSpace):
3065         (gl::StaticIndexBuffer::lookupType):
3066         (gl::StaticIndexBuffer::lookupRange):
3067         (gl::StaticIndexBuffer::addRange):
3068         * src/libGLESv2/IndexDataManager.h: Added.
3069         (gl::IndexBuffer::size):
3070         * src/libGLESv2/Program.cpp:
3071         (gl::Program::getSemanticIndex):
3072         (gl::Program::getSamplerMapping):
3073         (gl::Program::getSamplerTextureType):
3074         (gl::Program::compileToBinary):
3075         (gl::Program::packVaryings):
3076         (gl::Program::linkVaryings):
3077         (gl::Program::link):
3078         (gl::Program::linkUniforms):
3079         (gl::Program::defineUniform):
3080         (gl::Program::applyUniform1iv):
3081         (gl::Program::appendToInfoLogSanitized):
3082         (gl::Program::unlink):
3083         (gl::Program::getActiveUniformMaxLength):
3084         (gl::Program::validate):
3085         (gl::Program::validateSamplers):
3086         * src/libGLESv2/Program.h:
3087         * src/libGLESv2/Renderbuffer.cpp:
3088         (gl::Renderbuffer::getWidth):
3089         (gl::Renderbuffer::getHeight):
3090         (gl::Renderbuffer::getInternalFormat):
3091         (gl::Renderbuffer::getRedSize):
3092         (gl::Renderbuffer::getGreenSize):
3093         (gl::Renderbuffer::getBlueSize):
3094         (gl::Renderbuffer::getAlphaSize):
3095         (gl::Renderbuffer::getDepthSize):
3096         (gl::Renderbuffer::getStencilSize):
3097         (gl::Renderbuffer::getSamples):
3098         (gl::RenderbufferStorage::RenderbufferStorage):
3099         (gl::RenderbufferStorage::getWidth):
3100         (gl::RenderbufferStorage::getHeight):
3101         (gl::RenderbufferStorage::getInternalFormat):
3102         (gl::RenderbufferStorage::getRedSize):
3103         (gl::RenderbufferStorage::getGreenSize):
3104         (gl::RenderbufferStorage::getBlueSize):
3105         (gl::RenderbufferStorage::getAlphaSize):
3106         (gl::RenderbufferStorage::getDepthSize):
3107         (gl::RenderbufferStorage::getStencilSize):
3108         (gl::RenderbufferStorage::getD3DFormat):
3109         (gl::Colorbuffer::Colorbuffer):
3110         (gl::Colorbuffer::getWidth):
3111         (gl::Colorbuffer::getHeight):
3112         (gl::Colorbuffer::getInternalFormat):
3113         (gl::Colorbuffer::getType):
3114         (gl::Colorbuffer::getD3DFormat):
3115         (gl::Colorbuffer::isColorbuffer):
3116         (gl::Colorbuffer::getRenderTarget):
3117         (gl::DepthStencilbuffer::DepthStencilbuffer):
3118         (gl::Depthbuffer::Depthbuffer):
3119         (gl::Stencilbuffer::Stencilbuffer):
3120         * src/libGLESv2/Renderbuffer.h:
3121         * src/libGLESv2/ResourceManager.cpp:
3122         (gl::ResourceManager::createBuffer):
3123         (gl::ResourceManager::createShader):
3124         (gl::ResourceManager::createProgram):
3125         (gl::ResourceManager::createTexture):
3126         (gl::ResourceManager::createRenderbuffer):
3127         (gl::ResourceManager::deleteBuffer):
3128         (gl::ResourceManager::deleteShader):
3129         (gl::ResourceManager::deleteProgram):
3130         (gl::ResourceManager::deleteTexture):
3131         (gl::ResourceManager::deleteRenderbuffer):
3132         (gl::ResourceManager::checkTextureAllocation):
3133         * src/libGLESv2/ResourceManager.h:
3134         * src/libGLESv2/Shader.cpp:
3135         (gl::Shader::Shader):
3136         (gl::Shader::compileToHLSL):
3137         * src/libGLESv2/Shader.h:
3138         * src/libGLESv2/Texture.cpp:
3139         (gl::Texture::Image::Image):
3140         (gl::Texture::Image::~Image):
3141         (gl::Texture::Image::isRenderable):
3142         (gl::Texture::Image::getD3DFormat):
3143         (gl::Texture::Texture):
3144         (gl::Texture::setMinFilter):
3145         (gl::Texture::setMagFilter):
3146         (gl::Texture::setWrapS):
3147         (gl::Texture::setWrapT):
3148         (gl::Texture::loadImageData):
3149         (gl::Texture::loadAlphaImageData):
3150         (gl::Texture::loadAlphaFloatImageData):
3151         (gl::Texture::loadAlphaHalfFloatImageData):
3152         (gl::Texture::loadLuminanceImageData):
3153         (gl::Texture::loadLuminanceFloatImageData):
3154         (gl::Texture::loadLuminanceHalfFloatImageData):
3155         (gl::Texture::loadLuminanceAlphaImageData):
3156         (gl::Texture::loadLuminanceAlphaFloatImageData):
3157         (gl::Texture::loadLuminanceAlphaHalfFloatImageData):
3158         (gl::Texture::loadRGBUByteImageData):
3159         (gl::Texture::loadRGB565ImageData):
3160         (gl::Texture::loadRGBFloatImageData):
3161         (gl::Texture::loadRGBHalfFloatImageData):
3162         (gl::Texture::loadRGBAUByteImageDataSSE2):
3163         (gl::Texture::loadRGBAUByteImageData):
3164         (gl::Texture::loadRGBA4444ImageData):
3165         (gl::Texture::loadRGBA5551ImageData):
3166         (gl::Texture::loadRGBAFloatImageData):
3167         (gl::Texture::loadRGBAHalfFloatImageData):
3168         (gl::Texture::loadBGRAImageData):
3169         (gl::Texture::loadCompressedImageData):
3170         (gl::Texture::createSurface):
3171         (gl::Texture::setImage):
3172         (gl::Texture::setCompressedImage):
3173         (gl::Texture::subImage):
3174         (gl::Texture::subImageCompressed):
3175         (gl::Texture::copyToImage):
3176         (gl::Texture::getTexture):
3177         (gl::Texture::isDirtyParameter):
3178         (gl::Texture::isDirtyImage):
3179         (gl::Texture::resetDirty):
3180         (gl::Texture::getSerial):
3181         (gl::Texture::creationLevels):
3182         (gl::Texture::levelCount):
3183         (gl::Texture::issueSerial):
3184         (gl::Texture2D::Texture2D):
3185         (gl::Texture2D::~Texture2D):
3186         (gl::Texture2D::getWidth):
3187         (gl::Texture2D::getHeight):
3188         (gl::Texture2D::getInternalFormat):
3189         (gl::Texture2D::getType):
3190         (gl::Texture2D::getD3DFormat):
3191         (gl::Texture2D::redefineTexture):
3192         (gl::Texture2D::setImage):
3193         (gl::Texture2D::bindTexImage):
3194         (gl::Texture2D::releaseTexImage):
3195         (gl::Texture2D::setCompressedImage):
3196         (gl::Texture2D::commitRect):
3197         (gl::Texture2D::copyImage):
3198         (gl::Texture2D::copySubImage):
3199         (gl::Texture2D::isComplete):
3200         (gl::Texture2D::isCompressed):
3201         (gl::Texture2D::getBaseTexture):
3202         (gl::Texture2D::createTexture):
3203         (gl::Texture2D::updateTexture):
3204         (gl::Texture2D::convertToRenderTarget):
3205         (gl::Texture2D::generateMipmaps):
3206         (gl::Texture2D::getRenderbuffer):
3207         (gl::Texture2D::getRenderTarget):
3208         (gl::TextureCubeMap::getWidth):
3209         (gl::TextureCubeMap::getHeight):
3210         (gl::TextureCubeMap::getInternalFormat):
3211         (gl::TextureCubeMap::getType):
3212         (gl::TextureCubeMap::getD3DFormat):
3213         (gl::TextureCubeMap::setImagePosX):
3214         (gl::TextureCubeMap::setImageNegX):
3215         (gl::TextureCubeMap::setImagePosY):
3216         (gl::TextureCubeMap::setImageNegY):
3217         (gl::TextureCubeMap::setImagePosZ):
3218         (gl::TextureCubeMap::setImageNegZ):
3219         (gl::TextureCubeMap::setCompressedImage):
3220         (gl::TextureCubeMap::commitRect):
3221         (gl::TextureCubeMap::isComplete):
3222         (gl::TextureCubeMap::isCompressed):
3223         (gl::TextureCubeMap::getBaseTexture):
3224         (gl::TextureCubeMap::createTexture):
3225         (gl::TextureCubeMap::updateTexture):
3226         (gl::TextureCubeMap::convertToRenderTarget):
3227         (gl::TextureCubeMap::setImage):
3228         (gl::TextureCubeMap::redefineTexture):
3229         (gl::TextureCubeMap::copyImage):
3230         (gl::TextureCubeMap::getCubeMapSurface):
3231         (gl::TextureCubeMap::copySubImage):
3232         (gl::TextureCubeMap::generateMipmaps):
3233         (gl::TextureCubeMap::getRenderbuffer):
3234         (gl::TextureCubeMap::getRenderTarget):
3235         * src/libGLESv2/Texture.h:
3236         * src/libGLESv2/VertexDataManager.cpp: Added.
3237         (gl::VertexDataManager::VertexDataManager):
3238         (gl::VertexDataManager::~VertexDataManager):
3239         (gl::VertexDataManager::writeAttributeData):
3240         (gl::VertexDataManager::prepareVertexData):
3241         (gl::VertexDataManager::spaceRequired):
3242         (gl::VertexDataManager::checkVertexCaps):
3243         (gl::VertexDataManager::typeIndex):
3244         (gl::VertexBuffer::VertexBuffer):
3245         (gl::VertexBuffer::~VertexBuffer):
3246         (gl::VertexBuffer::unmap):
3247         (gl::VertexBuffer::getBuffer):
3248         (gl::ConstantVertexBuffer::ConstantVertexBuffer):
3249         (gl::ConstantVertexBuffer::~ConstantVertexBuffer):
3250         (gl::ArrayVertexBuffer::ArrayVertexBuffer):
3251         (gl::ArrayVertexBuffer::~ArrayVertexBuffer):
3252         (gl::ArrayVertexBuffer::addRequiredSpace):
3253         (gl::ArrayVertexBuffer::addRequiredSpaceFor):
3254         (gl::StreamingVertexBuffer::StreamingVertexBuffer):
3255         (gl::StreamingVertexBuffer::~StreamingVertexBuffer):
3256         (gl::StreamingVertexBuffer::map):
3257         (gl::StreamingVertexBuffer::reserveRequiredSpace):
3258         (gl::StaticVertexBuffer::StaticVertexBuffer):
3259         (gl::StaticVertexBuffer::~StaticVertexBuffer):
3260         (gl::StaticVertexBuffer::map):
3261         (gl::StaticVertexBuffer::reserveRequiredSpace):
3262         (gl::StaticVertexBuffer::lookupAttribute):
3263         (gl::VertexDataManager::formatConverter):
3264         * src/libGLESv2/VertexDataManager.h: Added.
3265         (gl::ArrayVertexBuffer::size):
3266         (gl::VertexDataManager::dirtyCurrentValue):
3267         * src/libGLESv2/libGLESv2.cpp:
3268         (validImageSize):
3269         (Extension::glBindTexImage):
3270         * src/libGLESv2/libGLESv2.def:
3271         * src/libGLESv2/libGLESv2.rc: Added.
3272         * src/libGLESv2/libGLESv2.vcproj:
3273         * src/libGLESv2/main.cpp:
3274         (error):
3275         * src/libGLESv2/mathutil.h:
3276         (gl::clamp):
3277         (gl::clamp01):
3278         (gl::transformPixelRect):
3279         (gl::transformPixelYOffset):
3280         (gl::adjustWinding):
3281         (gl::supportsSSE2):
3282         * src/libGLESv2/resource.h: Added.
3283         * src/libGLESv2/utilities.cpp:
3284         (gl::ComputeCompressedPitch):
3285         (es2dx::ConvertCubeFace):
3286         (es2dx::ConvertPrimitiveType):
3287         (es2dx::ConvertRenderbufferFormat):
3288         (es2dx::GetMultisampleTypeFromSamples):
3289         (dx2es::GetStencilSize):
3290         (dx2es::GetAlphaSize):
3291         (dx2es::GetRedSize):
3292         (dx2es::GetGreenSize):
3293         (dx2es::GetBlueSize):
3294         (dx2es::GetDepthSize):
3295         (getTempPath):
3296         (writeFile):
3297         * src/libGLESv2/utilities.h:
3298         * src/libGLESv2/vertexconversion.h: Added.
3299         (gl::Identity::convert):
3300         (gl::Cast::convert):
3301         (gl::Normalize::convert):
3302         (gl::FixedToFloat::convert):
3303         (gl::SimpleDefaultValues::zero):
3304         (gl::SimpleDefaultValues::one):
3305         (gl::NormalizedDefaultValues::zero):
3306         (gl::NormalizedDefaultValues::one):
3307         (gl::VertexDataConverter::convertArray):
3308         (gl::VertexDataConverter::pointerAddBytes):
3309         (gl::VertexDataConverter::copyComponent):
3310
3311 2011-05-24  David Kilzer  <ddkilzer@apple.com>
3312
3313         Part 2 of 2: <http://webkit.org/b/60805> Enable -Wnewline-eof on ANGLE
3314
3315         Reviewed by Adam Roben.
3316
3317         * Configurations/Base.xcconfig:
3318         (GCC_WARN_ABOUT_MISSING_NEWLINE): Added. Set to YES.
3319
3320 2011-05-23  David Kilzer  <ddkilzer@apple.com>
3321
3322         Part 1 of 2: <http://webkit.org/b/60805> Enable -Wnewline-eof on ANGLE
3323
3324         Merge ANGLE upstream commit r653 for Issue 154.
3325
3326         * src/compiler/PoolAlloc.h: Added newline to end of file.
3327         * src/compiler/ShHandle.h: Ditto.
3328         * src/libEGL/Display.cpp: Ditto.
3329
3330 2011-05-16  David Kilzer  <ddkilzer@apple.com>
3331
3332         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
3333         <rdar://problem/9446430>
3334
3335         Reviewed by Mark Rowe.
3336
3337         * Configurations/Base.xcconfig: Fixed typo.
3338
3339 2011-05-04  David Kilzer  <ddkilzer@apple.com>
3340
3341         Part 2 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE
3342
3343         Reviewed by Adam Barth.
3344
3345         * Configurations/Base.xcconfig:
3346         (GCC_TREAT_WARNINGS_AS_ERRORS): Set to YES.
3347
3348 2011-05-04  David Kilzer  <ddkilzer@apple.com>
3349
3350         Part 1 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE
3351
3352         Merge ANGLE upstream commits r572, r573, r574, r575.
3353
3354         This unblocks enabling -Werror on ANGLE.  Since all changes are
3355         in the upstream repository, they may be safely overwritten
3356         during the next ANGLE update.
3357
3358         * src/compiler/ConstantUnion.h:
3359         (ConstantUnion::operator==): Added a default case.
3360         * src/compiler/Intermediate.cpp:
3361         (TIntermBinary::promote): Added parentheses.
3362         * src/compiler/ParseHelper.cpp:
3363         (TParseContext::precisionErrorCheck): Added a default case.
3364         * src/compiler/PoolAlloc.cpp:
3365         (TAllocation::checkGuardBlock): Changed '%u' to '%lu' for size_t
3366         variable.  Put for loop inside #ifdef GUARD_BLOCKS/#endif macros
3367         to fix tautological-compare warning.
3368         (TAllocation::checkAllocList): Added newline to end of file.
3369
3370 2011-04-26  Dan Bernstein  <mitz@apple.com>
3371
3372         Build fix.
3373
3374         * Configurations/CompilerVersion.xcconfig:
3375
3376 2011-04-26  Dan Bernstein  <mitz@apple.com>
3377
3378         Reviewed by Mark Rowe.
3379
3380         Choose the compiler based on the Xcode version for Snow Leopard debug builds.
3381
3382         * Configurations/Base.xcconfig:
3383         * Configurations/CompilerVersion.xcconfig: Added.
3384
3385 2011-03-17  Jeff Miller  <jeffm@apple.com>
3386
3387         Use a consistent set of file patterns in the svn:ignore property for all .xcodeproj directories, specifically:
3388         
3389         *.mode*
3390         *.pbxuser
3391         *.perspective*
3392         project.xcworkspace
3393         xcuserdata
3394
3395         * ANGLE.xcodeproj: Modified property svn:ignore.
3396         * src/build_angle.xcodeproj: Modified property svn:ignore.
3397
3398 2011-01-18  Kenneth Russell  <kbr@google.com>
3399
3400         Unreviewed, Leopard build fix. Remove flex/bison targets for GLSL
3401         grammar because the generated sources are already checked in.
3402
3403         * ANGLE.xcodeproj/project.pbxproj:
3404         * src/build_angle.xcodeproj/project.pbxproj:
3405
3406 2011-01-18  Kenneth Russell  <kbr@google.com>
3407
3408         Unreviewed, release build fix. Explicitly cast away const.
3409
3410         * src/compiler/preprocessor/scanner.c:
3411         (ScanFromString):
3412
3413 2011-01-18  Ben Vanik  <ben.vanik@gmail.com>
3414
3415         Reviewed by Kenneth Russell.
3416
3417         Updating ANGLE in WebKit to r533.
3418         https://bugs.webkit.org/show_bug.cgi?id=47194