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