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