REGRESSION(r225340): WPE port should not be getting EGL X11 types on ANGLE
[WebKit-https.git] / Source / ThirdParty / ANGLE / ChangeLog
1 2018-03-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2
3         REGRESSION(r225340): WPE port should not be getting EGL X11 types on ANGLE
4         https://bugs.webkit.org/show_bug.cgi?id=183749
5
6         Reviewed by Alex Christensen.
7
8         Add back the USE_WPE ifdef.
9
10         * changes.diff:
11         * include/EGL/eglplatform.h:
12
13 2018-03-15  Tim Horton  <timothy_horton@apple.com>
14
15         Add and adopt WK_ALTERNATE_FRAMEWORKS_DIR in ANGLE
16         https://bugs.webkit.org/show_bug.cgi?id=183675
17         <rdar://problem/38515281>
18
19         Reviewed by Dan Bernstein.
20
21         * ANGLE.xcodeproj/project.pbxproj:
22         * Configurations/ANGLE.xcconfig:
23         * Configurations/Base.xcconfig:
24
25 2018-01-27  Dan Bernstein  <mitz@apple.com>
26
27         HaveInternalSDK includes should be "#include?"
28         https://bugs.webkit.org/show_bug.cgi?id=179670
29
30         * Configurations/Base.xcconfig:
31
32 2018-01-18  Dan Bernstein  <mitz@apple.com>
33
34         [Xcode] Streamline and future-proof target-macOS-version-dependent build setting definitions
35         https://bugs.webkit.org/show_bug.cgi?id=181803
36
37         Reviewed by Tim Horton.
38
39         * Configurations/Base.xcconfig: Updated.
40         * Configurations/DebugRelease.xcconfig: Ditto.
41
42 2018-01-09  Dan Bernstein  <mitz@apple.com>
43
44         Removed some empty directories that were left behind
45
46         * src/third_party/murmurhash: Removed.
47         * third_party: Removed.
48         * third_party/deqp: Removed.
49
50 2017-12-14  David Kilzer  <ddkilzer@apple.com>
51
52         Enable -Wstrict-prototypes for WebKit
53         <https://webkit.org/b/180757>
54         <rdar://problem/36024132>
55
56         Rubber-stamped by Joseph Pecoraro.
57
58         * Configurations/Base.xcconfig:
59         (CLANG_WARN_STRICT_PROTOTYPES): Add. Set to YES.
60
61 2017-12-06  Dean Jackson  <dino@apple.com>
62
63         Update ANGLE's changes.diff
64         https://bugs.webkit.org/show_bug.cgi?id=180491
65
66         Reviewed by Antoine Quint.
67
68         Here is the list of things we've changed from the
69         ANGLE commit that we merged in.
70
71         * changes.diff:
72
73 2017-12-06  Dean Jackson  <dino@apple.com>
74
75         Some iOS tests failing after ANGLE update
76         https://bugs.webkit.org/show_bug.cgi?id=180487
77         <rdar://problem/35885969>
78
79         Reviewed by Antoine Quint.
80
81         The iOS OpenGL compiler doesn't like function declarations with
82         nameless array parameters. See:
83         <rdar://problem/35885989> Nameless array parameters in function declaration cause compiler error
84
85         While that is being fixed, tell ANGLE's translator to not cull
86         the names from parameters. This is not a bug in ANGLE, so we won't
87         fix it upstream at the moment.
88
89         * src/compiler/translator/ParseContext.cpp:
90         (sh::TParseContext::addFunctionPrototypeDeclaration):
91
92 2017-12-01  Michael Catanzaro  <mcatanzaro@igalia.com>
93
94         Unreviewed, fix byte order macros and address new -Wunknown-pragmas warnings
95         https://bugs.webkit.org/show_bug.cgi?id=180177
96         <rdar://problem/35774734>
97
98         I'm not sure how this code was developed, as it seems to have been designed for GCC, but it
99         does not use any of GCC's documented byte order macros, and accordingly does not work. Let's
100         fix it to guarantee there are no problems when building with GCC. I presume it should help
101         Clang as well.
102
103         This time, hopefully without breaking 32-bit macOS, where __BYTE_ORDER actually is defined.
104
105         * src/common/third_party/smhasher/src/PMurHash.cpp:
106         (angle::PMurHash32_Process):
107
108 2017-12-01  Ryan Haddad  <ryanhaddad@apple.com>
109
110         Unreviewed, rolling out r225412.
111
112         Breaks 32-bit macOS builds.
113
114         Reverted changeset:
115
116         "Unreviewed, fix byte order macros and address new -Wunknown-
117         pragmas warnings"
118         https://bugs.webkit.org/show_bug.cgi?id=180177
119         https://trac.webkit.org/changeset/225412
120
121 2017-12-01  Michael Catanzaro  <mcatanzaro@igalia.com>
122
123         Unreviewed, fix byte order macros and address new -Wunknown-pragmas warnings
124         https://bugs.webkit.org/show_bug.cgi?id=180177
125         <rdar://problem/35774734>
126
127         I'm not sure how this code was developed, as it seems to have been designed for GCC, but it
128         does not use any of GCC's documented byte order macros, and accordingly does not work. Let's
129         fix it to guarantee there are no problems when building with GCC. I presume it should help
130         Clang as well.
131
132         * src/common/third_party/smhasher/src/PMurHash.cpp:
133         (angle::PMurHash32_Process):
134
135 2017-12-01  Tomoki Imai  <Tomoki.Imai@sony.com>
136
137         Fix WinCairo build break after r225340
138         https://bugs.webkit.org/show_bug.cgi?id=180230
139
140         Unreviewed build fix.
141
142         * CMakeLists.txt: Add missing sources.
143         * PlatformWin.cmake: Add missing sources.
144
145 2017-12-01  Michael Catanzaro  <mcatanzaro@igalia.com>
146
147         Unreviewed, fix -Wunknown-pragmas warnings.
148         https://bugs.webkit.org/show_bug.cgi?id=180177
149
150         It seems GCC has started to warn about unrecognized Clang pragmas. Oh well.
151
152         This is not sent upstream, because the Clang pragmas appear to be downstream WebKit
153         additions. changes.diff is not updated, because it was not updated in yesterday's ANGLE
154         update.
155
156         * include/GLSLANG/ShaderVars.h:
157         * src/libANGLE/Platform.cpp:
158
159 2017-11-30  Alex Christensen  <achristensen@webkit.org>
160
161         Speculative WinCairo fix.
162         https://bugs.webkit.org/show_bug.cgi?id=180177
163
164         * CMakeLists.txt:
165         * PlatformWin.cmake:
166
167 2017-11-30  Ryan Haddad  <ryanhaddad@apple.com>
168
169         Unreviewed build fix, remove executable property from a header file.
170
171         * include/KHR/khrplatform.h: Removed property svn:executable.
172
173 2017-11-30  Dean Jackson  <dino@apple.com>
174
175         Update ANGLE
176         https://bugs.webkit.org/show_bug.cgi?id=180177
177         <rdar://problem/35774734>
178
179         Reviewed by Alex Christensen.
180
181         Huge list of changed files omitted.
182
183 2017-07-18  Andy Estes  <aestes@apple.com>
184
185         [Xcode] Enable CLANG_WARN_RANGE_LOOP_ANALYSIS
186         https://bugs.webkit.org/show_bug.cgi?id=174631
187
188         Reviewed by Tim Horton.
189
190         * Configurations/Base.xcconfig:
191
192 2017-07-18  Andy Estes  <aestes@apple.com>
193
194         [Xcode] Enable CLANG_WARN_OBJC_LITERAL_CONVERSION
195         https://bugs.webkit.org/show_bug.cgi?id=174631
196
197         Reviewed by Sam Weinig.
198
199         * Configurations/Base.xcconfig:
200
201 2017-07-18  Andy Estes  <aestes@apple.com>
202
203         [Xcode] Enable CLANG_WARN_NON_LITERAL_NULL_CONVERSION
204         https://bugs.webkit.org/show_bug.cgi?id=174631
205
206         Reviewed by Dan Bernstein.
207
208         * Configurations/Base.xcconfig:
209
210 2017-07-18  Andy Estes  <aestes@apple.com>
211
212         [Xcode] Enable CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
213         https://bugs.webkit.org/show_bug.cgi?id=174631
214
215         Reviewed by Darin Adler.
216
217         * Configurations/Base.xcconfig:
218
219 2017-07-13  Adrian Perez de Castro  <aperez@igalia.com>
220
221         eglplatform.h does not support Wayland
222         https://bugs.webkit.org/show_bug.cgi?id=163482
223
224         This makes it possible to build WebKitGTK+ when the target system has only Wayland support,
225         but no X11 (and therefore the X11 headers are not present).
226
227         Reviewed by Alex Christensen.
228
229         * include/EGL/eglplatform.h: Add Wayland typedefs when WL_EGL_PLATFORM is defined (for example
230         by including wayland-egl.h before including EGL/egl.h). Also, include the X11 headers only
231         when ANGLE_USE_X11 is defined and, for consistency with Mesa's version of the header, when
232         MESA_EGL_NO_X11_HEADERS is not defined.
233
234 2017-07-03  Andy Estes  <aestes@apple.com>
235
236         [Xcode] Add an experimental setting to build with ccache
237         https://bugs.webkit.org/show_bug.cgi?id=173875
238
239         Reviewed by Tim Horton.
240
241         * Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
242
243 2017-07-01  Dan Bernstein  <mitz@apple.com>
244
245         [macOS] Remove code only needed when building for OS X Yosemite
246         https://bugs.webkit.org/show_bug.cgi?id=174067
247
248         Reviewed by Tim Horton.
249
250         * Configurations/Base.xcconfig:
251         * Configurations/DebugRelease.xcconfig:
252
253 2017-06-10  Dan Bernstein  <mitz@apple.com>
254
255         Reverted r218056 because it made the IDE reindex constantly.
256
257         * Configurations/DebugRelease.xcconfig:
258
259 2017-06-10  Dan Bernstein  <mitz@apple.com>
260
261         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
262         https://bugs.webkit.org/show_bug.cgi?id=173223
263
264         Reviewed by Sam Weinig.
265
266         The rebuilds were happening due to a difference in the compiler options that the IDE and
267         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
268         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
269         specify an appropriate path in CLANG_INDEX_STORE_PATH.
270
271         * Configurations/DebugRelease.xcconfig:
272
273 2017-05-28  Dan Bernstein  <mitz@apple.com>
274
275         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
276         https://bugs.webkit.org/show_bug.cgi?id=172691
277
278         Reviewed by Tim Horton.
279
280         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
281
282 2017-05-09  Zan Dobersek  <zdobersek@igalia.com>
283
284         Upstream the WPE port
285         https://bugs.webkit.org/show_bug.cgi?id=171110
286
287         Reviewed by Alex Christensen.
288
289         * include/EGL/eglplatform.h:
290         Allow building WPE on platforms that don't provide X11 libraries.
291
292 2017-05-04  Don Olmstead  <don.olmstead@am.sony.com>
293
294         [Win] Remove redundant macros that are set in the CMake config
295         https://bugs.webkit.org/show_bug.cgi?id=171571
296
297         Reviewed by Brent Fulgham.
298
299         * CMakeLists.txt:
300
301 2017-04-20  Konstantin Tokarev  <annulen@yandex.ru>
302
303         [cmake] Define FORWARDING_HEADERS_DIR in WebKitFS and use it everywhere
304         https://bugs.webkit.org/show_bug.cgi?id=171071
305
306         Reviewed by Michael Catanzaro.
307
308         "${DERIVED_SOURCES_DIR}/ForwardingHeaders" path occurs very often in the
309         build system files. GTK-specifc FORWARDING_HEADERS_DIR variable should
310         be available for all ports.
311
312         * CMakeLists.txt:
313
314 2017-04-20  Fujii Hironori  <Hironori.Fujii@sony.com>
315
316         [WinCairo] Fix build break after updating ANGLE
317         https://bugs.webkit.org/show_bug.cgi?id=170980
318
319         Reviewed by Brent Fulgham.
320
321         * CMakeLists.txt: Added some new source files.
322         * PlatformMac.cmake: Ditto.
323         * PlatformWin.cmake: Ditto. Remove a macro 'ANGLE_WEBKIT_WIN'
324         because SoftLinking is not used anymore.
325         * src/third_party/systeminfo/: Restored.
326
327 2017-04-19  Ryan Haddad  <ryanhaddad@apple.com>
328
329         Remove executable property from a header file.
330
331         * include/KHR/khrplatform.h: Removed property svn:executable.
332
333 2017-04-18  Dean Jackson  <dino@apple.com>
334
335         Add the actual content to the files, now that
336         SVN knows they can have tabs.
337
338         * src/third_party/murmurhash/MurmurHash3.cpp:
339         * src/third_party/murmurhash/MurmurHash3.h:
340
341 2017-04-18  Dean Jackson  <dino@apple.com>
342
343         WinCairo needs these files I recently removed
344         from our copy of ANGLE.
345
346         * src/third_party/murmurhash/LICENSE: Added.
347         * src/third_party/murmurhash/MurmurHash3.cpp: Added.
348         * src/third_party/murmurhash/MurmurHash3.h: Added.
349
350 2017-04-18  Dean Jackson  <dino@apple.com>
351
352         Still trying to fix Windows.
353
354         * PlatformWin.cmake:
355
356 2017-04-18  Dean Jackson  <dino@apple.com>
357
358         Attempt to fix the Windows build.
359
360         * PlatformWin.cmake:
361
362 2017-04-18  Dean Jackson  <dino@apple.com>
363
364         Update ANGLE
365         https://bugs.webkit.org/show_bug.cgi?id=170941
366         <rdar://problem/31633999>
367
368         Reviewed by Alex Christensen.
369
370         Huge list of changed files omitted.
371
372 2017-04-12  Dan Bernstein  <mitz@apple.com>
373
374         [Mac] Future-proof .xcconfig files
375         https://bugs.webkit.org/show_bug.cgi?id=170802
376
377         Reviewed by Tim Horton.
378
379         * Configurations/Base.xcconfig:
380         * Configurations/DebugRelease.xcconfig:
381
382 2016-12-20  Tim Horton  <timothy_horton@apple.com>
383
384         Remove an ANGLE Markdown file from the ANGLE target
385         https://bugs.webkit.org/show_bug.cgi?id=166279
386
387         Reviewed by Alex Christensen.
388
389         * ANGLE.xcodeproj/project.pbxproj:
390         We don't need to build this, it's not source code.
391
392 2016-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
393
394         Sort Xcode project files
395         https://bugs.webkit.org/show_bug.cgi?id=165937
396
397         Reviewed by Simon Fraser.
398
399         * ANGLE.xcodeproj/project.pbxproj:
400
401 2016-12-15  Alex Christensen  <achristensen@webkit.org>
402
403         Fix Windows WebGL build after r209832
404
405         * CMakeLists.txt:
406         * include/EGL/egl.h:
407         * include/GLES2/gl2.h:
408
409 2016-12-14  Alex Christensen  <achristensen@webkit.org>
410
411         Progress towards using ANGLE to do WebGL rendering
412         https://bugs.webkit.org/show_bug.cgi?id=165864
413
414         Reviewed by Dean Jackson.
415
416         * ANGLE.xcodeproj/project.pbxproj:
417         Compile more files, and add some more "public" headers.
418         ANGLE is not a public framework, so these headers just go in 
419         WebKitBuild/Release/usr/local/include/ANGLE to be included when compiling WebCore.
420         * ANGLE/egl.h: Added.
421         * ANGLE/eglext.h: Added.
422         * ANGLE/eglplatform.h: Added.
423         * ANGLE/entry_points_gles_2_0.h: Added.
424         * ANGLE/entry_points_gles_2_0_ext.h: Added.
425         * ANGLE/entry_points_gles_3_0.h: Added.
426         * ANGLE/export.h: Added.
427         * ANGLE/gl2.h: Added.
428         * ANGLE/gl2ext.h: Added.
429         * ANGLE/gl2platform.h: Added.
430         * ANGLE/gl3.h: Added.
431         * ANGLE/gl31.h: Added.
432         * ANGLE/gl3platform.h: Added.
433         * ANGLE/khrplatform.h: Added.
434         Add more forwarding headers.  There are already a few, but we need more.
435         * CMakeLists.txt:
436         * PlatformMac.cmake:
437         Make the frameworks linked to by ANGLE be private so frameworks that link with 
438         ANGLE don't automatically link with them. This allows me to switch ANGLE from a 
439         static library to a dynamic library to make sure WebCore isn't directly using OpenGL.
440         * PlatformWin.cmake:
441         Move HLSL-specific files to only be built on Windows.
442         * include/EGL/egl.h:
443         * include/EGL/eglplatform.h:
444         * include/GLES2/gl2.h:
445         * include/GLES2/gl2platform.h:
446         * include/GLES3/gl3.h:
447         * include/GLES3/gl31.h:
448         * include/GLES3/gl32.h:
449         * include/GLES3/gl3platform.h:
450         * src/libGLESv2/entry_points_egl.h:
451         * src/libGLESv2/entry_points_egl_ext.h:
452         * src/libGLESv2/entry_points_gles_2_0.h:
453         * src/libGLESv2/entry_points_gles_2_0_ext.h:
454         * src/libGLESv2/entry_points_gles_3_0.h:
455         * src/libGLESv2/entry_points_gles_3_1.h:
456         Include ANGLE headers as #include <ANGLE/*> instead of #include <KHR/*> or #include <GLES/*>
457         This is needed to distinguish the ANGLE headers from any system OpenGL/OpenGLES headers.
458         We will eventually only include ANGLE's entry_points_*.h directly from WebCore.
459
460 2016-12-07  Alex Christensen  <achristensen@webkit.org>
461
462         Build more of ANGLE on Mac and Windows
463         https://bugs.webkit.org/show_bug.cgi?id=165543
464
465         Reviewed by Dean Jackson.
466
467         We will need to compile these files to use ANGLE's GLESv2 implementation instead of 
468         using OpenGL directly. No functional change.
469
470         * ANGLE.xcodeproj/project.pbxproj:
471         * CMakeLists.txt:
472         Move platform-specific files to Platform*.cmake.
473         * PlatformMac.cmake: Added.
474         * PlatformWin.cmake: Added.
475         * src/libANGLE/renderer/Format.cpp:
476         * src/libANGLE/renderer/Format_autogen.cpp:
477         (angle::Format::Get):
478         * src/libANGLE/renderer/gl/PathGL.cpp:
479         * src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.h:
480         * src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.mm:
481         Rename SwapLayer to WebSwapLayer.  Otherwise, WebCore complains about improperly named ObjC classes.
482         Since this is the only one, let's just rename it instead of adding an exception.
483         (rx::WindowSurfaceCGL::initialize):
484         (-[SwapLayer initWithSharedState:withContext:withFunctions:]): Deleted.
485         * src/libANGLE/renderer/gl/formatutilsgl.cpp:
486         (rx::nativegl::GetInternalFormatMap):
487         (rx::nativegl::GetInternalFormatInfo):
488         * src/libANGLE/renderer/renderer_utils.cpp:
489         (rx::GetColorWriteFunction):
490         * src/libGLESv2/entry_points_egl.cpp:
491         (egl::GetProcAddress):
492
493 2016-12-06  Alexey Proskuryakov  <ap@apple.com>
494
495         Correct SDKROOT values in xcconfig files
496         https://bugs.webkit.org/show_bug.cgi?id=165487
497         rdar://problem/29539209
498
499         Reviewed by Dan Bernstein.
500
501         Fix suggested by Dan Bernstein.
502
503         * Configurations/DebugRelease.xcconfig:
504
505 2016-10-30  Michael Catanzaro  <mcatanzaro@igalia.com>
506
507         -Wpragmas warning spam from angleutils.h
508         https://bugs.webkit.org/show_bug.cgi?id=164207
509
510         Reviewed by Darin Adler.
511
512         Use #pragma clang instead of #pragma GCC since all of the warnings we need to suppress are
513         Clang-specific warnings. GCC ignores unknown pragmas and does not warn, but it does warn if
514         any GCC pragma is invalid.
515
516         Note that this might still be broken for MSVCC, as MSVCC warns when it sees unknown pragmas.
517
518         * changes.diff:
519         * src/common/angleutils.cpp:
520         (FormatString):
521         * src/common/angleutils.h:
522         (MakeStaticString):
523         * src/common/debug.cpp:
524         * src/common/mathutil.cpp:
525         * src/libANGLE/Caps.cpp:
526         (gl::TextureCapsMap::get):
527         (gl::GetExtensionInfoMap):
528         * src/libANGLE/Device.cpp:
529         (egl::GetDeviceSet):
530         * src/libANGLE/Display.cpp:
531         (egl::Display::getClientExtensionString):
532         * src/libANGLE/formatutils.cpp:
533         (gl::GetInternalFormatMap):
534         (gl::GetAllSizedInternalFormats):
535         * src/libANGLE/validationES3.cpp:
536         (gl::IsValidES3CopyTexImageCombination):
537
538 2016-10-28  Alex Christensen  <achristensen@webkit.org>
539
540         Another build fix.
541
542         * CMakeLists.txt:
543
544 2016-10-28  Alex Christensen  <achristensen@webkit.org>
545
546         Fix Windows WebGL build after r208036
547         https://bugs.webkit.org/show_bug.cgi?id=164101
548
549         * CMakeLists.txt:
550
551 2016-10-27  Alex Christensen  <achristensen@webkit.org>
552
553         Fix Windows WebGL build after r208036
554         https://bugs.webkit.org/show_bug.cgi?id=164101
555
556         * CMakeLists.txt:
557         Add new files, remove deleted files.
558
559 2016-10-27  Alex Christensen  <achristensen@webkit.org>
560
561         Update ANGLE
562         https://bugs.webkit.org/show_bug.cgi?id=164101
563
564         Reviewed by Darin Adler.
565
566         Updated to f01731530e7f754e5ebaf32d00f3e23b62376424
567         Differences between upstream ANGLE and WebKit's copy of ANGLE are in changes.diff
568
569 2016-10-24  Alex Christensen  <achristensen@webkit.org>
570
571         Remove unused ANGLE.vcxproj after switching to CMake on Windows
572
573         * ANGLE.vcxproj: Removed.
574         * ANGLE.vcxproj/ANGLERelease.props: Removed.
575         * ANGLE.vcxproj/DirectX32.props: Removed.
576         * ANGLE.vcxproj/DirectX64.props: Removed.
577         * ANGLE.vcxproj/libEGL.vcxproj: Removed.
578         * ANGLE.vcxproj/libEGL.vcxproj.filters: Removed.
579         * ANGLE.vcxproj/libEGLCommon.props: Removed.
580         * ANGLE.vcxproj/libGLESv2.vcxproj: Removed.
581         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Removed.
582         * ANGLE.vcxproj/libGLESv2Common.props: Removed.
583         * ANGLE.vcxproj/preprocessor.vcxproj: Removed.
584         * ANGLE.vcxproj/preprocessor.vcxproj.filters: Removed.
585         * ANGLE.vcxproj/translatorCommon.props: Removed.
586         * ANGLE.vcxproj/translator_common.vcxproj: Removed.
587         * ANGLE.vcxproj/translator_common.vcxproj.filters: Removed.
588         * ANGLE.vcxproj/translator_glsl.vcxproj: Removed.
589         * ANGLE.vcxproj/translator_glsl.vcxproj.filters: Removed.
590         * ANGLE.vcxproj/translator_hlsl.vcxproj: Removed.
591         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters: Removed.
592
593 2016-09-09  Dean Jackson  <dino@apple.com>
594
595         [ANGLE] instantiation of variable 'gl::GLTypeToGLenum<float>::value' required here, but no definition is available
596         https://bugs.webkit.org/show_bug.cgi?id=161829
597         <rdar://problem/28051244>
598
599         Reviewed by Alex Christensen.
600
601         Newer versions of clang require explicit definition of some template types
602         if they are in another translation unit.
603
604         * src/libANGLE/Program.cpp: Add definitions for GLTypeToGLenum.
605
606 2016-07-29  David Kilzer  <ddkilzer@apple.com>
607
608         ANGLE: Fix global constructors and exit-time destructors
609         <https://webkit.org/b/160332>
610
611         Reviewed by Darin Adler.
612
613         * Configurations/Base.xcconfig:
614         - Add warning flags.
615
616         * src/common/angleutils.cpp:
617         (FormatString):
618         * src/common/angleutils.h:
619         (MakeStaticString):
620         * src/common/debug.cpp:
621         * src/common/mathutil.cpp:
622         (gl::g_sharedexp_max):
623         (gl::convertRGBFloatsTo999E5):
624         * src/compiler/translator/ShaderLang.cpp:
625         (ShGetUniformRegisterMap):
626         * src/libANGLE/Caps.cpp:
627         (gl::TextureCapsMap::get):
628         * src/libANGLE/Device.cpp:
629         (egl::GetDeviceSet):
630         * src/libANGLE/Display.cpp:
631         (egl::Display::getClientExtensionString):
632         * src/libANGLE/formatutils.cpp:
633         (gl::BuildFormatMap):
634         (gl::BuildInternalFormatInfoMap):
635         (gl::GetInternalFormatMap):
636         (gl::BuildAllSizedInternalFormatSet):
637         (gl::GetSizedInternalFormat):
638         (gl::GetAllSizedInternalFormats):
639         * src/libANGLE/validationES3.cpp:
640         (gl::BuildES3FormatSet):
641         (gl::ValidateTexImageFormatCombination):
642         (gl::BuildSizedEffectiveInternalFormatList):
643         (gl::BuildUnsizedEffectiveInternalFormatList):
644         (gl::GetEffectiveInternalFormat):
645         (gl::BuildValidES3CopyTexImageCombinations):
646         (gl::IsValidES3CopyTexImageCombination):
647         - Fix global constructors and exit-time destructors.
648
649 2016-07-13  Enrica Casucci  <enrica@apple.com>
650
651         Update supported platforms in xcconfig files to match the sdk names.
652         https://bugs.webkit.org/show_bug.cgi?id=159728
653
654         Reviewed by Tim Horton.
655
656         * Configurations/Base.xcconfig:
657
658 2016-05-24  Alex Christensen  <achristensen@webkit.org>
659
660         Fix iOS WebGL after r199738
661         https://bugs.webkit.org/show_bug.cgi?id=158024
662         rdar://problem/26446679
663
664         Reviewed by Myles Maxfield.
665
666         * ANGLE.xcodeproj/project.pbxproj:
667         iOS needs the ESSL translator.
668
669 2016-05-22  Brady Eidson  <beidson@apple.com>
670
671         Move to C++14.
672         https://bugs.webkit.org/show_bug.cgi?id=157948
673
674         Reviewed by Michael Catanzaro.
675
676         * Configurations/Base.xcconfig:
677
678 2016-04-26  Per Arne Vollan  <peavo@outlook.com>
679
680         [WinCairo][ANGLE] Display object is not created.
681         https://bugs.webkit.org/show_bug.cgi?id=157042
682
683         Reviewed by Alex Christensen.
684
685         The CreateDisplayFromAttribs function will not create a DisplayD3D object when the requested
686         type is EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE, because ANGLE_ENABLE_OPENGL is not defined.
687         We should be able to create a DisplayD3D object without defining ANGLE_ENABLE_OPENGL.
688
689         * src/libANGLE/Display.cpp:
690
691 2016-04-26  Per Arne Vollan  <peavo@outlook.com>
692
693         [WinCairo][WebGL] Enable ESSL and GLSL translators.
694         https://bugs.webkit.org/show_bug.cgi?id=157002
695
696         Reviewed by Darin Adler.
697
698         Enable support for ESSL and GLSL translators, and add missing files.
699
700         * CMakeLists.txt:
701
702 2016-04-22  Joonghun Park  <jh718.park@samsung.com>
703
704         [ANGLE] Remove deprecated auto_ptr warning. Unreviewed.
705         https://bugs.webkit.org/show_bug.cgi?id=156894
706
707         * src/compiler/preprocessor/MacroExpander.h: Use std::unique_ptr instead of std::auto_ptr.
708
709 2016-04-19  Alex Christensen  <achristensen@webkit.org>
710
711         Build fix after r199738
712
713         * CMakeLists.txt:
714
715 2016-04-19  Alex Christensen  <achristensen@webkit.org>
716
717         Build fix after r199738
718
719         * CMakeLists.txt:
720
721 2016-04-19  Alex Christensen  <achristensen@webkit.org>
722
723         Build fix.
724
725         * src/compiler/translator/Intermediate.h: Added.
726         (TIntermediate::TIntermediate):
727         * src/compiler/translator/intermediate.h: Removed.
728         Changed case of Intermediate.h file name for case sensitive file systems.
729
730 2016-04-19  Alex Christensen  <achristensen@webkit.org>
731
732         Update ANGLE
733         https://bugs.webkit.org/show_bug.cgi?id=156755
734
735         Reviewed by Dean Jackson.
736
737         Huge list of changed files omitted.
738
739 2016-04-12  Alex Christensen  <achristensen@webkit.org>
740
741         Remove failing assertion in ANGLE
742         https://bugs.webkit.org/show_bug.cgi?id=156485
743
744         Reviewed by Dean Jackson.
745
746         * src/compiler/translator/glslang.l:
747         * src/compiler/translator/glslang_lex.cpp:
748
749 2016-04-11  Fujii Hironori  <Hironori.Fujii@jp.sony.com>
750
751         [CMake] Make FOLDER property INHERITED
752         https://bugs.webkit.org/show_bug.cgi?id=156460
753
754         Reviewed by Brent Fulgham.
755
756         * CMakeLists.txt:
757         Set FOLDER property as a directory property not a target property
758
759 2016-03-22  Alberto Garcia  <berto@igalia.com>
760
761         Unreviewed typo fix.
762
763         * src/compiler/translator/InfoSink.cpp:
764         (TInfoSinkBase::prefix): "UNKOWN" => "UNKOWN".
765
766 2016-03-20  Dan Bernstein  <mitz@apple.com>
767
768         [Mac] Determine TARGET_MAC_OS_X_VERSION_MAJOR from MACOSX_DEPLOYMENT_TARGET rather than from MAC_OS_X_VERSION_MAJOR
769         https://bugs.webkit.org/show_bug.cgi?id=155707
770         <rdar://problem/24980691>
771
772         Reviewed by Darin Adler.
773
774         * Configurations/Base.xcconfig: Set TARGET_MAC_OS_X_VERSION_MAJOR based on the last
775           component of MACOSX_DEPLOYMENT_TARGET.
776         * Configurations/DebugRelease.xcconfig: For engineering builds, preserve the behavior of
777           TARGET_MAC_OS_X_VERSION_MAJOR being the host’s OS version.
778
779 2016-03-20  Dan Bernstein  <mitz@apple.com>
780
781         Update build settings
782
783         Rubber-stamped by Andy Estes.
784
785         * Configurations/DebugRelease.xcconfig:
786
787 2016-02-23  Dan Bernstein  <mitz@apple.com>
788
789         [Xcode] Linker errors display mangled names, but no longer should
790         https://bugs.webkit.org/show_bug.cgi?id=154632
791
792         Reviewed by Sam Weinig.
793
794         * Configurations/Base.xcconfig: Stop setting LINKER_DISPLAYS_MANGLED_NAMES to YES.
795
796 2016-01-08  Brent Fulgham  <bfulgham@apple.com>
797
798         [ANGLE] Correct UNREACHABLE runtime assertion for void constructors
799         https://bugs.webkit.org/show_bug.cgi?id=152900
800         <rdar://problem/24107501>
801
802         Reviewed by Alex Christensen.
803
804         Tested by Khronos WebGL 1.0.4 suite.
805
806         Merge a small part of ANGLE upstream commit r284735:
807         
808             commit    01971113492d9aca386f2bca021b1f4b134fc277
809             author    Dmitry Skiba <dskiba@google.com>  Fri Jul 10 18:54:00 2015
810             committer Jamie Madill <jmadill@chromium.org>  Fri Jul 10 19:03:34 2015
811             tree      47e42eac00f7d64cddb14b3cc21a4e605c189d20
812
813         This issue was found by <https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/bugs/angle-constructor-invalid-parameters.html?webglVersion=1&quiet=0>
814
815         * src/compiler/translator/Types.cpp:
816         (TType::buildMangledName): Don't assert with UNREACHABLE here.
817
818 2015-12-28  Joonghun Park  <jh718.park@samsung.com>
819
820         [ANGLE][EFL][GTK] Remove 'template<class> class std::auto_ptr is deprecated' compile warning
821         https://bugs.webkit.org/show_bug.cgi?id=152567
822
823         Reviewed by Alex Christensen.
824
825         Because auto_ptr is deprecated as of C++11, we should use unique_ptr instead.
826
827         * src/compiler/preprocessor/MacroExpander.h:
828
829 2015-12-19  Dan Bernstein  <mitz@apple.com>
830
831         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
832         https://bugs.webkit.org/show_bug.cgi?id=152462
833
834         Reviewed by Alexey Proskuryakov.
835
836         * Configurations/DebugRelease.xcconfig: Removed definitions of MACOSX_DEPLOYMENT_TARGET for
837           OS X 10.8 and 10.9.
838
839 2015-12-03  Anders Carlsson  <andersca@apple.com>
840
841         Remove Objective-C GC support
842         https://bugs.webkit.org/show_bug.cgi?id=151819
843         rdar://problem/23746991
844
845         Reviewed by Dan Bernstein.
846
847         * Configurations/Base.xcconfig:
848
849 2015-11-30  Dana Burkart  <dburkart@apple.com>
850
851         Remove Mountain Lion support from ANGLE
852         https://bugs.webkit.org/show_bug.cgi?id=151679
853
854         Reviewed by Darin Adler.
855
856         * Configurations/Base.xcconfig:
857
858 2015-11-02  Andy Estes  <aestes@apple.com>
859
860         [Cocoa] Add tvOS and watchOS to SUPPORTED_PLATFORMS
861         https://bugs.webkit.org/show_bug.cgi?id=150819
862
863         Reviewed by Dan Bernstein.
864
865         This tells Xcode to include these platforms in its Devices dropdown, making it possible to build in the IDE.
866
867         * Configurations/Base.xcconfig:
868
869 2015-10-10  Dan Bernstein  <mitz@apple.com>
870
871         [iOS] Remove project support for iOS 8
872         https://bugs.webkit.org/show_bug.cgi?id=149993
873
874         Reviewed by Alexey Proskuryakov.
875
876         * Configurations/ANGLE.xcconfig:
877         * Configurations/Base.xcconfig:
878
879 2015-08-20  Alex Christensen  <achristensen@webkit.org>
880
881         Clean up CMake build after r188673
882         https://bugs.webkit.org/show_bug.cgi?id=148234
883
884         Reviewed by Tim Horton.
885
886         * CMakeLists.txt:
887         Copy headers to forwarding headers.
888
889 2015-08-11  Brent Fulgham  <bfulgham@apple.com>
890
891         [Win] Switch Windows build to Visual Studio 2015
892         https://bugs.webkit.org/show_bug.cgi?id=147887
893         <rdar://problem/22235098>
894
895         Reviewed by Alex Christensen.
896
897         Update Visual Studio project file settings to use the current Visual
898         Studio and compiler. Continue targeting binaries to run on our minimum
899         supported configuration of Windows 7.
900
901         * ANGLE.vcxproj/libEGL.vcxproj:
902         * ANGLE.vcxproj/libGLESv2.vcxproj:
903         * ANGLE.vcxproj/preprocessor.vcxproj:
904         * ANGLE.vcxproj/translator_common.vcxproj:
905         * ANGLE.vcxproj/translator_glsl.vcxproj:
906         * ANGLE.vcxproj/translator_hlsl.vcxproj:
907
908 2015-08-04  Alex Christensen  <achristensen@webkit.org>
909
910         Build fix after r187928.
911
912         * CMakeLists.txt:
913         Typo. Set libGLESv2 compile definitions instead of libEGL, which are set separately.
914
915 2015-08-04  Alex Christensen  <achristensen@webkit.org>
916
917         Soft link libGLESv2 and libEGL on Windows again
918         https://bugs.webkit.org/show_bug.cgi?id=147671
919
920         Reviewed by Dean Jackson.
921
922         * CMakeLists.txt:
923         Clean up some warnings when compiling with CMake.
924         * include/EGL/egl.h:
925         * include/EGL/eglsoftlinking.h:
926         * include/GLES2/gl2.h:
927         Soft link egl optionally.
928
929 2015-08-04  Alex Christensen  <achristensen@webkit.org>
930
931         Enable WebGL on Windows CMake build.
932         https://bugs.webkit.org/show_bug.cgi?id=143311
933
934         Reviewed by Csaba Osztrogonác.
935
936         * CMakeLists.txt: Added.
937
938 2015-07-03  Dan Bernstein  <mitz@apple.com>
939
940         [Xcode] Update some build settings as recommended by Xcode 7
941         https://bugs.webkit.org/show_bug.cgi?id=146597
942
943         Reviewed by Sam Weinig.
944
945         * ANGLE.xcodeproj/project.pbxproj: Enabled CLANG_WARN_BOOL_CONVERSION,
946         CLANG_WARN_ENUM_CONVERSION, CLANG_WARN_INT_CONVERSION, ENABLE_STRICT_OBJC_MSGSEND and
947         GCC_NO_COMMON_BLOCKS.
948
949         * Configurations/Base.xcconfig: Updated LastUpgradeCheck.
950
951 2015-07-03  Per Arne Vollan  <peavo@outlook.com>
952
953         [WinCairo][WebGL] Enable HLSL.
954         https://bugs.webkit.org/show_bug.cgi?id=146559
955
956         Reviewed by Alex Christensen.
957
958         High Level Shader Language needs to be enabled for WebGL to work on Windows.
959
960         * ANGLE.vcxproj/translatorCommon.props:
961         * ANGLE.vcxproj/translator_hlsl.vcxproj:
962         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
963
964 2015-07-01  Alex Christensen  <achristensen@webkit.org>
965
966         Re-enable WebGL on WinCairo
967         https://bugs.webkit.org/show_bug.cgi?id=146537
968
969         Reviewed by Csaba Osztrogonác.
970
971         * ANGLE.vcxproj/DirectX32.props:
972         * ANGLE.vcxproj/DirectX64.props:
973         * ANGLE.vcxproj/libGLESv2Common.props:
974         Update DirectX directories to use the Windows SDK instead of the June 2010 DirectX SDK.
975
976 2015-07-01  Alex Christensen  <achristensen@webkit.org>
977
978         Fix ANGLE Windows build after r186169.
979         https://bugs.webkit.org/show_bug.cgi?id=146532
980
981         Reviewed by Brent Fulgham.
982
983         * ANGLE.vcxproj/libEGL.vcxproj:
984         * ANGLE.vcxproj/libEGL.vcxproj.filters:
985         * ANGLE.vcxproj/libGLESv2.vcxproj:
986         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
987         * ANGLE.vcxproj/libGLESv2Common.props:
988         * ANGLE.vcxproj/translator_common.vcxproj:
989         * ANGLE.vcxproj/translator_common.vcxproj.filters:
990         * ANGLE.vcxproj/translator_glsl.vcxproj:
991         * ANGLE.vcxproj/translator_glsl.vcxproj.filters:
992         * ANGLE.vcxproj/translator_hlsl.vcxproj:
993         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
994         Update Windows build to build new files.
995
996 2015-06-30  Alex Christensen  <achristensen@webkit.org>
997
998         Update ANGLE to b11e2483742db884bd0af41f78f528240577356b.
999         https://bugs.webkit.org/show_bug.cgi?id=145010
1000
1001         Reviewed by Dean Jackson.
1002
1003         Huge list of source changes omitted.
1004         ROLL DEPS!
1005
1006 2015-05-26  Dan Bernstein  <mitz@apple.com>
1007
1008         <rdar://problem/21104551> Update build settings
1009
1010         Reviewed by Anders Carlsson.
1011
1012         * Configurations/Base.xcconfig:
1013         * Configurations/DebugRelease.xcconfig:
1014
1015 2015-05-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1016
1017         REGRESSION(r181571): Build broken when USE(OPENGL_ES_2) is defined.
1018         https://bugs.webkit.org/show_bug.cgi?id=145156
1019
1020         Reviewed by Alex Christensen.
1021
1022         * include/GLES2/gl2softlinking.h: Revert r181589. Vertex Array Objects are not in GLESv2.
1023
1024 2015-05-11  Brent Fulgham  <bfulgham@apple.com>
1025
1026         [Win] Move Windows build target to Windows 7 (or newer)
1027         https://bugs.webkit.org/show_bug.cgi?id=144890
1028         <rdar://problem/20707307>
1029
1030         Reviewed by Anders Carlsson.
1031
1032         Update linked SDK and minimal Windows level to be compatible with
1033         Windows 7 or newer.
1034
1035         * ANGLE.vcxproj/libEGL.vcxproj:
1036         * ANGLE.vcxproj/libGLESv2.vcxproj:
1037         * ANGLE.vcxproj/preprocessor.vcxproj:
1038         * ANGLE.vcxproj/translator_common.vcxproj:
1039         * ANGLE.vcxproj/translator_glsl.vcxproj:
1040         * ANGLE.vcxproj/translator_hlsl.vcxproj:
1041
1042 2015-05-07  Dan Bernstein  <mitz@apple.com>
1043
1044         <rdar://problem/19317140> [Xcode] Remove usage of AspenFamily.xcconfig in Source/
1045         https://bugs.webkit.org/show_bug.cgi?id=144727
1046
1047         Reviewed by Darin Adler.
1048
1049         * Configurations/Base.xcconfig: Don’t include AspenFamily.xcconfig, and define
1050         INSTALL_PATH_PREFIX and LD_DYLIB_INSTALL_NAME for the iOS 8.x Simulator.
1051
1052 2015-04-01  Alex Christensen  <achristensen@webkit.org>
1053
1054         Progress towards CMake on Windows and Mac.
1055         https://bugs.webkit.org/show_bug.cgi?id=143293
1056
1057         Reviewed by Filip Pizlo.
1058
1059         * include/GLES2/gl2.h:
1060         Temporarily disabled WebGL on Windows CMake builds.
1061
1062 2015-03-17  Zan Dobersek  <zdobersek@igalia.com>
1063
1064         [CMake] Use a forwarding header for ANGLE's ShaderLang.h to avoid picking up ANGLE's EGL headers
1065         https://bugs.webkit.org/show_bug.cgi?id=142530
1066
1067         Reviewed by Darin Adler.
1068
1069         * ANGLE/ShaderLang.h: Added. Includes include/GLSLANG/ShaderLang.h. Used in WebCore
1070         so we can avoid using ANGLE's EGL headers and use the system-default headers instead.
1071
1072 2015-03-16  Roger Fong  <roger_fong@apple.com>
1073
1074         [Win] Unreviewed build fix after r181571.
1075
1076         * include/GLES2/gl2softlinking.h:
1077
1078 2015-03-12  Brent Fulgham  <bfulgham@apple.com>
1079
1080         [Win] Unreviewed build fix (part 2).
1081
1082         * ANGLE.vcxproj/libGLESv2Common.props: Missed a directory separator.
1083
1084 2015-03-12  Brent Fulgham  <bfulgham@apple.com>
1085
1086         [Win] Unreviewed build fix for some DirectX SDK Installs
1087
1088         * ANGLE.vcxproj/libGLESv2Common.props: Correct path for Lib and
1089         Include paths based on problems others have had building WebKit
1090         under different Windows and DirectX revisions.
1091
1092 2015-02-20  Alexey Proskuryakov  <ap@apple.com>
1093
1094         Remove svn:keywords property.
1095
1096         As far as I can tell, the property had no effect on any of these files, but also,
1097         when it has effect it's likely harmful.
1098
1099         * ANGLE.txt: Removed property svn:keywords.
1100         * src/common/RefCountObject.cpp: Removed property svn:keywords.
1101         * src/common/RefCountObject.h: Removed property svn:keywords.
1102         * src/compiler/translator/BaseTypes.h: Removed property svn:keywords.
1103         * src/compiler/translator/BuiltInFunctionEmulator.cpp: Removed property svn:keywords.
1104         * src/compiler/translator/BuiltInFunctionEmulator.h: Removed property svn:keywords.
1105         * src/compiler/translator/CodeGen.cpp: Removed property svn:keywords.
1106         * src/compiler/translator/Common.h: Removed property svn:keywords.
1107         * src/compiler/translator/Compiler.cpp: Removed property svn:keywords.
1108         * src/compiler/translator/ConstantUnion.h: Removed property svn:keywords.
1109         * src/compiler/translator/DetectCallDepth.cpp: Removed property svn:keywords.
1110         * src/compiler/translator/DetectCallDepth.h: Removed property svn:keywords.
1111         * src/compiler/translator/DetectDiscontinuity.cpp: Removed property svn:keywords.
1112         * src/compiler/translator/DetectDiscontinuity.h: Removed property svn:keywords.
1113         * src/compiler/translator/Diagnostics.cpp: Removed property svn:keywords.
1114         * src/compiler/translator/Diagnostics.h: Removed property svn:keywords.
1115         * src/compiler/translator/DirectiveHandler.cpp: Removed property svn:keywords.
1116         * src/compiler/translator/DirectiveHandler.h: Removed property svn:keywords.
1117         * src/compiler/translator/ExtensionBehavior.h: Removed property svn:keywords.
1118         * src/compiler/translator/ForLoopUnroll.cpp: Removed property svn:keywords.
1119         * src/compiler/translator/ForLoopUnroll.h: Removed property svn:keywords.
1120         * src/compiler/translator/HashNames.h: Removed property svn:keywords.
1121         * src/compiler/translator/InfoSink.cpp: Removed property svn:keywords.
1122         * src/compiler/translator/InfoSink.h: Removed property svn:keywords.
1123         * src/compiler/translator/Initialize.cpp: Removed property svn:keywords.
1124         * src/compiler/translator/Initialize.h: Removed property svn:keywords.
1125         * src/compiler/translator/InitializeDll.cpp: Removed property svn:keywords.
1126         * src/compiler/translator/InitializeDll.h: Removed property svn:keywords.
1127         * src/compiler/translator/InitializeGlobals.h: Removed property svn:keywords.
1128         * src/compiler/translator/InitializeParseContext.cpp: Removed property svn:keywords.
1129         * src/compiler/translator/InitializeParseContext.h: Removed property svn:keywords.
1130         * src/compiler/translator/InitializeVariables.cpp: Removed property svn:keywords.
1131         * src/compiler/translator/InitializeVariables.h: Removed property svn:keywords.
1132         * src/compiler/translator/IntermTraverse.cpp: Removed property svn:keywords.
1133         * src/compiler/translator/Intermediate.cpp: Removed property svn:keywords.
1134         * src/compiler/translator/MMap.h: Removed property svn:keywords.
1135         * src/compiler/translator/NodeSearch.h: Removed property svn:keywords.
1136         * src/compiler/translator/OutputESSL.cpp: Removed property svn:keywords.
1137         * src/compiler/translator/OutputESSL.h: Removed property svn:keywords.
1138         * src/compiler/translator/OutputGLSL.cpp: Removed property svn:keywords.
1139         * src/compiler/translator/OutputGLSL.h: Removed property svn:keywords.
1140         * src/compiler/translator/OutputGLSLBase.cpp: Removed property svn:keywords.
1141         * src/compiler/translator/OutputGLSLBase.h: Removed property svn:keywords.
1142         * src/compiler/translator/OutputHLSL.cpp: Removed property svn:keywords.
1143         * src/compiler/translator/OutputHLSL.h: Removed property svn:keywords.
1144         * src/compiler/translator/ParseContext.cpp: Removed property svn:keywords.
1145         * src/compiler/translator/ParseContext.h: Removed property svn:keywords.
1146         * src/compiler/translator/PoolAlloc.cpp: Removed property svn:keywords.
1147         * src/compiler/translator/PoolAlloc.h: Removed property svn:keywords.
1148         * src/compiler/translator/Pragma.h: Removed property svn:keywords.
1149         * src/compiler/translator/QualifierAlive.cpp: Removed property svn:keywords.
1150         * src/compiler/translator/QualifierAlive.h: Removed property svn:keywords.
1151         * src/compiler/translator/RemoveTree.cpp: Removed property svn:keywords.
1152         * src/compiler/translator/RemoveTree.h: Removed property svn:keywords.
1153         * src/compiler/translator/RenameFunction.h: Removed property svn:keywords.
1154         * src/compiler/translator/RewriteElseBlocks.cpp: Removed property svn:keywords.
1155         * src/compiler/translator/RewriteElseBlocks.h: Removed property svn:keywords.
1156         * src/compiler/translator/SearchSymbol.cpp: Removed property svn:keywords.
1157         * src/compiler/translator/SearchSymbol.h: Removed property svn:keywords.
1158         * src/compiler/translator/ShHandle.h: Removed property svn:keywords.
1159         * src/compiler/translator/ShaderLang.cpp: Removed property svn:keywords.
1160         * src/compiler/translator/SymbolTable.cpp: Removed property svn:keywords.
1161         * src/compiler/translator/SymbolTable.h: Removed property svn:keywords.
1162         * src/compiler/translator/TranslatorESSL.cpp: Removed property svn:keywords.
1163         * src/compiler/translator/TranslatorESSL.h: Removed property svn:keywords.
1164         * src/compiler/translator/TranslatorGLSL.cpp: Removed property svn:keywords.
1165         * src/compiler/translator/TranslatorGLSL.h: Removed property svn:keywords.
1166         * src/compiler/translator/TranslatorHLSL.cpp: Removed property svn:keywords.
1167         * src/compiler/translator/TranslatorHLSL.h: Removed property svn:keywords.
1168         * src/compiler/translator/Types.h: Removed property svn:keywords.
1169         * src/compiler/translator/UnfoldShortCircuit.cpp: Removed property svn:keywords.
1170         * src/compiler/translator/UnfoldShortCircuit.h: Removed property svn:keywords.
1171         * src/compiler/translator/UnfoldShortCircuitAST.cpp: Removed property svn:keywords.
1172         * src/compiler/translator/UnfoldShortCircuitAST.h: Removed property svn:keywords.
1173         * src/compiler/translator/ValidateLimitations.cpp: Removed property svn:keywords.
1174         * src/compiler/translator/ValidateLimitations.h: Removed property svn:keywords.
1175         * src/compiler/translator/VariableInfo.cpp: Removed property svn:keywords.
1176         * src/compiler/translator/VariableInfo.h: Removed property svn:keywords.
1177         * src/compiler/translator/VariablePacker.cpp: Removed property svn:keywords.
1178         * src/compiler/translator/VariablePacker.h: Removed property svn:keywords.
1179         * src/compiler/translator/VersionGLSL.cpp: Removed property svn:keywords.
1180         * src/compiler/translator/VersionGLSL.h: Removed property svn:keywords.
1181         * src/compiler/translator/compilerdebug.cpp: Removed property svn:keywords.
1182         * src/compiler/translator/compilerdebug.h: Removed property svn:keywords.
1183         * src/compiler/translator/depgraph/DependencyGraph.cpp: Removed property svn:keywords.
1184         * src/compiler/translator/depgraph/DependencyGraph.h: Removed property svn:keywords.
1185         * src/compiler/translator/depgraph/DependencyGraphBuilder.cpp: Removed property svn:keywords.
1186         * src/compiler/translator/depgraph/DependencyGraphBuilder.h: Removed property svn:keywords.
1187         * src/compiler/translator/depgraph/DependencyGraphOutput.cpp: Removed property svn:keywords.
1188         * src/compiler/translator/depgraph/DependencyGraphOutput.h: Removed property svn:keywords.
1189         * src/compiler/translator/depgraph/DependencyGraphTraverse.cpp: Removed property svn:keywords.
1190         * src/compiler/translator/generate_parser.sh: Removed property svn:keywords.
1191         * src/compiler/translator/glslang.h: Removed property svn:keywords.
1192         * src/compiler/translator/glslang_lex.cpp: Removed property svn:keywords.
1193         * src/compiler/translator/glslang_tab.cpp: Removed property svn:keywords.
1194         * src/compiler/translator/glslang_tab.h: Removed property svn:keywords.
1195         * src/compiler/translator/intermOut.cpp: Removed property svn:keywords.
1196         * src/compiler/translator/intermediate.h: Removed property svn:keywords.
1197         * src/compiler/translator/localintermediate.h: Removed property svn:keywords.
1198         * src/compiler/translator/osinclude.h: Removed property svn:keywords.
1199         * src/compiler/translator/ossource_posix.cpp: Removed property svn:keywords.
1200         * src/compiler/translator/ossource_win.cpp: Removed property svn:keywords.
1201         * src/compiler/translator/parseConst.cpp: Removed property svn:keywords.
1202         * src/compiler/translator/timing/RestrictFragmentShaderTiming.cpp: Removed property svn:keywords.
1203         * src/compiler/translator/timing/RestrictFragmentShaderTiming.h: Removed property svn:keywords.
1204         * src/compiler/translator/timing/RestrictVertexShaderTiming.cpp: Removed property svn:keywords.
1205         * src/compiler/translator/timing/RestrictVertexShaderTiming.h: Removed property svn:keywords.
1206         * src/compiler/translator/util.cpp: Removed property svn:keywords.
1207         * src/compiler/translator/util.h: Removed property svn:keywords.
1208         * src/libGLESv2/renderer/d3d11/BufferStorage11.cpp: Removed property svn:keywords.
1209         * src/libGLESv2/renderer/d3d11/BufferStorage11.h: Removed property svn:keywords.
1210         * src/libGLESv2/renderer/d3d11/Fence11.cpp: Removed property svn:keywords.
1211         * src/libGLESv2/renderer/d3d11/Fence11.h: Removed property svn:keywords.
1212         * src/libGLESv2/renderer/d3d11/Image11.cpp: Removed property svn:keywords.
1213         * src/libGLESv2/renderer/d3d11/Image11.h: Removed property svn:keywords.
1214         * src/libGLESv2/renderer/d3d11/IndexBuffer11.cpp: Removed property svn:keywords.
1215         * src/libGLESv2/renderer/d3d11/IndexBuffer11.h: Removed property svn:keywords.
1216         * src/libGLESv2/renderer/d3d11/InputLayoutCache.cpp: Removed property svn:keywords.
1217         * src/libGLESv2/renderer/d3d11/InputLayoutCache.h: Removed property svn:keywords.
1218         * src/libGLESv2/renderer/d3d11/Query11.cpp: Removed property svn:keywords.
1219         * src/libGLESv2/renderer/d3d11/Query11.h: Removed property svn:keywords.
1220         * src/libGLESv2/renderer/d3d11/RenderStateCache.cpp: Removed property svn:keywords.
1221         * src/libGLESv2/renderer/d3d11/RenderStateCache.h: Removed property svn:keywords.
1222         * src/libGLESv2/renderer/d3d11/RenderTarget11.cpp: Removed property svn:keywords.
1223         * src/libGLESv2/renderer/d3d11/RenderTarget11.h: Removed property svn:keywords.
1224         * src/libGLESv2/renderer/d3d11/Renderer11.cpp: Removed property svn:keywords.
1225         * src/libGLESv2/renderer/d3d11/Renderer11.h: Removed property svn:keywords.
1226         * src/libGLESv2/renderer/d3d11/ShaderExecutable11.cpp: Removed property svn:keywords.
1227         * src/libGLESv2/renderer/d3d11/ShaderExecutable11.h: Removed property svn:keywords.
1228         * src/libGLESv2/renderer/d3d11/SwapChain11.cpp: Removed property svn:keywords.
1229         * src/libGLESv2/renderer/d3d11/SwapChain11.h: Removed property svn:keywords.
1230         * src/libGLESv2/renderer/d3d11/TextureStorage11.cpp: Removed property svn:keywords.
1231         * src/libGLESv2/renderer/d3d11/TextureStorage11.h: Removed property svn:keywords.
1232         * src/libGLESv2/renderer/d3d11/VertexBuffer11.cpp: Removed property svn:keywords.
1233         * src/libGLESv2/renderer/d3d11/VertexBuffer11.h: Removed property svn:keywords.
1234         * src/libGLESv2/renderer/d3d11/renderer11_utils.cpp: Removed property svn:keywords.
1235         * src/libGLESv2/renderer/d3d11/renderer11_utils.h: Removed property svn:keywords.
1236         * src/libGLESv2/renderer/d3d9/BufferStorage9.cpp: Removed property svn:keywords.
1237         * src/libGLESv2/renderer/d3d9/BufferStorage9.h: Removed property svn:keywords.
1238         * src/libGLESv2/renderer/d3d9/Fence9.cpp: Removed property svn:keywords.
1239         * src/libGLESv2/renderer/d3d9/Fence9.h: Removed property svn:keywords.
1240         * src/libGLESv2/renderer/d3d9/Image9.cpp: Removed property svn:keywords.
1241         * src/libGLESv2/renderer/d3d9/Image9.h: Removed property svn:keywords.
1242         * src/libGLESv2/renderer/d3d9/IndexBuffer9.cpp: Removed property svn:keywords.
1243         * src/libGLESv2/renderer/d3d9/IndexBuffer9.h: Removed property svn:keywords.
1244         * src/libGLESv2/renderer/d3d9/Query9.cpp: Removed property svn:keywords.
1245         * src/libGLESv2/renderer/d3d9/Query9.h: Removed property svn:keywords.
1246         * src/libGLESv2/renderer/d3d9/RenderTarget9.cpp: Removed property svn:keywords.
1247         * src/libGLESv2/renderer/d3d9/RenderTarget9.h: Removed property svn:keywords.
1248         * src/libGLESv2/renderer/d3d9/Renderer9.cpp: Removed property svn:keywords.
1249         * src/libGLESv2/renderer/d3d9/Renderer9.h: Removed property svn:keywords.
1250         * src/libGLESv2/renderer/d3d9/ShaderExecutable9.cpp: Removed property svn:keywords.
1251         * src/libGLESv2/renderer/d3d9/ShaderExecutable9.h: Removed property svn:keywords.
1252         * src/libGLESv2/renderer/d3d9/SwapChain9.cpp: Removed property svn:keywords.
1253         * src/libGLESv2/renderer/d3d9/SwapChain9.h: Removed property svn:keywords.
1254         * src/libGLESv2/renderer/d3d9/TextureStorage9.cpp: Removed property svn:keywords.
1255         * src/libGLESv2/renderer/d3d9/TextureStorage9.h: Removed property svn:keywords.
1256         * src/libGLESv2/renderer/d3d9/VertexBuffer9.cpp: Removed property svn:keywords.
1257         * src/libGLESv2/renderer/d3d9/VertexBuffer9.h: Removed property svn:keywords.
1258         * src/libGLESv2/renderer/d3d9/VertexDeclarationCache.cpp: Removed property svn:keywords.
1259         * src/libGLESv2/renderer/d3d9/VertexDeclarationCache.h: Removed property svn:keywords.
1260         * src/libGLESv2/renderer/d3d9/renderer9_utils.cpp: Removed property svn:keywords.
1261         * src/libGLESv2/renderer/d3d9/renderer9_utils.h: Removed property svn:keywords.
1262         * src/libGLESv2/renderer/d3d9/shaders/compiled/componentmaskps.h: Removed property svn:keywords.
1263         * src/libGLESv2/renderer/d3d9/shaders/compiled/flipyvs.h: Removed property svn:keywords.
1264         * src/libGLESv2/renderer/d3d9/shaders/compiled/luminanceps.h: Removed property svn:keywords.
1265         * src/libGLESv2/renderer/d3d9/shaders/compiled/passthroughps.h: Removed property svn:keywords.
1266         * src/libGLESv2/renderer/d3d9/shaders/compiled/standardvs.h: Removed property svn:keywords.
1267
1268 2015-01-28  Dana Burkart  <dburkart@apple.com>
1269
1270         Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
1271         https://bugs.webkit.org/show_bug.cgi?id=136765
1272
1273         Reviewed by Alexey Proskuryakov.
1274
1275         * Configurations/Base.xcconfig:
1276         * Configurations/DebugRelease.xcconfig:
1277
1278 2014-12-26  Dan Bernstein  <mitz@apple.com>
1279
1280         <rdar://problem/19348208> REGRESSION (r177027): iOS builds use the wrong toolchain
1281         https://bugs.webkit.org/show_bug.cgi?id=139950
1282
1283         Reviewed by David Kilzer.
1284
1285         * Configurations/Base.xcconfig: Only define TOOLCHAINS when building for OS X, doing so
1286         in a manner that works with Xcode 5.1.1.
1287
1288 2014-12-24  Dan Bernstein  <mitz@apple.com>
1289
1290         ANGLE extern symbols are not hidden by default, but should be
1291         https://bugs.webkit.org/show_bug.cgi?id=139936
1292
1293         Reviewed by Mark Rowe.
1294
1295         * Configurations/Base.xcconfig: Changed GCC_SYMBOLS_PRIVATE_EXTERN to YES.
1296
1297 2014-12-24  Dan Bernstein  <mitz@apple.com>
1298
1299         Removed the Derived Sources target.
1300
1301         It has been empty since r159533.
1302
1303         * ANGLE.xcodeproj/project.pbxproj:
1304
1305 2014-12-09  David Kilzer  <ddkilzer@apple.com>
1306
1307         Switch from using PLATFORM_NAME to SDK selectors in ANGLE, bmalloc, gtest, JavaScriptCore, WTF
1308         <http://webkit.org/b/139212>
1309
1310         Reviewed by Joseph Pecoraro.
1311
1312         * Configurations/Base.xcconfig:
1313         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
1314           on OS X.
1315         * Configurations/DebugRelease.xcconfig:
1316         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
1317
1318 2014-10-30  Dana Burkart  <dburkart@apple.com>
1319
1320         <rdar://problem/18821260> Prepare for the mysterious future
1321
1322         Reviewed by Lucas Forschler.
1323
1324         * Configurations/Base.xcconfig:
1325         * Configurations/DebugRelease.xcconfig:
1326
1327 2014-10-08  Brent Fulgham  <bfulgham@apple.com>
1328
1329         [Win] Use proper v120 target for 64-bit builds.
1330
1331         * ANGLE.vcxproj/libEGL.vcxproj:
1332
1333 2014-09-29  peavo@outlook.com  <peavo@outlook.com>
1334
1335         [WinCairo] D3D11 is not used by default.
1336         https://bugs.webkit.org/show_bug.cgi?id=137215
1337
1338         Reviewed by Alex Christensen.
1339
1340         ANGLE_DEFAULT_D3D11 needs to be defined for D3D11 to be used as default.
1341
1342         * ANGLE.vcxproj/libGLESv2Common.props:
1343
1344 2014-09-19  Daniel Bates  <dabates@apple.com>
1345
1346         Always assume internal SDK when building configuration Production
1347         https://bugs.webkit.org/show_bug.cgi?id=136925
1348         <rdar://problem/18362399>
1349
1350         Reviewed by Dan Bernstein.
1351
1352         * Configurations/Base.xcconfig:
1353
1354 2014-09-10  Roger Fong  <roger_fong@apple.com>
1355
1356         Check for varying packing restrictions per program instead of per shader.
1357         https://bugs.webkit.org/show_bug.cgi?id=136585.
1358         <rdar://problem/16308409>.
1359
1360         Reviewed by Dean Jackson.
1361
1362         Remove varying packing restrictions checks from ANGLE.
1363         * src/compiler/translator/Compiler.cpp:
1364         (TCompiler::compile):
1365         (TCompiler::enforcePackingRestrictions):
1366         * src/compiler/translator/ShHandle.h:
1367
1368 2014-09-06  Darin Adler  <darin@apple.com>
1369
1370         Make updates suggested by new version of Xcode
1371         https://bugs.webkit.org/show_bug.cgi?id=136603
1372
1373         Reviewed by Mark Rowe.
1374
1375         * ANGLE.xcodeproj/project.pbxproj: Updated LastUpgradeCheck.
1376
1377         * Configurations/ANGLE.xcconfig: Added CLANG_WARN_BOOL_CONVERSION,
1378         CLANG_WARN_ENUM_CONVERSION, CLANG_WARN_INT_CONVERSION, COMBINE_HIDPI_IMAGES,
1379         and ENABLE_STRICT_OBJC_MSGSEND as suggested by Xcode upgrade check.
1380
1381 2014-09-06  Commit Queue  <commit-queue@webkit.org>
1382
1383         Unreviewed, rolling out r173335.
1384         https://bugs.webkit.org/show_bug.cgi?id=136597
1385
1386         Broke webgl/1.0.2/conformance/glsl/misc/shader-varying-
1387         packing-restrictions.html (Requested by ap on #webkit).
1388
1389         Reverted changeset:
1390
1391         "Remove statically used varyings from packing restrictions
1392         check."
1393         https://bugs.webkit.org/show_bug.cgi?id=136585
1394         http://trac.webkit.org/changeset/173335
1395
1396 2014-09-05  Roger Fong  <roger_fong@apple.com>
1397
1398         Remove statically used varyings from packing restrictions check.
1399         https://bugs.webkit.org/show_bug.cgi?id=136585.
1400         <rdar://problem/16308409>
1401
1402         Reviewed by Dean Jackson.
1403
1404         * src/compiler/translator/Compiler.cpp:
1405         (TCompiler::enforcePackingRestrictions):
1406
1407 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
1408
1409         Unreviwed, remove empty directories.
1410
1411         * src/compiler/depgraph: Removed.
1412         * src/compiler/timing: Removed.
1413         * src/libGLESv2/renderer/shaders: Removed.
1414         * src/libGLESv2/renderer/shaders/compiled: Removed.
1415
1416 2014-08-11  Andy Estes  <aestes@apple.com>
1417
1418         [iOS] Get rid of iOS.xcconfig
1419         https://bugs.webkit.org/show_bug.cgi?id=135809
1420
1421         Reviewed by Joseph Pecoraro.
1422
1423         All iOS.xcconfig did was include AspenFamily.xcconfig, so there's no need for the indirection.
1424
1425         * ANGLE.xcodeproj/project.pbxproj:
1426         * Configurations/Base.xcconfig:
1427         * Configurations/iOS.xcconfig: Removed.
1428
1429 2014-08-07  Brent Fulgham  <bfulgham@apple.com>
1430
1431         [Win] Unreviewed gardening.
1432
1433         DebugSuffix targets should use our debugsuffix property sheet, and
1434         will therefore build to the proper output location with the proper
1435         suffix tags.
1436
1437         Also, we must use the WebKit_Libraries environment variable, not a set
1438         of relative paths to the property sheets.
1439
1440         * ANGLE.vcxproj/libEGL.vcxproj: Use 'debugsuffix.props' sheet.
1441         * ANGLE.vcxproj/libGLESv2.vcxproj: Ditto.
1442         * ANGLE.vcxproj/preprocessor.vcxproj: Ditto.
1443         * ANGLE.vcxproj/translator_common.vcxproj: Ditto.
1444         * ANGLE.vcxproj/translator_glsl.vcxproj: Ditto.
1445         * ANGLE.vcxproj/translator_hlsl.vcxproj: Ditto.
1446         * ANGLE.vcxproj/libEGLCommon.props: Use $(DebugSuffix) endings.
1447         * ANGLE.vcxproj/libGLESv2Common.props: Ditto.
1448         * ANGLE.vcxproj/translatorCommon.props: Output to 'lib' folder,
1449         not 'bin' folder. These are libraries!
1450
1451 2014-08-02  Brent Fulgham  <bfulgham@apple.com>
1452
1453         [Win] Unreviewed build fix.
1454
1455         * src/libGLESv2/renderer/d3d11/BufferStorage11.cpp:
1456         (rx::BufferStorage11::copyData): Help compiler make
1457         decision about types.
1458
1459 2014-07-25  peavo@outlook.com  <peavo@outlook.com>
1460
1461         [Win][ANGLE] Enable D3D11.
1462         https://bugs.webkit.org/show_bug.cgi?id=135296
1463
1464         Reviewed by Alex Christensen.
1465
1466         Direct3D 11 is not enabled on Windows.
1467
1468         * ANGLE.vcxproj/libGLESv2.vcxproj: Added files.
1469         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Ditto.
1470         * ANGLE.vcxproj/libGLESv2Common.props: Enable D3D11.
1471         * src/libGLESv2/precompiled.h: Header file does not exist, avoid include.
1472         * changes.diff: Updated diff.
1473
1474 2014-06-04  Alex Christensen  <achristensen@webkit.org>
1475
1476         Enable WebGL on Windows.
1477         https://bugs.webkit.org/show_bug.cgi?id=133503
1478
1479         Reviewed by Brent Fulgham.
1480
1481         * changes.diff
1482         Recorded additional changes from ANGLE.
1483         * ANGLE.vcxproj/libEGL.vcxproj:
1484         * ANGLE.vcxproj/libEGL.vcxproj.filters:
1485         * ANGLE.vcxproj/libGLESv2.vcxproj:
1486         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
1487         * include/EGL/egl.h:
1488         * include/EGL/eglsoftlinking.h: Added.
1489         * include/GLES2/gl2.h:
1490         * include/GLES2/gl2softlinking.h: Added.
1491         Resurrected soft linking headers from r153664.
1492         * src/libGLESv2/renderer/VertexBuffer.cpp:
1493         (rx::VertexBufferInterface::directStoragePossible):
1494         Compile fix for Win64.
1495
1496 2014-05-02  Alex Christensen  <achristensen@webkit.org>
1497
1498         Update ANGLE Windows build.
1499         https://bugs.webkit.org/show_bug.cgi?id=132456
1500
1501         Reviewed by Brent Fulgham.
1502
1503         * ANGLE.vcxproj/libEGLCommon.props:
1504         * ANGLE.vcxproj/libGLESv2.vcxproj:
1505         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
1506         * ANGLE.vcxproj/libGLESv2Common.props:
1507         * ANGLE.vcxproj/translator_common.vcxproj:
1508         * ANGLE.vcxproj/translator_common.vcxproj.filters:
1509         * ANGLE.vcxproj/translator_glsl.vcxproj:
1510         * ANGLE.vcxproj/translator_glsl.vcxproj.filters:
1511         * ANGLE.vcxproj/translator_hlsl.vcxproj:
1512         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
1513         Updated ANGLE build.
1514         * src/ANGLE.sln: Removed.
1515         * src/build_angle.gyp: Removed.
1516         * src/commit.h: Added.
1517         * changes.diff:
1518         * src/libGLESv2/Program.cpp:
1519         (gl::InfoLog::append):
1520         Fixed typo.
1521
1522 2014-05-01  Alex Christensen  <achristensen@webkit.org>
1523
1524         Finish updating ANGLE.
1525         https://bugs.webkit.org/show_bug.cgi?id=132434
1526
1527         Reviewed by Dean Jackson.
1528
1529         * ANGLE.xcodeproj/project.pbxproj:
1530         Removed Uniform.cpp which is no longer in ANGLE.
1531         * changes.diff:
1532         Added more changes from ANGLE which are already included in WebKit.
1533
1534         Updated ANGLE source files to e7a453a5bd76705ccb151117fa844846d4aa90af.  Long list of changes omitted.
1535
1536 2014-04-30  Alex Christensen  <achristensen@webkit.org>
1537
1538         Updated ANGLE.
1539         https://bugs.webkit.org/show_bug.cgi?id=132367
1540         <rdar://problem/16211451>
1541
1542         Reviewed by Dean Jackson.
1543
1544         * ANGLE.plist:
1545         Updated and xml encoded.
1546         * ANGLE.xcodeproj/project.pbxproj:
1547         Added needed new source files.
1548         * changes.diff: 
1549         Added to keep track of differences between WebKit's copy of ANGLE and the master repository.
1550         
1551         Updated ANGLE source files to e7a453a5bd76705ccb151117fa844846d4aa90af.  Long list of changes omitted.
1552
1553 2014-03-25  Martin Robinson  <mrobinson@igalia.com>
1554
1555         [GTK] Remove the autotools build
1556         https://bugs.webkit.org/show_bug.cgi?id=130717
1557
1558         Reviewed by Anders Carlsson.
1559
1560         * GNUmakefile.am: Removed.
1561
1562 2014-03-14  Mark Rowe  <mrowe@apple.com>
1563
1564         Fix the production build.
1565
1566         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
1567         be at the expected relative path when working from installed source.
1568
1569         * Configurations/Base.xcconfig:
1570
1571 2014-03-13  Tim Horton  <timothy_horton@apple.com>
1572
1573         Fix relative paths to UseInternalSDK.xcconfig for ANGLE and WebKit/mac
1574
1575         Rubber-stamped by Mark Rowe.
1576
1577         One-too-few "..".
1578
1579         * Configurations/Base.xcconfig:
1580
1581 2014-03-13  Radu Stavila  <stavila@adobe.com>
1582
1583         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
1584         https://bugs.webkit.org/show_bug.cgi?id=130087
1585
1586         Reviewed by Mark Rowe.
1587
1588         Disable garbage collection on macosx when not using internal SDK.
1589
1590         * Configurations/Base.xcconfig:
1591
1592 2014-02-24  Dean Jackson  <dino@apple.com>
1593
1594         Unreviewed. This file should not be marked as executable (copied in from ANGLE).
1595
1596         * include/KHR/khrplatform.h:
1597
1598 2014-02-23  David Kilzer  <ddkilzer@apple.com>
1599
1600         ANGLE: Stop using unsafe strcpy method
1601         <http://webkit.org/b/129237>
1602         <rdar://problem/11077580>
1603
1604         Reviewed by Dean Jackson.
1605
1606         * include/GLSLANG/ShaderLang.h:
1607         - Drive-by fix for header documentation.
1608
1609         * src/compiler/translator/ShaderLang.cpp:
1610         (ShGetInfoLog):
1611         (ShGetObjectCode):
1612         * src/libGLESv2/Program.cpp:
1613         (gl::InfoLog::append):
1614         - Switch to use strncpy(), and explicitly set NULL terminator at
1615           the end of the buffer.
1616
1617 2014-02-23  Brent Fulgham  <bfulgham@apple.com>
1618
1619         [WinCairo] Unreviewed build fix after r164565.
1620
1621         * ANGLE.vcxproj/libEGL.vcxproj: Use correct path to files.
1622         * ANGLE.vcxproj/libGLESv2.vcxproj: Ditto.
1623         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Ditto.
1624         * ANGLE.vcxproj/preprocessor.vcxproj: Ditto.
1625         * ANGLE.vcxproj/translator_common.vcxproj: Ditto.
1626         * ANGLE.vcxproj/translator_common.vcxproj.filters: Ditto.
1627         * ANGLE.vcxproj/translator_glsl.vcxproj: Ditto.
1628         * ANGLE.vcxproj/translator_glsl.vcxproj.filters: Ditto.
1629         * ANGLE.vcxproj/translator_hlsl.vcxproj: Ditto.
1630         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters: Ditto.
1631
1632 2014-02-23  Dean Jackson  <dino@apple.com>
1633
1634         Missing files from previous commit.
1635
1636 2014-02-23  Dean Jackson  <dino@apple.com>
1637
1638         Update ANGLE to 836bd2176e5607b14846cf1fbc5932dbc91318f4
1639         https://bugs.webkit.org/show_bug.cgi?id=129232
1640
1641         Reviewed by Brent Fulgham.
1642
1643         I also reapplied some of our changes from previous updates, including disabling the clang deprecation
1644         warnings in some files, adding the Apple note about license and defining YY_NO_INPUT.
1645
1646         Huge list of source changes omitted.
1647
1648 2013-12-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1649
1650         Unreviewed. Fix make distcheck.
1651
1652         * GNUmakefile.am:
1653
1654 2013-12-17  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
1655
1656         [GTK] Some ANGLE headers missing from dist
1657         https://bugs.webkit.org/show_bug.cgi?id=125782
1658
1659         Reviewed by Carlos Garcia Campos.
1660
1661         * GNUmakefile.am: add a few headers that were missing from the build,
1662         causing build failures when the system headers were incompatible.
1663
1664 2013-12-16  Alex Christensen  <achristensen@webkit.org>
1665
1666         Fixed Win64 build on VS2013.
1667         https://bugs.webkit.org/show_bug.cgi?id=125753
1668
1669         Reviewed by Brent Fulgham.
1670
1671         * ANGLE.vcxproj/libGLESv2.vcxproj:
1672         * ANGLE.vcxproj/preprocessor.vcxproj:
1673         * ANGLE.vcxproj/translator_common.vcxproj:
1674         * ANGLE.vcxproj/translator_glsl.vcxproj:
1675         * ANGLE.vcxproj/translator_hlsl.vcxproj:
1676         Added correct PlatformToolset for 64-bit builds.
1677
1678 2013-12-13  Brent Fulgham  <bfulgham@apple.com>
1679
1680         [Win] Unreviewed build fix after r160548
1681
1682         I missed the ANGLE files, since we aren't building these
1683         on the Apple Windows port at the moment.
1684
1685         * ANGLE.vcxproj/libEGL.vcxproj: Update to VS2013
1686         * ANGLE.vcxproj/libGLESv2.vcxproj: Ditto
1687         * ANGLE.vcxproj/preprocessor.vcxproj: Ditto
1688         * ANGLE.vcxproj/translator_common.vcxproj: Ditto
1689         * ANGLE.vcxproj/translator_glsl.vcxproj: Ditto
1690         * ANGLE.vcxproj/translator_hlsl.vcxproj: Ditto
1691
1692 2013-12-06  Commit Queue  <commit-queue@webkit.org>
1693
1694         Unreviewed, rolling out r159543.
1695         http://trac.webkit.org/changeset/159543
1696         https://bugs.webkit.org/show_bug.cgi?id=125371
1697
1698         Build fix for mac no longer needed (Requested by rfong on
1699         #webkit).
1700
1701         * ANGLE.xcodeproj/project.pbxproj:
1702         * src/compiler/glslang_tab.cpp:
1703         (yysyntax_error):
1704         (glslang_parse):
1705         * src/compiler/glslang_tab.h:
1706         * src/compiler/preprocessor/ExpressionParser.cpp:
1707         (yy_symbol_print):
1708         (yy_stack_print):
1709         (yy_reduce_print):
1710         (yytnamerr):
1711         (yysyntax_error):
1712         (yydestruct):
1713         (yyparse):
1714
1715 2013-12-05  Roger Fong  <roger_fong@apple.com>
1716
1717         [WebGL] Make sure we satisfy uniform and varying packing restrictions.
1718         https://bugs.webkit.org/show_bug.cgi?id=125124.
1719         <rdar://problem/15203291>
1720
1721         Reviewed by Brent Fulgham.
1722
1723         * src/compiler/Compiler.cpp: 
1724         Add a check to enforcePackingRestrictions to ensure we make sure packing restrictions for varyings are satisfied as well.
1725         (TCompiler::TCompiler):
1726         (TCompiler::Init):
1727         (TCompiler::compile):
1728         (TCompiler::enforcePackingRestrictions):
1729         * src/compiler/ShHandle.h: Keep track of maximum varying vectors.
1730
1731 2013-12-05  Matthew Hanson  <matthew_hanson@apple.com>
1732
1733         Fix ANGLE build failures by re-comitting the changes in http://trac.webkit.org/changeset/154223
1734         on top of the library updates introduced by http://trac.webkit.org/changeset/159533.
1735
1736         Rubber-stamped by Babak Shafiei.
1737
1738         * src/compiler/glslang.l:
1739         * src/compiler/glslang_lex.cpp:
1740         * src/compiler/preprocessor/Tokenizer.cpp:
1741         * src/compiler/preprocessor/Tokenizer.l:
1742
1743 2013-12-03  Daniel Bates  <dabates@apple.com>
1744
1745         ANGLE fails to build with trunk clang: unused constant kTraceBufferLen
1746         https://bugs.webkit.org/show_bug.cgi?id=125164
1747         https://code.google.com/p/angleproject/issues/detail?id=534
1748
1749         Reviewed by Darin Adler.
1750
1751         Move the definition of the constant kTraceBufferLen under the macro
1752         guard TRACE_ENABLED since it's only referenced in code guarded by
1753         TRACE_ENABLED.
1754
1755         * src/compiler/debug.cpp:
1756
1757 2013-11-21  Alex Christensen  <achristensen@webkit.org>
1758
1759         Remove ANGLEGenerated from Windows build.
1760         https://bugs.webkit.org/show_bug.cgi?id=124759
1761
1762         Reviewed by Darin Adler.
1763
1764         * ANGLE.vcxproj/ANGLEGenerated.vcxproj: Removed.
1765         * ANGLE.vcxproj/ANGLEGenerated.vcxproj.filters: Removed.
1766
1767 2013-11-21  Alex Christensen  <achristensen@webkit.org>
1768
1769         Unreviewed build fix.
1770
1771         * src/libGLESv2/Constants.h: Added from checkout a60e0805721f62c28a55faf2df74472cc5fc91fc.
1772
1773 2013-11-21  Mark Rowe  <mrowe@apple.com>
1774
1775         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1776
1777         Reviewed by Alexey Proskuryakov.
1778
1779         * Configurations/Base.xcconfig:
1780
1781 2013-11-21  Brent Fulgham  <bfulgham@apple.com>
1782
1783         Unreviewed gardening to hide annoying *.user files when.
1784
1785         * ANGLE.vcxproj: Added property svn:ignore.
1786
1787 2013-11-21  peavo@outlook.com  <peavo@outlook.com>
1788
1789         [WinCairo] Building ANGLE libraries fails.
1790         https://bugs.webkit.org/show_bug.cgi?id=124679
1791
1792         Reviewed by Brent Fulgham.
1793
1794         Added/removed files to/from project, and re-added constants.h file.
1795
1796         * ANGLE.vcxproj/libEGL.vcxproj:
1797         * ANGLE.vcxproj/libEGL.vcxproj.filters:
1798         * ANGLE.vcxproj/libGLESv2.vcxproj:
1799         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
1800         * ANGLE.vcxproj/libGLESv2Common.props:
1801         * ANGLE.vcxproj/translator_common.vcxproj:
1802         * ANGLE.vcxproj/translator_common.vcxproj.filters:
1803         * ANGLE.vcxproj/translator_glsl.vcxproj:
1804         * ANGLE.vcxproj/translator_glsl.vcxproj.filters:
1805         * ANGLE.vcxproj/translator_hlsl.vcxproj:
1806         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters:
1807         * src/libGLESv2/libGLESv2.def:
1808
1809 2013-11-20  Sergio Correia  <sergio.correia@openbossa.org>
1810
1811         ANGLE doesn't build with bison 3.0
1812         https://bugs.webkit.org/show_bug.cgi?id=124642
1813
1814         Reviewed by Gyuyoung Kim.
1815
1816         This is a reedition of r154109, now that ANGLE source has been updated
1817         in r159533.
1818
1819         * src/compiler/glslang.y: Use %lex-param to set YYLEX_PARAM and stop
1820         using the deprecated YYID macro.
1821
1822 2013-11-20  Carlos Garcia Campos  <cgarcia@igalia.com>
1823
1824         Unreviewed. Fix GTK build.
1825
1826         * GNUmakefile.am: Remove duplicated entries.
1827
1828 2013-11-19  Martin Robinson  <mrobinson@igalia.com>
1829
1830         Fix the GTK+ build after the ANGLE update in r159533
1831
1832         * GNUmakefile.am: Update the source list.
1833
1834 2013-11-19  Roger Fong  <roger_fong@apple.com>
1835
1836         Unreviewed. Build fix for Mac.
1837
1838         * src/compiler/glslang_tab.cpp:
1839         (yysyntax_error):
1840         (yyerror):
1841         * src/compiler/glslang_tab.h:
1842         * src/compiler/preprocessor/ExpressionParser.cpp:
1843         (yysyntax_error):
1844
1845 2013-11-19  Roger Fong  <roger_fong@apple.com>
1846
1847         Unreviewed. Prospective build fix for GTK port following r159533.
1848
1849         * GNUmakefile.am:
1850
1851 2013-11-19  Roger Fong  <roger_fong@apple.com>
1852
1853         Update ANGLE sources.
1854         https://bugs.webkit.org/show_bug.cgi?id=124615.
1855
1856         Reviewed by Dean Jackson.
1857
1858         Update ANGLE to checkout a60e0805721f62c28a55faf2df74472cc5fc91fc.
1859         Modify xcodeproj files as necessary, update plist.
1860         Stop using DerivedSources.make and just use the generated sources that are checked into ANGLE.
1861         Add a note to bison generated files indicating that Apple elects to distribute said files under the BSD license: 
1862         ExpressionParser.cpp, glslang_tab.cpp, glslang_tab.h.
1863
1864         * ANGLE.plist:
1865         * ANGLE.xcodeproj/project.pbxproj:
1866         * DerivedSources.make: Removed.
1867         * include/EGL/egl.h:
1868         * include/EGL/eglsoftlinking.h: Removed.
1869         * include/GLES2/gl2.h:
1870         * include/GLES2/gl2softlinking.h: Removed.
1871         * include/GLSLANG/ShaderLang.h:
1872         * include/KHR/khrplatform.h:
1873         * src/ANGLE.sln: Added.
1874         * src/build_angle.gypi:
1875         * src/common/debug.h:
1876         * src/common/event_tracer.cpp: Added.
1877         (gl::TraceGetTraceCategoryEnabledFlag):
1878         (gl::TraceAddTraceEvent):
1879         * src/common/event_tracer.h: Added.
1880         * src/common/version.h:
1881         * src/compiler/CodeGen.cpp: Added.
1882         (ConstructCompiler):
1883         (DeleteCompiler):
1884         * src/compiler/CodeGenGLSL.cpp: Removed.
1885         * src/compiler/CodeGenHLSL.cpp: Removed.
1886         * src/compiler/Common.h:
1887         (NewPoolTString):
1888         * src/compiler/Compiler.cpp:
1889         (TCompiler::Init):
1890         (TCompiler::compile):
1891         (TCompiler::InitBuiltInSymbolTable):
1892         (TCompiler::clearResults):
1893         (TCompiler::collectVariables):
1894         * src/compiler/ConstantUnion.h:
1895         * src/compiler/DetectDiscontinuity.cpp:
1896         * src/compiler/InfoSink.h:
1897         * src/compiler/InitializeDll.cpp:
1898         (InitProcess):
1899         (DetachProcess):
1900         * src/compiler/InitializeDll.h:
1901         * src/compiler/InitializeGLPosition.cpp: Added.
1902         (InitializeGLPosition::visitAggregate):
1903         (InitializeGLPosition::insertCode):
1904         * src/compiler/InitializeGLPosition.h: Added.
1905         (InitializeGLPosition::InitializeGLPosition):
1906         (InitializeGLPosition::visitBinary):
1907         (InitializeGLPosition::visitUnary):
1908         (InitializeGLPosition::visitSelection):
1909         (InitializeGLPosition::visitLoop):
1910         (InitializeGLPosition::visitBranch):
1911         * src/compiler/InitializeGlobals.h:
1912         * src/compiler/InitializeParseContext.cpp:
1913         (InitializeParseContextIndex):
1914         (FreeParseContextIndex):
1915         (SetGlobalParseContext):
1916         (GetGlobalParseContext):
1917         * src/compiler/InitializeParseContext.h:
1918         * src/compiler/IntermTraverse.cpp:
1919         (TIntermSymbol::traverse):
1920         (TIntermConstantUnion::traverse):
1921         (TIntermBinary::traverse):
1922         (TIntermUnary::traverse):
1923         (TIntermAggregate::traverse):
1924         (TIntermSelection::traverse):
1925         (TIntermLoop::traverse):
1926         (TIntermBranch::traverse):
1927         * src/compiler/Intermediate.cpp:
1928         (GetHigherPrecision):
1929         (getOperatorString):
1930         (TIntermLoop::replaceChildNode):
1931         (TIntermBranch::replaceChildNode):
1932         (TIntermBinary::replaceChildNode):
1933         (TIntermUnary::replaceChildNode):
1934         (TIntermAggregate::replaceChildNode):
1935         (TIntermSelection::replaceChildNode):
1936         (TIntermOperator::isAssignment):
1937         (TIntermediate::promoteConstantUnion):
1938         * src/compiler/MapLongVariableNames.cpp:
1939         * src/compiler/MapLongVariableNames.h:
1940         * src/compiler/NodeSearch.h: Added.
1941         (sh::NodeSearchTraverser::NodeSearchTraverser):
1942         (sh::NodeSearchTraverser::found):
1943         (sh::NodeSearchTraverser::search):
1944         (sh::FindDiscard::visitBranch):
1945         (sh::FindSideEffectRewriting::visitBinary):
1946         * src/compiler/OutputGLSLBase.cpp:
1947         (TOutputGLSLBase::visitSelection):
1948         (TOutputGLSLBase::visitAggregate):
1949         (TOutputGLSLBase::visitLoop):
1950         * src/compiler/OutputGLSLBase.h:
1951         * src/compiler/OutputHLSL.cpp:
1952         (sh::OutputHLSL::OutputHLSL):
1953         (sh::OutputHLSL::header):
1954         (sh::OutputHLSL::visitBinary):
1955         (sh::OutputHLSL::visitSelection):
1956         (sh::OutputHLSL::visitBranch):
1957         (sh::OutputHLSL::handleExcessiveLoop):
1958         (sh::OutputHLSL::addConstructor):
1959         * src/compiler/OutputHLSL.h:
1960         * src/compiler/ParseContext.cpp: Added.
1961         (TParseContext::parseVectorFields):
1962         (TParseContext::parseMatrixFields):
1963         (TParseContext::recover):
1964         (TParseContext::error):
1965         (TParseContext::warning):
1966         (TParseContext::trace):
1967         (TParseContext::assignError):
1968         (TParseContext::unaryOpError):
1969         (TParseContext::binaryOpError):
1970         (TParseContext::precisionErrorCheck):
1971         (TParseContext::lValueErrorCheck):
1972         (TParseContext::constErrorCheck):
1973         (TParseContext::integerErrorCheck):
1974         (TParseContext::globalErrorCheck):
1975         (TParseContext::reservedErrorCheck):
1976         (TParseContext::constructorErrorCheck):
1977         (TParseContext::voidErrorCheck):
1978         (TParseContext::boolErrorCheck):
1979         (TParseContext::samplerErrorCheck):
1980         (TParseContext::structQualifierErrorCheck):
1981         (TParseContext::parameterSamplerErrorCheck):
1982         (TParseContext::containsSampler):
1983         (TParseContext::arraySizeErrorCheck):
1984         (TParseContext::arrayQualifierErrorCheck):
1985         (TParseContext::arrayTypeErrorCheck):
1986         (TParseContext::arrayErrorCheck):
1987         (TParseContext::nonInitConstErrorCheck):
1988         (TParseContext::nonInitErrorCheck):
1989         (TParseContext::paramErrorCheck):
1990         (TParseContext::extensionErrorCheck):
1991         (TParseContext::supportsExtension):
1992         (TParseContext::isExtensionEnabled):
1993         (TParseContext::findFunction):
1994         (TParseContext::executeInitializer):
1995         (TParseContext::areAllChildConst):
1996         (TParseContext::addConstructor):
1997         (TParseContext::foldConstConstructor):
1998         (TParseContext::constructBuiltIn):
1999         (TParseContext::constructStruct):
2000         (TParseContext::addConstVectorNode):
2001         (TParseContext::addConstMatrixNode):
2002         (TParseContext::addConstArrayNode):
2003         (TParseContext::addConstStruct):
2004         (TParseContext::enterStructDeclaration):
2005         (TParseContext::exitStructDeclaration):
2006         (TParseContext::structNestingErrorCheck):
2007         (TParseContext::addIndexExpression):
2008         (PaParseStrings):
2009         * src/compiler/ParseContext.h: Added.
2010         (TParseContext::TParseContext):
2011         (TParseContext::numErrors):
2012         (TParseContext::infoSink):
2013         (TParseContext::pragma):
2014         (TParseContext::extensionBehavior):
2015         * src/compiler/ParseHelper.cpp: Removed.
2016         * src/compiler/ParseHelper.h: Removed.
2017         * src/compiler/PoolAlloc.cpp:
2018         (InitializePoolIndex):
2019         (FreePoolIndex):
2020         (GetGlobalPoolAllocator):
2021         (SetGlobalPoolAllocator):
2022         * src/compiler/PoolAlloc.h:
2023         (pool_allocator::pool_allocator):
2024         * src/compiler/SearchSymbol.h:
2025         * src/compiler/ShHandle.h:
2026         (TCompiler::getVaryings):
2027         * src/compiler/ShaderLang.cpp:
2028         (checkVariableMaxLengths):
2029         (ShInitialize):
2030         (ShFinalize):
2031         (ShConstructCompiler):
2032         (ShCompile):
2033         (ShGetInfo):
2034         (ShGetVariableInfo):
2035         (ShCheckVariablesWithinPackingLimits):
2036         * src/compiler/SymbolTable.cpp:
2037         (TSymbolTable::~TSymbolTable):
2038         * src/compiler/SymbolTable.h:
2039         (TSymbol::TSymbol):
2040         (TSymbolTableLevel::insert):
2041         (TSymbolTable::push):
2042         (TSymbolTable::pop):
2043         (TSymbolTable::findBuiltIn):
2044         (TSymbolTable::relateToExtension):
2045         (TSymbolTable::setDefaultPrecision):
2046         (TSymbolTable::getDefaultPrecision):
2047         (TSymbolTable::supportsPrecision):
2048         * src/compiler/Types.h:
2049         (NewPoolTFieldList):
2050         (TType::TType):
2051         (TType::setNominalSize):
2052         (TPublicType::setAggregate):
2053         * src/compiler/UnfoldShortCircuit.cpp:
2054         (sh::UnfoldShortCircuit::visitBinary):
2055         (sh::UnfoldShortCircuit::visitSelection):
2056         * src/compiler/UnfoldShortCircuit.h:
2057         * src/compiler/UnfoldShortCircuitAST.cpp: Added.
2058         (UnfoldShortCircuitAST::visitBinary):
2059         (UnfoldShortCircuitAST::updateTree):
2060         * src/compiler/UnfoldShortCircuitAST.h: Added.
2061         (UnfoldShortCircuitAST::UnfoldShortCircuitAST):
2062         (UnfoldShortCircuitAST::NodeUpdateEntry::NodeUpdateEntry):
2063         * src/compiler/Uniform.cpp:
2064         (sh::Uniform::Uniform):
2065         * src/compiler/Uniform.h:
2066         * src/compiler/ValidateLimitations.cpp:
2067         (ValidateLimitations::validateFunctionCall):
2068         (ValidateLimitations::validateOperation):
2069         * src/compiler/VariableInfo.cpp:
2070         (TVariableInfo::TVariableInfo):
2071         (CollectVariables::CollectVariables):
2072         (CollectVariables::visitSymbol):
2073         (CollectVariables::visitAggregate):
2074         * src/compiler/VariableInfo.h:
2075         * src/compiler/debug.cpp:
2076         * src/compiler/depgraph/DependencyGraph.cpp:
2077         * src/compiler/depgraph/DependencyGraphBuilder.cpp:
2078         (TDependencyGraphBuilder::visitBinary):
2079         * src/compiler/generate_parser.sh:
2080         * src/compiler/glslang.l:
2081         * src/compiler/glslang.y:
2082         * src/compiler/glslang_lex.cpp:
2083         (input):
2084         (yyerror):
2085         (int_constant):
2086         (float_constant):
2087         (glslang_scan):
2088         * src/compiler/glslang_tab.cpp:
2089         (yysyntax_error):
2090         (glslang_parse):
2091         * src/compiler/glslang_tab.h:
2092         * src/compiler/intermediate.h:
2093         (TIntermSymbol::hasSideEffects):
2094         (TIntermSymbol::replaceChildNode):
2095         (TIntermConstantUnion::hasSideEffects):
2096         (TIntermConstantUnion::getIConst):
2097         (TIntermConstantUnion::getFConst):
2098         (TIntermConstantUnion::getBConst):
2099         (TIntermConstantUnion::replaceChildNode):
2100         (TIntermOperator::hasSideEffects):
2101         (TIntermBinary::hasSideEffects):
2102         (TIntermUnary::hasSideEffects):
2103         (TIntermAggregate::hasSideEffects):
2104         (TIntermSelection::hasSideEffects):
2105         (TIntermTraverser::~TIntermTraverser):
2106         (TIntermTraverser::incrementDepth):
2107         (TIntermTraverser::decrementDepth):
2108         (TIntermTraverser::getParentNode):
2109         * src/compiler/localintermediate.h:
2110         * src/compiler/parseConst.cpp:
2111         * src/compiler/preprocessor/ExpressionParser.cpp:
2112         (yy_symbol_print):
2113         (yy_stack_print):
2114         (yy_reduce_print):
2115         (yystrlen):
2116         (yystpcpy):
2117         (yytnamerr):
2118         (yysyntax_error):
2119         (yydestruct):
2120         (yyparse):
2121         * src/compiler/preprocessor/ExpressionParser.y:
2122         * src/compiler/preprocessor/Preprocessor.cpp:
2123         (pp::Preprocessor::setMaxTokenLength):
2124         (pp::Preprocessor::lex):
2125         * src/compiler/preprocessor/Preprocessor.h:
2126         * src/compiler/preprocessor/Tokenizer.cpp:
2127         (pp::Tokenizer::Tokenizer):
2128         (pp::Tokenizer::lex):
2129         * src/compiler/preprocessor/Tokenizer.h:
2130         (pp::Tokenizer::setMaxTokenLength):
2131         * src/compiler/preprocessor/Tokenizer.l:
2132         * src/compiler/preprocessor/generate_parser.sh:
2133         * src/compiler/preprocessor/preprocessor.vcxproj: Added.
2134         * src/compiler/preprocessor/preprocessor.vcxproj.filters: Added.
2135         * src/compiler/timing/RestrictFragmentShaderTiming.cpp:
2136         * src/compiler/translator.vcxproj: Added.
2137         * src/compiler/translator.vcxproj.filters: Added.
2138         * src/compiler/util.cpp:
2139         (atof_clamp):
2140         (atoi_clamp):
2141         * src/compiler/util.h:
2142         * src/libEGL/Surface.cpp:
2143         (egl::Surface::checkForOutOfDateSwapChain):
2144         * src/libEGL/libEGL.cpp:
2145         * src/libEGL/libEGL.rc:
2146         * src/libEGL/libEGL.vcxproj: Added.
2147         * src/libEGL/libEGL.vcxproj.filters: Added.
2148         * src/libGLESv2/Buffer.cpp:
2149         (gl::Buffer::bufferData):
2150         (gl::Buffer::bufferSubData):
2151         (gl::Buffer::size):
2152         (gl::Buffer::getIndexRangeCache):
2153         * src/libGLESv2/Buffer.h:
2154         * src/libGLESv2/Context.cpp:
2155         (gl::Context::applyTextures):
2156         (gl::Context::getBoundFramebufferTextureSerials):
2157         * src/libGLESv2/Context.h:
2158         (gl::Context::getRenderer):
2159         * src/libGLESv2/Framebuffer.h:
2160         * src/libGLESv2/ProgramBinary.cpp:
2161         (gl::DiscardWorkaround):
2162         (gl::ProgramBinary::load):
2163         (gl::ProgramBinary::link):
2164         (gl::ProgramBinary::linkAttributes):
2165         (gl::AttributeSorter::AttributeSorter):
2166         (gl::ProgramBinary::initAttributesByLayout):
2167         (gl::ProgramBinary::sortAttributesByLayout):
2168         * src/libGLESv2/ProgramBinary.h:
2169         * src/libGLESv2/Renderbuffer.cpp:
2170         (gl::RenderbufferTexture2D::getTextureSerial):
2171         (gl::RenderbufferTextureCubeMap::getTextureSerial):
2172         (gl::Renderbuffer::getTextureSerial):
2173         * src/libGLESv2/Renderbuffer.h:
2174         (gl::RenderbufferStorage::getTextureSerial):
2175         * src/libGLESv2/Shader.cpp:
2176         (gl::Shader::parseVaryings):
2177         (gl::Shader::uncompile):
2178         * src/libGLESv2/Shader.h:
2179         * src/libGLESv2/Texture.cpp:
2180         (gl::TextureCubeMap::storage):
2181         * src/libGLESv2/Uniform.cpp:
2182         (gl::Uniform::Uniform):
2183         (gl::Uniform::~Uniform):
2184         (gl::Uniform::isArray):
2185         (gl::Uniform::elementCount):
2186         * src/libGLESv2/Uniform.h:
2187         * src/libGLESv2/constants.h: Removed.
2188         * src/libGLESv2/libGLESv2.def:
2189         * src/libGLESv2/libGLESv2.rc:
2190         * src/libGLESv2/libGLESv2.vcxproj: Added.
2191         * src/libGLESv2/libGLESv2.vcxproj.filters: Added.
2192         * src/libGLESv2/precompiled.h:
2193         * src/libGLESv2/renderer/Image11.cpp:
2194         (rx::Image11::generateMipmap):
2195         (rx::Image11::loadData):
2196         (rx::Image11::loadCompressedData):
2197         (rx::Image11::copy):
2198         (rx::Image11::createStagingTexture):
2199         (rx::Image11::map):
2200         * src/libGLESv2/renderer/Image11.h:
2201         * src/libGLESv2/renderer/IndexBuffer.cpp:
2202         (rx::IndexBufferInterface::mapBuffer):
2203         (rx::StaticIndexBufferInterface::getIndexRangeCache):
2204         * src/libGLESv2/renderer/IndexBuffer.h:
2205         * src/libGLESv2/renderer/IndexBuffer11.cpp:
2206         (rx::IndexBuffer11::mapBuffer):
2207         * src/libGLESv2/renderer/IndexDataManager.cpp:
2208         (rx::IndexDataManager::prepareIndexData):
2209         (rx::IndexDataManager::getCountingIndices):
2210         * src/libGLESv2/renderer/IndexRangeCache.cpp: Added.
2211         (rx::IndexRangeCache::addRange):
2212         (rx::IndexRangeCache::invalidateRange):
2213         (rx::IndexRangeCache::findRange):
2214         (rx::IndexRangeCache::clear):
2215         (rx::IndexRangeCache::IndexRange::IndexRange):
2216         (rx::IndexRangeCache::IndexRange::operator<):
2217         (rx::IndexRangeCache::IndexBounds::IndexBounds):
2218         * src/libGLESv2/renderer/IndexRangeCache.h: Added.
2219         * src/libGLESv2/renderer/InputLayoutCache.cpp:
2220         (rx::InputLayoutCache::InputLayoutCache):
2221         (rx::InputLayoutCache::clear):
2222         (rx::InputLayoutCache::markDirty):
2223         (rx::InputLayoutCache::applyVertexBuffers):
2224         (rx::InputLayoutCache::hashInputLayout):
2225         (rx::InputLayoutCache::compareInputLayouts):
2226         * src/libGLESv2/renderer/InputLayoutCache.h:
2227         (rx::InputLayoutCache::InputLayoutKey::begin):
2228         (rx::InputLayoutCache::InputLayoutKey::end):
2229         * src/libGLESv2/renderer/RenderTarget11.cpp:
2230         (rx::RenderTarget11::getTexture):
2231         (rx::RenderTarget11::getRenderTargetView):
2232         (rx::RenderTarget11::getDepthStencilView):
2233         (rx::RenderTarget11::getShaderResourceView):
2234         * src/libGLESv2/renderer/RenderTarget11.h:
2235         * src/libGLESv2/renderer/Renderer.cpp:
2236         (rx::Renderer::initializeCompiler):
2237         * src/libGLESv2/renderer/Renderer.h:
2238         * src/libGLESv2/renderer/Renderer11.cpp:
2239         (rx::Renderer11::initialize):
2240         (rx::Renderer11::applyPrimitiveType):
2241         (rx::Renderer11::applyRenderTarget):
2242         (rx::Renderer11::drawLineLoop):
2243         (rx::Renderer11::drawTriangleFan):
2244         (rx::Renderer11::applyUniforms):
2245         (rx::Renderer11::clear):
2246         (rx::Renderer11::markAllStateDirty):
2247         (rx::Renderer11::copyImage):
2248         (rx::Renderer11::compileToExecutable):
2249         (rx::Renderer11::getRenderTargetResource):
2250         (rx::Renderer11::blitRenderbufferRect):
2251         * src/libGLESv2/renderer/Renderer11.h:
2252         * src/libGLESv2/renderer/Renderer9.cpp:
2253         (rx::Renderer9::initialize):
2254         (rx::Renderer9::setViewport):
2255         (rx::Renderer9::drawLineLoop):
2256         (rx::Renderer9::compileToExecutable):
2257         * src/libGLESv2/renderer/Renderer9.h:
2258         * src/libGLESv2/renderer/SwapChain.h:
2259         * src/libGLESv2/renderer/SwapChain11.cpp:
2260         (rx::SwapChain11::resetOffscreenTexture):
2261         (rx::SwapChain11::reset):
2262         (rx::SwapChain11::swapRect):
2263         * src/libGLESv2/renderer/SwapChain9.cpp:
2264         (rx::convertInterval):
2265         * src/libGLESv2/renderer/TextureStorage11.cpp:
2266         (rx::TextureStorage11::IsTextureFormatRenderable):
2267         (rx::TextureStorage11::generateMipmapLayer):
2268         (rx::TextureStorage11_Cube::getRenderTarget):
2269         * src/libGLESv2/renderer/VertexBuffer.cpp:
2270         (rx::VertexBufferInterface::storeVertexAttributes):
2271         (rx::VertexBufferInterface::storeRawData):
2272         (rx::VertexBufferInterface::reserveVertexSpace):
2273         (rx::StaticVertexBufferInterface::lookupAttribute):
2274         (rx::StaticVertexBufferInterface::storeVertexAttributes):
2275         * src/libGLESv2/renderer/VertexBuffer.h:
2276         * src/libGLESv2/renderer/VertexBuffer11.cpp:
2277         (rx::VertexBuffer11::getSpaceRequired):
2278         * src/libGLESv2/renderer/VertexBuffer11.h:
2279         * src/libGLESv2/renderer/VertexBuffer9.cpp:
2280         (rx::VertexBuffer9::storeVertexAttributes):
2281         (rx::VertexBuffer9::getSpaceRequired):
2282         (rx::VertexBuffer9::requiresConversion):
2283         (rx::VertexBuffer9::getVertexSize):
2284         (rx::VertexBuffer9::spaceRequired):
2285         * src/libGLESv2/renderer/VertexBuffer9.h:
2286         * src/libGLESv2/renderer/VertexDataManager.cpp:
2287         (rx::elementsInBuffer):
2288         (rx::StreamingBufferElementCount):
2289         (rx::VertexDataManager::prepareVertexData):
2290         * src/libGLESv2/renderer/VertexDataManager.h:
2291         * src/libGLESv2/renderer/renderer11_utils.cpp:
2292         (gl_d3d11::ConvertTextureFormat):
2293         * src/libGLESv2/renderer/shaders/compiled/clear11vs.h:
2294         * src/libGLESv2/renderer/shaders/compiled/clearmultiple11ps.h:
2295         * src/libGLESv2/renderer/shaders/compiled/clearsingle11ps.h:
2296         * src/libGLESv2/renderer/shaders/compiled/componentmaskps.h:
2297         * src/libGLESv2/renderer/shaders/compiled/flipyvs.h:
2298         * src/libGLESv2/renderer/shaders/compiled/luminanceps.h:
2299         * src/libGLESv2/renderer/shaders/compiled/passthrough11vs.h:
2300         * src/libGLESv2/renderer/shaders/compiled/passthroughlum11ps.h:
2301         * src/libGLESv2/renderer/shaders/compiled/passthroughlumalpha11ps.h:
2302         * src/libGLESv2/renderer/shaders/compiled/passthroughps.h:
2303         * src/libGLESv2/renderer/shaders/compiled/passthroughrgb11ps.h:
2304         * src/libGLESv2/renderer/shaders/compiled/passthroughrgba11ps.h:
2305         * src/libGLESv2/renderer/shaders/compiled/standardvs.h:
2306         * src/libGLESv2/renderer/shaders/generate_shaders.bat:
2307         * src/libGLESv2/utilities.cpp:
2308         (gl::ComputeTypeSize):
2309         * src/libGLESv2/utilities.h:
2310         * src/third_party/murmurhash/MurmurHash3.cpp:
2311         (rotl32):
2312         (rotl64):
2313         (getblock):
2314         (fmix):
2315         (MurmurHash3_x86_32):
2316         (MurmurHash3_x86_128):
2317         (MurmurHash3_x64_128):
2318         * src/third_party/murmurhash/MurmurHash3.h:
2319         * src/third_party/trace_event: Added.
2320         * src/third_party/trace_event/trace_event.h: Added.
2321         (gl::TraceEvent::TraceID::TraceID):
2322         (gl::TraceEvent::TraceID::data):
2323         (gl::TraceEvent::TraceStringWithCopy::TraceStringWithCopy):
2324         (gl::TraceEvent::TraceStringWithCopy::operator const char* ):
2325         (gl::TraceEvent::setTraceValue):
2326         (gl::TraceEvent::addTraceEvent):
2327         (gl::TraceEvent::TraceEndOnScopeClose::TraceEndOnScopeClose):
2328         (gl::TraceEvent::TraceEndOnScopeClose::~TraceEndOnScopeClose):
2329         (gl::TraceEvent::TraceEndOnScopeClose::initialize):
2330         (gl::TraceEvent::TraceEndOnScopeClose::addEventIfEnabled):
2331         (gl::TraceEvent::SamplingStateScope::SamplingStateScope):
2332         (gl::TraceEvent::SamplingStateScope::~SamplingStateScope):
2333         (gl::TraceEvent::SamplingStateScope::current):
2334         (gl::TraceEvent::SamplingStateScope::set):
2335
2336 2013-11-18  Mark Rowe  <mrowe@apple.com>
2337
2338         Use hw.activecpu for determining how many processes to spawn.
2339
2340         It's documented as the preferred way to determine the number of threads
2341         or processes to create in a SMP aware application.
2342
2343         Rubber-stamped by Tim Horton.
2344
2345         * ANGLE.xcodeproj/project.pbxproj:
2346
2347 2013-11-06  Dean Jackson  <dino@apple.com>
2348
2349         kTraceBufferLen is unused in default builds
2350         https://bugs.webkit.org/show_bug.cgi?id=123941
2351         <rdar://problem/15409804>
2352
2353         Reviewed by Tim Horton.
2354
2355         kTraceBufferLen is not used in debug.cpp if TRACE_ENABLED is
2356         not defined. This causes a warning in newer builds of clang.
2357         For now, skip warnings on unused variables until we
2358         update from ANGLE.
2359
2360         * src/compiler/debug.cpp: Add unused-variable ignore pragma.
2361
2362 2013-10-24  Mark Rowe  <mrowe@apple.com>
2363
2364         Remove references to OS X 10.7 from Xcode configuration settings.
2365
2366         Now that we're not building for OS X 10.7 they're no longer needed.
2367
2368         Reviewed by Anders Carlsson.
2369
2370         * Configurations/Base.xcconfig:
2371         * Configurations/DebugRelease.xcconfig:
2372
2373 2013-10-24  Mark Rowe  <mrowe@apple.com>
2374
2375         <rdar://problem/15312643> Prepare for the mysterious future.
2376
2377         Reviewed by David Kilzer.
2378
2379         * Configurations/Base.xcconfig:
2380         * Configurations/DebugRelease.xcconfig:
2381
2382 2013-10-10  Mark Rowe  <mrowe@apple.com>
2383
2384         <rdar://problem/13341666> WebKit should always build against an SDK.
2385
2386         Have all projects default to building against the OS X Internal SDK for the Production
2387         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
2388         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
2389
2390         Reviewed by Dan Bernstein.
2391
2392         * Configurations/Base.xcconfig:
2393         * Configurations/DebugRelease.xcconfig:
2394
2395 2013-10-08  Alex Christensen  <achristensen@webkit.org>
2396
2397         Generate pdb files for debugging ANGLE DLLs.
2398         https://bugs.webkit.org/show_bug.cgi?id=122530
2399
2400         Reviewed by Brent Fulgham.
2401
2402         * ANGLE.vcxproj/libEGLCommon.props:
2403         * ANGLE.vcxproj/libGLESv2Common.props:
2404         Generate debug information.
2405
2406 2013-10-03  Dan Bernstein  <mitz@apple.com>
2407
2408         <rdar://problem/15116673> [mac] Build failure when the source directory is not named ANGLE
2409         https://bugs.webkit.org/show_bug.cgi?id=122307
2410
2411         Reviewed by Mark Rowe.
2412
2413         * ANGLE.xcodeproj/project.pbxproj: Ensure that the symlink to SRCROOT in
2414         DerivedSources/ANGLE is named ANGLE.
2415
2416 2013-09-29  Darin Adler  <darin@apple.com>
2417
2418         Take some Xcode advice about turning on additional warnings in ANGLE and gtest
2419         https://bugs.webkit.org/show_bug.cgi?id=122087
2420
2421         Reviewed by Mark Rowe.
2422
2423         * Configurations/Base.xcconfig: Add some of the warnings that Xcode 5 suggested.
2424         * src/compiler/preprocessor/Tokenizer.l: Defined YY_NO_INPUT so we don't compile
2425         an unused function and get a warning.
2426
2427 2013-09-29  Darin Adler  <darin@apple.com>
2428
2429         Use RenderElement instead of RenderObject in many places
2430         https://bugs.webkit.org/show_bug.cgi?id=122078
2431
2432         Reviewed by Andreas Kling.
2433
2434         * ANGLE.xcodeproj/project.pbxproj: Let Xcode do its thing to this file.
2435
2436 2013-09-24  Mark Rowe  <mrowe@apple.com>
2437
2438         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
2439
2440         Reviewed by Dan Bernstein.
2441
2442         * Configurations/Base.xcconfig:
2443
2444 2013-09-06  peavo@outlook.com  <peavo@outlook.com>
2445
2446         [Win][WebGL] WebGL rendering is slow.
2447         https://bugs.webkit.org/show_bug.cgi?id=120841
2448
2449         Reviewed by Brent Fulgham.
2450
2451         Rendering WebGL content is slow on Windows, because lots of debug information is written to debug.txt.
2452
2453         * ANGLE.vcxproj/ANGLERelease.props: Disable logging in release builds.
2454
2455 2013-09-05  Dan Bernstein  <mitz@apple.com>
2456
2457         INSTALL_PATH_PREFIX is used even when not installing
2458         https://bugs.webkit.org/show_bug.cgi?id=120818
2459
2460         Reviewed by Darin Adler.
2461
2462         * Configurations/ANGLE.xcconfig: Changed the definition of PRIVATE_HEADERS_FOLDER_PATH
2463         to include INSTALL_PATH_PREFIX only when installing.
2464
2465 2013-08-17  David Kilzer  <ddkilzer@apple.com>
2466
2467         ANGLE fails to build with trunk clang: error: 'register' storage class specifier is deprecated [-Werror,-Wdeprecated-register]
2468         <http://webkit.org/b/119931>
2469         <rdar://problem/14763822>
2470
2471         Reviewed by Darin Adler.
2472
2473         * src/compiler/glslang.l:
2474         * src/compiler/glslang_lex.cpp:
2475         * src/compiler/preprocessor/Tokenizer.cpp:
2476         * src/compiler/preprocessor/Tokenizer.l:
2477         Add pragma statements to ignore -Wdeprecated-register warnings
2478         in generated code.  Also ignore -Wunknown-pragmas so this
2479         doesn't cause a build failure in older versions of clang.
2480
2481 2013-08-16  Commit Queue  <commit-queue@webkit.org>
2482
2483         Unreviewed, rolling out r153749.
2484         http://trac.webkit.org/changeset/153749
2485         https://bugs.webkit.org/show_bug.cgi?id=119892
2486
2487         The bison generation of the glslang* files has now been fixed. (Requested by zdobersek on #webkit).
2488
2489         * GNUmakefile.am: Preserve the libANGLE.la dependency on the ANGLE's GNUmakefile.am.
2490
2491 2013-08-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2492
2493         ANGLE doesn't build with bison 3.0
2494         https://bugs.webkit.org/show_bug.cgi?id=119798
2495
2496         Reviewed by Antti Koivisto.
2497
2498         Make glslang.y compatible with bison 3.0, by using %lex-param
2499         to set YYLEX_PARAM and getting rid of useless YYID macro.
2500
2501         * src/compiler/glslang.y:
2502
2503 2013-08-09  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
2504
2505         [Qt] Buidfix after r153664. Adding ANGLE_WEBKIT_WIN definition.
2506         https://bugs.webkit.org/show_bug.cgi?id=119577
2507
2508         Reviewed by Allan Sandfeld Jensen.
2509
2510         * Target.pri:
2511
2512 2013-08-08  Alex Christensen  <achristensen@apple.com>
2513
2514         Link to correct DirectX libraries for Win64 ANGLE build.
2515         https://bugs.webkit.org/show_bug.cgi?id=119600
2516
2517         Reviewed by Brent Fulgham.
2518
2519         * ANGLE.vcxproj/DirectX32.props: Added with x86 DirectX library directory.
2520         * ANGLE.vcxproj/DirectX64.props: Added with x64 DirectX library directory.
2521         * ANGLE.vcxproj/libEGL.vcxproj:
2522         * ANGLE.vcxproj/libGLESv2.vcxproj:
2523         Use DirectX32.props and DirectX64.props.
2524         * ANGLE.vcxproj/libEGLCommon.props:
2525         * ANGLE.vcxproj/libGLESv2Common.props:
2526         Removed DirectX library directory.
2527
2528 2013-07-23  David Farler  <dfarler@apple.com>
2529
2530         Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
2531         https://bugs.webkit.org/show_bug.cgi?id=117762
2532
2533         Reviewed by Mark Rowe.
2534
2535         * Configurations/DebugRelease.xcconfig:
2536         Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS.
2537
2538 2013-08-06  Zan Dobersek  <zdobersek@igalia.com>
2539
2540         webkit-gtk fails to build with bison-3.0
2541         https://bugs.webkit.org/show_bug.cgi?id=119373
2542
2543         Reviewed by Gustavo Noronha Silva.
2544
2545         * GNUmakefile.am: Stop relying on generated glslang_tab.(cpp|h) and glslang.cpp sources as Bison 3.0
2546         produces non-compilable source code. Instead, compile these pregenerated files as they're included in
2547         the tree. Originally, the ANGLE source tree provides these files as generated by Bison 2.7, but they're
2548         at the moment regenerated with Bison 2.3 when the third-party ANGLE source is being updated.
2549
2550 2013-08-05  Alex Christensen  <achristensen@apple.com>
2551
2552         Added optimizations to Windows ANGLE builds.
2553         https://bugs.webkit.org/show_bug.cgi?id=119500
2554
2555         Reviewed by Brent Fulgham.
2556
2557         * ANGLE.vcxproj/ANGLERelease.props: Added.
2558         * ANGLE.vcxproj/libEGL.vcxproj:
2559         * ANGLE.vcxproj/libGLESv2.vcxproj:
2560         * ANGLE.vcxproj/preprocessor.vcxproj:
2561         * ANGLE.vcxproj/translator_common.vcxproj:
2562         * ANGLE.vcxproj/translator_glsl.vcxproj:
2563         * ANGLE.vcxproj/translator_hlsl.vcxproj:
2564         Use ANGLERelease.props for Release, Release_WinCairo, and Production configurations.
2565
2566 2013-08-02  Alex Christensen  <achristensen@apple.com>
2567
2568         Soft link ANGLE on Windows.
2569         https://bugs.webkit.org/show_bug.cgi?id=119452
2570
2571         Reviewed by Dean Jackson.
2572
2573         * ANGLE.vcxproj/libEGL.vcxproj:
2574         * ANGLE.vcxproj/libEGL.vcxproj.filters:
2575         * ANGLE.vcxproj/libGLESv2.vcxproj:
2576         * ANGLE.vcxproj/libGLESv2.vcxproj.filters:
2577         Added soft linking headers.
2578         * ANGLE.vcxproj/libEGLCommon.props:
2579         * ANGLE.vcxproj/libGLESv2Common.props:
2580         * ANGLE.vcxproj/translatorCommon.props:
2581         Added ANGLE_WEBKIT_WIN macro definition for egl.h and gl2.h.
2582         * include/EGL/egl.h:
2583         * include/GLES2/gl2.h:
2584         Conditionally include soft linking headers based on ANGLE_WEBKIT_WIN macro.
2585         * include/EGL/eglsoftlinking.h: Added.
2586         * include/GLES2/gl2softlinking.h: Added.
2587
2588 2013-08-01  Alex Christensen  <achristensen@apple.com>
2589
2590         Fixed wrong static_casting in ANGLE from r153064.
2591         https://bugs.webkit.org/show_bug.cgi?id=119296
2592
2593         Reviewed by Dean Jackson.
2594
2595         * src/compiler/Intermediate.cpp:
2596         (TIntermediate::promoteConstantUnion):
2597         Undid erroneous static_cast change.
2598         * src/compiler/intermediate.h:
2599         (TIntermConstantUnion::getIConst):
2600         (TIntermConstantUnion::getFConst):
2601         (TIntermConstantUnion::getBConst):
2602         Made getters use size_t instead of int.
2603
2604 2013-07-29  Carlos Garcia Campos  <cgarcia@igalia.com>
2605
2606         Unreviewed. Fix make distcheck.
2607
2608         * GNUmakefile.am: Add missing header files to compilation.
2609
2610 2013-07-29  Alex Christensen  <achristensen@apple.com>
2611
2612         Separated translator into preprocessor, translator_common,
2613         translator_hlsl (for libGLESv2), and translator_glsl
2614         (for ANGLEWebKitBridge).
2615         https://bugs.webkit.org/show_bug.cgi?id=119221
2616
2617         Reviewed by Brent Fulgham.
2618
2619         * ANGLE.vcxproj/ANGLEGenerated.vcxproj:
2620         Removed unused preprocessor definitions.
2621         * ANGLE.vcxproj/libEGL.vcxproj:
2622         * ANGLE.vcxproj/libGLESv2.vcxproj:
2623         Removed dependency on removed translator project.
2624         * ANGLE.vcxproj/libGLESv2Common.props:
2625         Link to translator_hlsl libraries.
2626         * ANGLE.vcxproj/preprocessor.vcxproj: Added.
2627         * ANGLE.vcxproj/preprocessor.vcxproj.filters: Added.
2628         * ANGLE.vcxproj/translator.vcxproj: Removed.
2629         * ANGLE.vcxproj/translator.vcxproj.filters: Removed.
2630         * ANGLE.vcxproj/translator_common.vcxproj: Added.
2631         * ANGLE.vcxproj/translator_common.vcxproj.filters: Added.
2632         * ANGLE.vcxproj/translator_glsl.vcxproj: Added.
2633         * ANGLE.vcxproj/translator_glsl.vcxproj.filters: Added.
2634         * ANGLE.vcxproj/translator_hlsl.vcxproj: Added.
2635         * ANGLE.vcxproj/translator_hlsl.vcxproj.filters: Added.
2636
2637 2013-07-26  Alex Christensen  <achristensen@apple.com>
2638
2639         Added module definition file for building libEGL.
2640         https://bugs.webkit.org/show_bug.cgi?id=119162
2641
2642         Reviewed by Brent Fulgham.
2643
2644         * ANGLE.vcxproj/libEGLCommon.props: Added reference to libEGL.def.
2645
2646 2013-07-25  Alex Christensen  <achristensen@apple.com>
2647
2648         Made Windows build system for ANGLE and removed existing broken build system.
2649         Removed empty src/libGLESv2/shaders directory and old README files.
2650         https://bugs.webkit.org/show_bug.cgi?id=119103
2651
2652         Reviewed by Brent Fulgham.
2653
2654         * ANGLE.vcxproj: Added.
2655         * ANGLE.vcxproj/ANGLEGenerated.vcxproj: Added.
2656         * ANGLE.vcxproj/ANGLEGenerated.vcxproj.filters: Added.
2657         * ANGLE.vcxproj/libEGL.vcxproj: Added.
2658         * ANGLE.vcxproj/libEGL.vcxproj.filters: Added.
2659         * ANGLE.vcxproj/libEGLCommon.props: Added.
2660         * ANGLE.vcxproj/libGLESv2.vcxproj: Added.
2661         * ANGLE.vcxproj/libGLESv2.vcxproj.filters: Added.
2662         * ANGLE.vcxproj/libGLESv2Common.props: Added.
2663         * ANGLE.vcxproj/translator.vcxproj: Added.
2664         * ANGLE.vcxproj/translator.vcxproj.filters: Added.
2665         * ANGLE.vcxproj/translatorCommon.props: Added.
2666         * src/ANGLE.sln: Removed.
2667         * src/compiler/preprocessor/preprocessor.vcxproj: Removed.
2668         * src/compiler/preprocessor/preprocessor.vcxproj.filters: Removed.
2669         * src/compiler/translator_common.vcxproj: Removed.
2670         * src/compiler/translator_common.vcxproj.filters: Removed.
2671         * src/compiler/translator_hlsl.vcxproj: Removed.
2672         * src/compiler/translator_hlsl.vcxproj.filters: Removed.
2673         * src/libEGL/README: Removed.
2674         * src/libEGL/libEGL.vcxproj: Removed.
2675         * src/libEGL/libEGL.vcxproj.filters: Removed.
2676         * src/libGLESv2/README: Removed.
2677         * src/libGLESv2/libGLESv2.vcxproj: Removed.
2678         * src/libGLESv2/libGLESv2.vcxproj.filters: Removed.
2679         * src/libGLESv2/shaders: Removed.
2680
2681 2013-07-24  Alex Christensen  <achristensen@apple.com>
2682
2683         Generate derived files in ANGLE at build time rather than when updating from upstream.
2684         https://bugs.webkit.org/show_bug.cgi?id=118872
2685
2686         Reviewed by Mark Rowe.
2687
2688         * ANGLE.xcodeproj/project.pbxproj: Made Derived Sources target which calls DerivedSources.make,
2689         moved generated files into Derived Sources group.
2690         * DerivedSources.make: Added.
2691
2692 2013-07-24  Zan Dobersek  <zdobersek@igalia.com>
2693
2694         Unreviewed. Setting the svn:eol-style=native property on the ANGLE.sln file.
2695
2696         * src/ANGLE.sln: Added property svn:eol-style.
2697
2698 2013-07-24  Gabor Abraham  <abrhm@inf.u-szeged.hu>
2699
2700         [Qt] Buildfix after r153064. Add Uniform files to the Target.pri.
2701
2702         Reviewed by Csaba Osztrogonác.
2703
2704         * Target.pri:
2705
2706 2013-07-23  Alex Christensen  <achristensen@apple.com>
2707
2708         Updated ANGLE to latest git commit (047373aa3eb408be62be52ade840fa5f11e72337).
2709         Added missing ANGLE files except unused tests, extensions, samples, build, and .git directories.
2710         Ran Bison after making some changes to fix compile errors (see below).
2711
2712         https://bugs.webkit.org/show_bug.cgi?id=118550
2713
2714         Reviewed by Dean Jackson.
2715
2716         * ANGLE.plist: Updated from svn to git.
2717         * ANGLE.xcodeproj/project.pbxproj: Renamed DetectRecursion to DetectCallDepth.
2718         * AUTHORS: Added.
2719         * CONTRIBUTORS: Added.
2720         * DEPS: Added.
2721         * GNUmakefile.am: Renamed DetectRecursion to DetectCallDepth and added Uniform.cpp.
2722         * LICENSE: Added.
2723         * README.chromium: Added.
2724         * Target.pri: Renamed DetectRecursion to DetectCallDepth.
2725         * codereview.settings: Added.
2726         * include/EGL/eglext.h:
2727         * include/GLES2/gl2ext.h:
2728         * include/GLSLANG/ShaderLang.h:
2729         * src/ANGLE.sln: Added.
2730         * src/build_angle.gyp: Added.
2731         * src/build_angle.gypi: Added.
2732         * src/common/RefCountObject.cpp:
2733         * src/common/angleutils.h:
2734         (ArraySize):
2735         (SafeRelease):
2736         * src/common/debug.cpp:
2737         * src/common/debug.h:
2738         * src/common/system.h:
2739         * src/common/version.h:
2740         * src/compiler/64bit-lexer-safety.patch: Added.
2741         * src/compiler/BaseTypes.h:
2742         (getQualifierString):
2743         * src/compiler/CodeGenHLSL.cpp:
2744         (ConstructCompiler):
2745         * src/compiler/Common.h:
2746         * src/compiler/Compiler.cpp:
2747         (TCompiler::TCompiler):
2748         (TCompiler::Init):
2749         (TCompiler::compile):
2750         (TCompiler::InitBuiltInSymbolTable):
2751         (TCompiler::detectCallDepth):
2752         (TCompiler::limitExpressionComplexity):
2753         (TCompiler::getResources):
2754         * src/compiler/ConstantUnion.h:
2755         (ConstantUnion::ConstantUnion):
2756         * src/compiler/DetectCallDepth.cpp: Added.
2757         (DetectCallDepth::FunctionNode::FunctionNode):
2758         (DetectCallDepth::FunctionNode::getName):
2759         (DetectCallDepth::FunctionNode::addCallee):
2760         (DetectCallDepth::FunctionNode::detectCallDepth):
2761         (DetectCallDepth::FunctionNode::reset):
2762         (DetectCallDepth::DetectCallDepth):
2763         (DetectCallDepth::~DetectCallDepth):
2764         (DetectCallDepth::visitAggregate):
2765         (DetectCallDepth::checkExceedsMaxDepth):
2766         (DetectCallDepth::resetFunctionNodes):
2767         (DetectCallDepth::detectCallDepthForFunction):
2768         (DetectCallDepth::detectCallDepth):
2769         (DetectCallDepth::findFunctionByName):
2770         * src/compiler/DetectCallDepth.h: Added.
2771         (DetectCallDepth::getInfoSink):
2772         * src/compiler/DetectRecursion.cpp: Removed.
2773         * src/compiler/DetectRecursion.h: Removed.
2774         * src/compiler/Diagnostics.cpp:
2775         (TDiagnostics::writeInfo):
2776         * src/compiler/ForLoopUnroll.cpp:
2777         (ForLoopUnroll::evaluateIntConstant):
2778         * src/compiler/InfoSink.cpp:
2779         (TInfoSinkBase::prefix):
2780         (TInfoSinkBase::location):
2781         (TInfoSinkBase::message):
2782         * src/compiler/InfoSink.h:
2783         * src/compiler/Initialize.cpp:
2784         (InsertBuiltInFunctions):
2785         (IdentifyBuiltIns):
2786         (InitExtensionBehavior):
2787         * src/compiler/Initialize.h:
2788         * src/compiler/Intermediate.cpp:
2789         (TIntermediate::addSymbol):
2790         (TIntermediate::addBinaryMath):
2791         (TIntermediate::addAssign):
2792         (TIntermediate::addIndex):
2793         (TIntermediate::addUnaryMath):
2794         (TIntermediate::setAggregateOperator):
2795         (TIntermediate::addConversion):
2796         (TIntermediate::growAggregate):
2797         (TIntermediate::makeAggregate):
2798         (TIntermediate::addSelection):
2799         (TIntermediate::addComma):
2800         (TIntermediate::addConstantUnion):
2801         (TIntermediate::addSwizzle):
2802         (TIntermediate::addLoop):
2803         (TIntermediate::addBranch):
2804         (TIntermUnary::promote):
2805         (TIntermBinary::promote):
2806         (CompareStruct):
2807         (CompareStructure):
2808         (TIntermConstantUnion::fold): Added implied static_casts to fix compiling errors on Mac.
2809         (TIntermediate::promoteConstantUnion):
2810         * src/compiler/OutputGLSL.cpp:
2811         (TOutputGLSL::visitSymbol):
2812         * src/compiler/OutputGLSL.h:
2813         * src/compiler/OutputGLSLBase.cpp:
2814         (TOutputGLSLBase::writeVariableType):
2815         (TOutputGLSLBase::writeConstantUnion):
2816         (TOutputGLSLBase::visitBinary):
2817         (TOutputGLSLBase::visitAggregate):
2818         (TOutputGLSLBase::getTypeName):
2819         (TOutputGLSLBase::structDeclared):
2820         (TOutputGLSLBase::declareStruct):
2821         * src/compiler/OutputGLSLBase.h:
2822         * src/compiler/OutputHLSL.cpp:
2823         (sh::OutputHLSL::OutputHLSL):
2824         (sh::OutputHLSL::getUniforms):
2825         (sh::OutputHLSL::header):
2826         (sh::OutputHLSL::visitSymbol):
2827         (sh::OutputHLSL::visitBinary):
2828         (sh::OutputHLSL::visitAggregate):
2829         (sh::OutputHLSL::visitSelection):
2830         (sh::OutputHLSL::visitLoop):
2831         (sh::OutputHLSL::handleExcessiveLoop):
2832         (sh::OutputHLSL::argumentString):
2833         (sh::OutputHLSL::typeString):
2834         (sh::OutputHLSL::textureString):
2835         (sh::OutputHLSL::initializer):
2836         (sh::OutputHLSL::addConstructor):
2837         (sh::OutputHLSL::writeConstantUnion):
2838         (sh::OutputHLSL::decorateUniform):
2839         (sh::OutputHLSL::decorateField):
2840         (sh::OutputHLSL::registerString):
2841         (sh::OutputHLSL::samplerRegister):
2842         (sh::OutputHLSL::uniformRegister):
2843         (sh::OutputHLSL::declareUniform):
2844         (sh::OutputHLSL::glVariableType):
2845         (sh::OutputHLSL::glVariablePrecision):
2846         * src/compiler/OutputHLSL.h:
2847         * src/compiler/ParseHelper.cpp:
2848         (TParseContext::parseVectorFields):
2849         (TParseContext::parseMatrixFields):
2850         (TParseContext::error):
2851         (TParseContext::warning):
2852         (TParseContext::assignError):
2853         (TParseContext::unaryOpError):
2854         (TParseContext::binaryOpError):
2855         (TParseContext::precisionErrorCheck):
2856         (TParseContext::lValueErrorCheck):
2857         (TParseContext::globalErrorCheck):
2858         (TParseContext::reservedErrorCheck):
2859         (TParseContext::constructorErrorCheck):
2860         (TParseContext::voidErrorCheck):
2861         (TParseContext::boolErrorCheck):
2862         (TParseContext::samplerErrorCheck):
2863         (TParseContext::structQualifierErrorCheck):
2864         (TParseContext::parameterSamplerErrorCheck):
2865         (TParseContext::containsSampler):
2866         (TParseContext::arraySizeErrorCheck):
2867         (TParseContext::arrayQualifierErrorCheck):
2868         (TParseContext::arrayTypeErrorCheck):
2869         (TParseContext::arrayErrorCheck):
2870         (TParseContext::nonInitConstErrorCheck):
2871         (TParseContext::nonInitErrorCheck):
2872         (TParseContext::paramErrorCheck):
2873         (TParseContext::extensionErrorCheck):
2874         (TParseContext::isExtensionEnabled):
2875         Replaced auto with std::map<std::string, TBehavior>::const_iterator to fix Qt and EFL compiling errors.
2876         (TParseContext::findFunction):
2877         (TParseContext::executeInitializer):
2878         (TParseContext::addConstructor):
2879         (TParseContext::constructBuiltIn):
2880         (TParseContext::constructStruct):
2881         (TParseContext::addConstVectorNode):
2882         (TParseContext::addConstMatrixNode):
2883         (TParseContext::addConstArrayNode):
2884         (TParseContext::addConstStruct):
2885         (TParseContext::enterStructDeclaration):
2886         (TParseContext::structNestingErrorCheck):
2887         (TParseContext::addIndexExpression):
2888         * src/compiler/ParseHelper.h:
2889         (TParseContext::TParseContext):
2890         (TParseContext::pragma):
2891         * src/compiler/PoolAlloc.cpp:
2892         (TPoolAllocator::allocate):
2893         * src/compiler/ShHandle.h:
2894         (TShHandleBase::getAsTranslatorHLSL):
2895         * src/compiler/ShaderLang.cpp:
2896         (ShInitBuiltInResources):
2897         (ShGetInfoPointer):
2898         * src/compiler/SymbolTable.cpp:
2899         (TType::TType):
2900         (TType::buildMangledName):
2901         (TType::getObjectSize):
2902         (TStructure::containsArrays):
2903         (TStructure::buildMangledName):
2904         (TStructure::calculateObjectSize):
2905         (TStructure::calculateDeepestNesting):
2906         (TSymbolTableLevel::relateToExtension):
2907         * src/compiler/SymbolTable.h:
2908         (TSymbol::relateToExtension):
2909         (TSymbol::getExtension):
2910         (TVariable::TVariable):
2911         (TVariable::setQualifier):
2912         (TVariable::shareConstPointer):
2913         (TSymbolTableLevel::insert):
2914         (TSymbolTable::insertConstInt):
2915         (TSymbolTable::insertBuiltIn):
2916         * src/compiler/TranslatorHLSL.cpp:
2917         (TranslatorHLSL::TranslatorHLSL):
2918         (TranslatorHLSL::translate):
2919         * src/compiler/TranslatorHLSL.h:
2920         (TranslatorHLSL::getAsTranslatorHLSL):
2921         (TranslatorHLSL::getUniforms):
2922         * src/compiler/Types.h: Removed enum bit fields to fix gcc compiler errors.
2923         (TField::TField):
2924         (TField::type):
2925         (TField::name):
2926         (NewPoolTFieldList):
2927         (TStructure::TStructure):
2928         (TStructure::name):
2929         (TStructure::fields):
2930         (TStructure::mangledName):
2931         (TStructure::objectSize):
2932         (TStructure::deepestNesting):
2933         (TType::TType):
2934         (TType::elementRegisterCount):
2935         (TType::totalRegisterCount):
2936         (TType::clearArrayness):
2937         (TType::getStruct):
2938         (TType::setStruct):
2939         (TType::getMangledName):
2940         (TType::getDeepestStructNesting):
2941         (TType::isStructureContainingArrays):
2942         (TPublicType::setBasic):
2943         * src/compiler/Uniform.cpp: Added.
2944         (sh::Uniform::Uniform):
2945         * src/compiler/Uniform.h: Added.
2946         * src/compiler/VariableInfo.cpp:
2947         (getUserDefinedVariableInfo):
2948         * src/compiler/glslang.l:
2949         * src/compiler/glslang.y: Moved YYLTYPE definition into %union to work with Bison 2.3.
2950         * src/compiler/glslang_lex.cpp:
2951         (yy_get_previous_state):
2952         (yy_try_NUL_trans):
2953         (yyget_lloc):
2954         (yyset_lloc):
2955         (string_input):
2956         (check_type):
2957         (reserved_word):
2958         (glslang_scan):
2959         * src/compiler/glslang_tab.cpp:
2960         (yyerror):
2961         * src/compiler/glslang_tab.h:
2962         * src/compiler/intermOut.cpp:
2963         (TOutputTraverser::visitUnary):
2964         (TOutputTraverser::visitAggregate):
2965         (TOutputTraverser::visitConstantUnion):
2966         * src/compiler/intermediate.h:
2967         (TIntermNode::TIntermNode):
2968         (TIntermNode::~TIntermNode):
2969         (TIntermNode::getLine):
2970         (TIntermNode::setLine):
2971         (TIntermNode::getAsLoopNode):
2972         (TIntermTyped::totalRegisterCount):
2973         (TIntermTyped::elementRegisterCount):
2974         (TIntermTyped::getArraySize):
2975         (TIntermConstantUnion::getIConst):
2976         (TIntermConstantUnion::getFConst):
2977         (TIntermConstantUnion::getBConst):
2978         (TIntermAggregate::TIntermAggregate):
2979         (TIntermTraverser::TIntermTraverser):
2980         (TIntermTraverser::getMaxDepth):
2981         (TIntermTraverser::incrementDepth):
2982         * src/compiler/localintermediate.h:
2983         * src/compiler/parseConst.cpp:
2984         (TConstTraverser::visitSymbol):
2985         (TConstTraverser::visitBinary):
2986         (TConstTraverser::visitUnary):
2987         (TConstTraverser::visitAggregate):
2988         (TConstTraverser::visitSelection):
2989         (TConstTraverser::visitConstantUnion):
2990         (TConstTraverser::visitLoop):
2991         (TConstTraverser::visitBranch):
2992         (TIntermediate::parseConstTree):
2993         * src/compiler/preprocessor/64bit-tokenizer-safety.patch: Added.
2994         * src/compiler/preprocessor/Tokenizer.cpp:
2995         (yy_get_previous_state):
2996         (yy_try_NUL_trans):
2997         * src/compiler/preprocessor/Tokenizer.l:
2998         * src/compiler/preprocessor/preprocessor.vcxproj: Added.
2999         * src/compiler/preprocessor/preprocessor.vcxproj.filters: Added.
3000         * src/compiler/timing/RestrictVertexShaderTiming.cpp:
3001         (RestrictVertexShaderTiming::visitSymbol):
3002         * src/compiler/translator_common.vcxproj: Added.
3003         * src/compiler/translator_common.vcxproj.filters: Added.
3004         * src/compiler/translator_hlsl.vcxproj: Added.
3005         * src/compiler/translator_hlsl.vcxproj.filters: Added.
3006         * src/libEGL/Config.cpp: Added.
3007         (egl::Config::Config):
3008         (egl::Config::getHandle):
3009         (egl::SortConfig::SortConfig):
3010         (egl::SortConfig::scanForWantedComponents):
3011         (egl::SortConfig::wantedComponentsSize):
3012         (egl::SortConfig::operator()):
3013         (egl::ConfigSet::ConfigSet):
3014         (egl::ConfigSet::add):
3015         (egl::ConfigSet::size):
3016         (egl::ConfigSet::getConfigs):
3017         (egl::ConfigSet::get):
3018         * src/libEGL/Config.h: Added.
3019         * src/libEGL/Display.cpp: Added.
3020         (egl::Display::getDisplay):
3021         (egl::Display::Display):
3022         (egl::Display::~Display):
3023         (egl::Display::initialize):
3024         (egl::Display::terminate):
3025         (egl::Display::getConfigs):
3026         (egl::Display::getConfigAttrib):
3027         (egl::Display::createWindowSurface):
3028         (egl::Display::createOffscreenSurface):
3029         (egl::Display::createContext):
3030         (egl::Display::restoreLostDevice):
3031         (egl::Display::destroySurface):
3032         (egl::Display::destroyContext):
3033         (egl::Display::notifyDeviceLost):
3034         (egl::Display::recreateSwapChains):
3035         (egl::Display::isInitialized):
3036         (egl::Display::isValidConfig):
3037         (egl::Display::isValidContext):
3038         (egl::Display::isValidSurface):
3039         (egl::Display::hasExistingWindowSurface):
3040         (egl::Display::initExtensionString):
3041         (egl::Display::getExtensionString):
3042         (egl::Display::initVendorString):
3043         (egl::Display::getVendorString):
3044         * src/libEGL/Display.h: Added.
3045         (egl::Display::getRenderer):
3046         * src/libEGL/Surface.cpp: Added.
3047         (egl::Surface::Surface):
3048         (egl::Surface::~Surface):
3049         (egl::Surface::initialize):
3050         (egl::Surface::release):
3051         (egl::Surface::resetSwapChain):
3052         (egl::Surface::resizeSwapChain):
3053         (egl::Surface::swapRect):
3054         (egl::Surface::getWindowHandle):
3055         (egl::SurfaceWindowProc):
3056         (egl::Surface::subclassWindow):
3057         (egl::Surface::unsubclassWindow):
3058         (egl::Surface::checkForOutOfDateSwapChain):
3059         (egl::Surface::swap):
3060         (egl::Surface::postSubBuffer):
3061         (egl::Surface::getWidth):
3062         (egl::Surface::getHeight):
3063         (egl::Surface::isPostSubBufferSupported):
3064         (egl::Surface::getSwapChain):
3065         (egl::Surface::setSwapInterval):
3066         (egl::Surface::getTextureFormat):
3067         (egl::Surface::getTextureTarget):
3068         (egl::Surface::setBoundTexture):
3069         (egl::Surface::getBoundTexture):
3070         (egl::Surface::getFormat):
3071         * src/libEGL/Surface.h: Added.
3072         * src/libEGL/libEGL.cpp: Added.
3073         (validateDisplay):
3074         (validateConfig):
3075         (validateContext):
3076         (validateSurface):
3077         * src/libEGL/libEGL.def: Added.
3078         * src/libEGL/libEGL.rc: Added.
3079         * src/libEGL/libEGL.vcxproj: Added.
3080         * src/libEGL/libEGL.vcxproj.filters: Added.
3081         * src/libEGL/main.cpp: Added.
3082         (DllMain):
3083         (egl::setCurrentError):
3084         (egl::getCurrentError):
3085         (egl::setCurrentAPI):
3086         (egl::getCurrentAPI):
3087         (egl::setCurrentDisplay):
3088         (egl::getCurrentDisplay):
3089         (egl::setCurrentDrawSurface):
3090         (egl::getCurrentDrawSurface):
3091         (egl::setCurrentReadSurface):
3092         (egl::getCurrentReadSurface):
3093         (egl::error):
3094         * src/libEGL/main.h: Added.
3095         (egl::error):
3096         (egl::success):
3097         * src/libEGL/resource.h: Added.
3098         * src/libGLESv2/BinaryStream.h: Added.
3099         (gl::BinaryInputStream::BinaryInputStream):
3100         (gl::BinaryInputStream::read):
3101         (gl::BinaryInputStream::skip):
3102         (gl::BinaryInputStream::offset):
3103         (gl::BinaryInputStream::error):
3104         (gl::BinaryInputStream::endOfStream):
3105         (gl::BinaryOutputStream::BinaryOutputStream):
3106         (gl::BinaryOutputStream::write):
3107         (gl::BinaryOutputStream::length):
3108         (gl::BinaryOutputStream::data):
3109         * src/libGLESv2/Buffer.cpp: Added.
3110         (gl::Buffer::Buffer):
3111         (gl::Buffer::~Buffer):
3112         (gl::Buffer::bufferData):
3113         (gl::Buffer::bufferSubData):
3114         (gl::Buffer::getStorage):
3115         (gl::Buffer::size):
3116         (gl::Buffer::usage):
3117         (gl::Buffer::getStaticVertexBuffer):
3118         (gl::Buffer::getStaticIndexBuffer):
3119         (gl::Buffer::invalidateStaticData):
3120         (gl::Buffer::promoteStaticUsage):
3121         * src/libGLESv2/Buffer.h: Added.
3122         * src/libGLESv2/Context.cpp: Added.
3123         (gl::makeStaticString):
3124         (gl::Context::Context):
3125         (gl::Context::~Context):
3126         (gl::Context::makeCurrent):
3127         (gl::Context::markContextLost):
3128         (gl::Context::isContextLost):
3129         (gl::Context::setClearColor):
3130         (gl::Context::setClearDepth):
3131         (gl::Context::setClearStencil):
3132         (gl::Context::setCullFace):
3133         (gl::Context::isCullFaceEnabled):
3134         (gl::Context::setCullMode):
3135         (gl::Context::setFrontFace):
3136         (gl::Context::setDepthTest):
3137         (gl::Context::isDepthTestEnabled):
3138         (gl::Context::setDepthFunc):
3139         (gl::Context::setDepthRange):
3140         (gl::Context::setBlend):
3141         (gl::Context::isBlendEnabled):
3142         (gl::Context::setBlendFactors):
3143         (gl::Context::setBlendColor):
3144         (gl::Context::setBlendEquation):
3145         (gl::Context::setStencilTest):
3146         (gl::Context::isStencilTestEnabled):
3147         (gl::Context::setStencilParams):
3148         (gl::Context::setStencilBackParams):
3149         (gl::Context::setStencilWritemask):
3150         (gl::Context::setStencilBackWritemask):
3151         (gl::Context::setStencilOperations):
3152         (gl::Context::setStencilBackOperations):
3153         (gl::Context::setPolygonOffsetFill):
3154         (gl::Context::isPolygonOffsetFillEnabled):
3155         (gl::Context::setPolygonOffsetParams):
3156         (gl::Context::setSampleAlphaToCoverage):
3157         (gl::Context::isSampleAlphaToCoverageEnabled):
3158         (gl::Context::setSampleCoverage):
3159         (gl::Context::isSampleCoverageEnabled):
3160         (gl::Context::setSampleCoverageParams):
3161         (gl::Context::setScissorTest):
3162         (gl::Context::isScissorTestEnabled):
3163         (gl::Context::setDither):
3164         (gl::Context::isDitherEnabled):
3165         (gl::Context::setLineWidth):
3166         (gl::Context::setGenerateMipmapHint):
3167         (gl::Context::setFragmentShaderDerivativeHint):
3168         (gl::Context::setViewportParams):
3169         (gl::Context::setScissorParams):
3170         (gl::Context::setColorMask):
3171         (gl::Context::setDepthMask):
3172         (gl::Context::setActiveSampler):
3173         (gl::Context::getReadFramebufferHandle):
3174         (gl::Context::getDrawFramebufferHandle):
3175         (gl::Context::getRenderbufferHandle):
3176         (gl::Context::getArrayBufferHandle):
3177         (gl::Context::getActiveQuery):
3178         (gl::Context::setEnableVertexAttribArray):
3179         (gl::Context::getVertexAttribState):
3180         (gl::Context::setVertexAttribState):
3181         (gl::Context::getVertexAttribPointer):
3182         (gl::Context::setPackAlignment):
3183         (gl::Context::getPackAlignment):
3184         (gl::Context::setUnpackAlignment):
3185         (gl::Context::getUnpackAlignment):
3186         (gl::Context::setPackReverseRowOrder):
3187         (gl::Context::getPackReverseRowOrder):
3188         (gl::Context::createBuffer):
3189         (gl::Context::createProgram):
3190         (gl::Context::createShader):
3191         (gl::Context::createTexture):
3192         (gl::Context::createRenderbuffer):
3193         (gl::Context::createFramebuffer):
3194         (gl::Context::createFence):
3195         (gl::Context::createQuery):
3196         (gl::Context::deleteBuffer):
3197         (gl::Context::deleteShader):
3198         (gl::Context::deleteProgram):
3199         (gl::Context::deleteTexture):
3200         (gl::Context::deleteRenderbuffer):
3201         (gl::Context::deleteFramebuffer):
3202         (gl::Context::deleteFence):
3203         (gl::Context::deleteQuery):
3204         (gl::Context::getBuffer):
3205         (gl::Context::getShader):
3206         (gl::Context::getProgram):
3207         (gl::Context::getTexture):
3208         (gl::Context::getRenderbuffer):
3209         (gl::Context::getReadFramebuffer):
3210         (gl::Context::getDrawFramebuffer):
3211         (gl::Context::bindArrayBuffer):
3212         (gl::Context::bindElementArrayBuffer):
3213         (gl::Context::bindTexture2D):
3214         (gl::Context::bindTextureCubeMap):
3215         (gl::Context::bindReadFramebuffer):
3216         (gl::Context::bindDrawFramebuffer):
3217         (gl::Context::bindRenderbuffer):
3218         (gl::Context::useProgram):
3219         (gl::Context::linkProgram):
3220         (gl::Context::setProgramBinary):
3221         (gl::Context::beginQuery):
3222         (gl::Context::endQuery):
3223         (gl::Context::setFramebufferZero):
3224         (gl::Context::setRenderbufferStorage):
3225         (gl::Context::getFramebuffer):
3226         (gl::Context::getFence):
3227         (gl::Context::getQuery):
3228         (gl::Context::getArrayBuffer):
3229         (gl::Context::getElementArrayBuffer):
3230         (gl::Context::getCurrentProgramBinary):
3231         (gl::Context::getTexture2D):
3232         (gl::Context::getTextureCubeMap):
3233         (gl::Context::getSamplerTexture):
3234         (gl::Context::getBooleanv):
3235         (gl::Context::getFloatv):
3236         (gl::Context::getIntegerv):
3237         (gl::Context::getQueryParameterInfo):
3238         (gl::Context::applyRenderTarget):
3239         (gl::Context::applyState):
3240         (gl::Context::applyShaders):
3241         (gl::Context::applyTextures):
3242         (gl::Context::readPixels):
3243         (gl::Context::clear):
3244         (gl::Context::drawArrays):
3245         (gl::Context::drawElements):
3246         (gl::Context::sync):
3247         (gl::Context::recordInvalidEnum):
3248         (gl::Context::recordInvalidValue):
3249         (gl::Context::recordInvalidOperation):
3250         (gl::Context::recordOutOfMemory):
3251         (gl::Context::recordInvalidFramebufferOperation):
3252         (gl::Context::getError):
3253         (gl::Context::getResetStatus):
3254         (gl::Context::isResetNotificationEnabled):
3255         (gl::Context::getMajorShaderModel):
3256         (gl::Context::getMaximumPointSize):
3257         (gl::Context::getMaximumCombinedTextureImageUnits):
3258         (gl::Context::getMaxSupportedSamples):
3259         (gl::Context::getMaximumRenderTargets):
3260         (gl::Context::supportsEventQueries):
3261         (gl::Context::supportsOcclusionQueries):
3262         (gl::Context::supportsBGRATextures):
3263         (gl::Context::supportsDXT1Textures):
3264         (gl::Context::supportsDXT3Textures):
3265         (gl::Context::supportsDXT5Textures):
3266         (gl::Context::supportsFloat32Textures):
3267         (gl::Context::supportsFloat32LinearFilter):
3268         (gl::Context::supportsFloat32RenderableTextures):
3269         (gl::Context::supportsFloat16Textures):
3270         (gl::Context::supportsFloat16LinearFilter):
3271         (gl::Context::supportsFloat16RenderableTextures):
3272         (gl::Context::getMaximumRenderbufferDimension):
3273         (gl::Context::getMaximumTextureDimension):
3274         (gl::Context::getMaximumCubeTextureDimension):
3275         (gl::Context::getMaximumTextureLevel):
3276         (gl::Context::supportsLuminanceTextures):
3277         (gl::Context::supportsLuminanceAlphaTextures):
3278         (gl::Context::supportsDepthTextures):
3279         (gl::Context::supports32bitIndices):
3280         (gl::Context::supportsNonPower2Texture):
3281         (gl::Context::supportsInstancing):
3282         (gl::Context::supportsTextureFilterAnisotropy):
3283         (gl::Context::getTextureMaxAnisotropy):
3284         (gl::Context::getCurrentReadFormatType):
3285         (gl::Context::detachBuffer):
3286         (gl::Context::detachTexture):
3287         (gl::Context::detachFramebuffer):
3288         (gl::Context::detachRenderbuffer):
3289         (gl::Context::getIncompleteTexture):
3290         (gl::Context::skipDraw):
3291         (gl::Context::setVertexAttrib):
3292         (gl::Context::setVertexAttribDivisor):
3293         (gl::Context::initExtensionString):
3294         (gl::Context::getExtensionString):
3295         (gl::Context::initRendererString):
3296         (gl::Context::getRendererString):
3297         (gl::Context::blitFramebuffer):
3298         * src/libGLESv2/Context.h: Added.
3299         (gl::VertexAttribute::VertexAttribute):
3300         (gl::VertexAttribute::typeSize):
3301         (gl::VertexAttribute::stride):
3302         * src/libGLESv2/Fence.cpp: Added.
3303         (gl::Fence::Fence):
3304         (gl::Fence::~Fence):
3305         (gl::Fence::isFence):
3306         (gl::Fence::setFence):
3307         (gl::Fence::testFence):
3308         (gl::Fence::finishFence):
3309         (gl::Fence::getFenceiv):
3310         * src/libGLESv2/Fence.h: Added.
3311         * src/libGLESv2/Float16ToFloat32.cpp: Added.
3312         (gl::float16ToFloat32):
3313         * src/libGLESv2/Float16ToFloat32.py: Added.
3314         (convertMantissa):
3315         (convertExponent):
3316         (convertOffset):
3317         * src/libGLESv2/Framebuffer.cpp: Added.
3318         (gl::Framebuffer::Framebuffer):
3319         (gl::Framebuffer::~Framebuffer):
3320         (gl::Framebuffer::lookupRenderbuffer):
3321         (gl::Framebuffer::setColorbuffer):
3322         (gl::Framebuffer::setDepthbuffer):
3323         (gl::Framebuffer::setStencilbuffer):
3324         (gl::Framebuffer::detachTexture):
3325         (gl::Framebuffer::detachRenderbuffer):
3326         (gl::Framebuffer::getRenderTargetSerial):
3327         (gl::Framebuffer::getDepthbufferSerial):
3328         (gl::Framebuffer::getStencilbufferSerial):
3329         (gl::Framebuffer::getColorbuffer):
3330         (gl::Framebuffer::getDepthbuffer):
3331         (gl::Framebuffer::getStencilbuffer):
3332         (gl::Framebuffer::getDepthOrStencilbuffer):
3333         (gl::Framebuffer::getReadColorbuffer):
3334         (gl::Framebuffer::getReadColorbufferType):
3335         (gl::Framebuffer::getFirstColorbuffer):
3336         (gl::Framebuffer::getColorbufferType):
3337         (gl::Framebuffer::getDepthbufferType):
3338         (gl::Framebuffer::getStencilbufferType):
3339         (gl::Framebuffer::getColorbufferHandle):
3340         (gl::Framebuffer::getDepthbufferHandle):
3341         (gl::Framebuffer::getStencilbufferHandle):
3342         (gl::Framebuffer::getDrawBufferState):
3343         (gl::Framebuffer::setDrawBufferState):
3344         (gl::Framebuffer::isEnabledColorAttachment):
3345         (gl::Framebuffer::hasEnabledColorAttachment):
3346         (gl::Framebuffer::hasStencil):
3347         (gl::Framebuffer::usingExtendedDrawBuffers):
3348         (gl::Framebuffer::completeness):
3349         (gl::DefaultFramebuffer::DefaultFramebuffer):
3350         (gl::Framebuffer::getSamples):
3351         (gl::DefaultFramebuffer::completeness):
3352         * src/libGLESv2/Framebuffer.h: Added.
3353         * src/libGLESv2/HandleAllocator.cpp: Added.
3354         (gl::HandleAllocator::HandleAllocator):
3355         (gl::HandleAllocator::~HandleAllocator):
3356         (gl::HandleAllocator::setBaseHandle):
3357         (gl::HandleAllocator::allocate):
3358         (gl::HandleAllocator::release):
3359         * src/libGLESv2/HandleAllocator.h: Added.
3360         * src/libGLESv2/Program.cpp: Added.
3361         (gl::AttributeBindings::AttributeBindings):
3362         (gl::AttributeBindings::~AttributeBindings):
3363         (gl::InfoLog::InfoLog):
3364         (gl::InfoLog::~InfoLog):
3365         (gl::InfoLog::getLength):
3366         (gl::InfoLog::getLog):
3367         (gl::InfoLog::appendSanitized):
3368         (gl::InfoLog::append):
3369         (gl::InfoLog::reset):
3370         (gl::Program::Program):
3371         (gl::Program::~Program):
3372         (gl::Program::attachShader):
3373         (gl::Program::detachShader):
3374         (gl::Program::getAttachedShadersCount):
3375         (gl::AttributeBindings::bindAttributeLocation):
3376         (gl::Program::bindAttributeLocation):
3377         (gl::Program::link):
3378         (gl::AttributeBindings::getAttributeBinding):
3379         (gl::Program::unlink):
3380         (gl::Program::isLinked):
3381         (gl::Program::getProgramBinary):
3382         (gl::Program::setProgramBinary):
3383         (gl::Program::release):
3384         (gl::Program::addRef):
3385         (gl::Program::getRefCount):
3386         (gl::Program::getProgramBinaryLength):
3387         (gl::Program::getInfoLogLength):
3388         (gl::Program::getInfoLog):
3389         (gl::Program::getAttachedShaders):
3390         (gl::Program::getActiveAttribute):
3391         (gl::Program::getActiveAttributeCount):
3392         (gl::Program::getActiveAttributeMaxLength):
3393         (gl::Program::getActiveUniform):
3394         (gl::Program::getActiveUniformCount):
3395         (gl::Program::getActiveUniformMaxLength):
3396         (gl::Program::flagForDeletion):
3397         (gl::Program::isFlaggedForDeletion):
3398         (gl::Program::validate):
3399         (gl::Program::isValidated):
3400         * src/libGLESv2/Program.h: Added.
3401         * src/libGLESv2/ProgramBinary.cpp: Added.
3402         (gl::str):
3403         (gl::UniformLocation::UniformLocation):
3404         (gl::ProgramBinary::ProgramBinary):
3405         (gl::ProgramBinary::~ProgramBinary):
3406         (gl::ProgramBinary::getSerial):
3407         (gl::ProgramBinary::issueSerial):
3408         (gl::ProgramBinary::getPixelExecutable):
3409         (gl::ProgramBinary::getVertexExecutable):
3410         (gl::ProgramBinary::getGeometryExecutable):
3411         (gl::ProgramBinary::getAttributeLocation):
3412         (gl::ProgramBinary::getSemanticIndex):
3413         (gl::ProgramBinary::getUsedSamplerRange):
3414         (gl::ProgramBinary::usesPointSize):
3415         (gl::ProgramBinary::usesPointSpriteEmulation):
3416         (gl::ProgramBinary::usesGeometryShader):
3417         (gl::ProgramBinary::getSamplerMapping):
3418         (gl::ProgramBinary::getSamplerTextureType):
3419         (gl::ProgramBinary::getUniformLocation):
3420         (gl::ProgramBinary::setUniform1fv):
3421         (gl::ProgramBinary::setUniform2fv):
3422         (gl::ProgramBinary::setUniform3fv):
3423         (gl::ProgramBinary::setUniform4fv):
3424         (gl::transposeMatrix):
3425         (gl::ProgramBinary::setUniformMatrix2fv):
3426         (gl::ProgramBinary::setUniformMatrix3fv):
3427         (gl::ProgramBinary::setUniformMatrix4fv):
3428         (gl::ProgramBinary::setUniform1iv):
3429         (gl::ProgramBinary::setUniform2iv):
3430         (gl::ProgramBinary::setUniform3iv):
3431         (gl::ProgramBinary::setUniform4iv):
3432         (gl::ProgramBinary::getUniformfv):
3433         (gl::ProgramBinary::getUniformiv):
3434         (gl::ProgramBinary::dirtyAllUniforms):
3435         (gl::ProgramBinary::applyUniforms):
3436         (gl::ProgramBinary::packVaryings):
3437         (gl::ProgramBinary::linkVaryings):
3438         (gl::ProgramBinary::load):
3439         (gl::ProgramBinary::save):
3440         (gl::ProgramBinary::getLength):
3441         (gl::ProgramBinary::link):
3442         (gl::ProgramBinary::linkAttributes):
3443         (gl::ProgramBinary::linkUniforms):
3444         (gl::ProgramBinary::defineUniform):
3445         (gl::ProgramBinary::generateGeometryShaderHLSL):
3446         (gl::ProgramBinary::generatePointSpriteHLSL):
3447         (gl::ProgramBinary::decorateAttribute):
3448         (gl::ProgramBinary::isValidated):
3449         (gl::ProgramBinary::getActiveAttribute):
3450         (gl::ProgramBinary::getActiveAttributeCount):
3451         (gl::ProgramBinary::getActiveAttributeMaxLength):
3452         (gl::ProgramBinary::getActiveUniform):
3453         (gl::ProgramBinary::getActiveUniformCount):
3454         (gl::ProgramBinary::getActiveUniformMaxLength):
3455         (gl::ProgramBinary::validate):
3456         (gl::ProgramBinary::validateSamplers):
3457         (gl::ProgramBinary::Sampler::Sampler):
3458         (gl::AttributeSorter::AttributeSorter):
3459         (gl::AttributeSorter::operator()):
3460         (gl::ProgramBinary::sortAttributesByLayout):
3461         * src/libGLESv2/ProgramBinary.h: Added.
3462         (gl::UniformLocation::UniformLocation):
3463         * src/libGLESv2/Query.cpp: Added.
3464         (gl::Query::Query):
3465         (gl::Query::~Query):
3466         (gl::Query::begin):
3467         (gl::Query::end):
3468         (gl::Query::getResult):
3469         (gl::Query::isResultAvailable):
3470         (gl::Query::getType):
3471         * src/libGLESv2/Query.h: Added.
3472         * src/libGLESv2/Renderbuffer.cpp: Added.
3473         (gl::RenderbufferInterface::RenderbufferInterface):
3474         (gl::RenderbufferInterface::addProxyRef):
3475         (gl::RenderbufferInterface::releaseProxy):
3476         (gl::RenderbufferInterface::getRedSize):
3477         (gl::RenderbufferInterface::getGreenSize):
3478         (gl::RenderbufferInterface::getBlueSize):
3479         (gl::RenderbufferInterface::getAlphaSize):
3480         (gl::RenderbufferInterface::getDepthSize):
3481         (gl::RenderbufferInterface::getStencilSize):
3482         (gl::RenderbufferTexture2D::RenderbufferTexture2D):
3483         (gl::RenderbufferTexture2D::~RenderbufferTexture2D):
3484         (gl::RenderbufferTexture2D::addProxyRef):
3485         (gl::RenderbufferTexture2D::releaseProxy):
3486         (gl::RenderbufferTexture2D::getRenderTarget):
3487         (gl::RenderbufferTexture2D::getDepthStencil):
3488         (gl::RenderbufferTexture2D::getWidth):
3489         (gl::RenderbufferTexture2D::getHeight):
3490         (gl::RenderbufferTexture2D::getInternalFormat):
3491         (gl::RenderbufferTexture2D::getActualFormat):
3492         (gl::RenderbufferTexture2D::getSamples):
3493         (gl::RenderbufferTexture2D::getSerial):
3494         (gl::RenderbufferTextureCubeMap::RenderbufferTextureCubeMap):
3495         (gl::RenderbufferTextureCubeMap::~RenderbufferTextureCubeMap):
3496         (gl::RenderbufferTextureCubeMap::addProxyRef):
3497         (gl::RenderbufferTextureCubeMap::releaseProxy):
3498         (gl::RenderbufferTextureCubeMap::getRenderTarget):
3499         (gl::RenderbufferTextureCubeMap::getDepthStencil):
3500         (gl::RenderbufferTextureCubeMap::getWidth):
3501         (gl::RenderbufferTextureCubeMap::getHeight):
3502         (gl::RenderbufferTextureCubeMap::getInternalFormat):
3503         (gl::RenderbufferTextureCubeMap::getActualFormat):
3504         (gl::RenderbufferTextureCubeMap::getSamples):
3505         (gl::RenderbufferTextureCubeMap::getSerial):
3506         (gl::Renderbuffer::Renderbuffer):
3507         (gl::Renderbuffer::~Renderbuffer):
3508         (gl::Renderbuffer::addRef):
3509         (gl::Renderbuffer::release):
3510         (gl::Renderbuffer::getRenderTarget):
3511         (gl::Renderbuffer::getDepthStencil):
3512         (gl::Renderbuffer::getWidth):
3513         (gl::Renderbuffer::getHeight):
3514         (gl::Renderbuffer::getInternalFormat):
3515         (gl::Renderbuffer::getActualFormat):
3516         (gl::Renderbuffer::getRedSize):
3517         (gl::Renderbuffer::getGreenSize):
3518         (gl::Renderbuffer::getBlueSize):
3519         (gl::Renderbuffer::getAlphaSize):
3520         (gl::Renderbuffer::getDepthSize):
3521         (gl::Renderbuffer::getStencilSize):
3522         (gl::Renderbuffer::getSamples):
3523         (gl::Renderbuffer::getSerial):
3524         (gl::Renderbuffer::setStorage):
3525         (gl::RenderbufferStorage::RenderbufferStorage):
3526         (gl::RenderbufferStorage::~RenderbufferStorage):
3527         (gl::RenderbufferStorage::getRenderTarget):
3528         (gl::RenderbufferStorage::getDepthStencil):
3529         (gl::RenderbufferStorage::getWidth):
3530         (gl::RenderbufferStorage::getHeight):
3531         (gl::RenderbufferStorage::getInternalFormat):
3532         (gl::RenderbufferStorage::getActualFormat):
3533         (gl::RenderbufferStorage::getSamples):
3534         (gl::RenderbufferStorage::getSerial):
3535         (gl::RenderbufferStorage::issueSerial):
3536         (gl::RenderbufferStorage::issueCubeSerials):
3537         (gl::Colorbuffer::Colorbuffer):
3538         (gl::Colorbuffer::~Colorbuffer):
3539         (gl::Colorbuffer::getRenderTarget):
3540         (gl::DepthStencilbuffer::DepthStencilbuffer):
3541         (gl::DepthStencilbuffer::~DepthStencilbuffer):
3542         (gl::DepthStencilbuffer::getDepthStencil):
3543         (gl::Depthbuffer::Depthbuffer):
3544         (gl::Depthbuffer::~Depthbuffer):
3545         (gl::Stencilbuffer::Stencilbuffer):
3546         (gl::Stencilbuffer::~Stencilbuffer):
3547         * src/libGLESv2/Renderbuffer.h: Added.
3548         (gl::RenderbufferInterface::~RenderbufferInterface):
3549         * src/libGLESv2/ResourceManager.cpp: Added.
3550         (gl::ResourceManager::ResourceManager):
3551         (gl::ResourceManager::~ResourceManager):
3552         (gl::ResourceManager::addRef):
3553         (gl::ResourceManager::release):
3554         (gl::ResourceManager::createBuffer):
3555         (gl::ResourceManager::createShader):
3556         (gl::ResourceManager::createProgram):
3557         (gl::ResourceManager::createTexture):
3558         (gl::ResourceManager::createRenderbuffer):
3559         (gl::ResourceManager::deleteBuffer):
3560         (gl::ResourceManager::deleteShader):
3561         (gl::ResourceManager::deleteProgram):
3562         (gl::ResourceManager::deleteTexture):
3563         (gl::ResourceManager::deleteRenderbuffer):
3564         (gl::ResourceManager::getBuffer):
3565         (gl::ResourceManager::getShader):
3566         (gl::ResourceManager::getTexture):
3567         (gl::ResourceManager::getProgram):
3568         (gl::ResourceManager::getRenderbuffer):
3569         (gl::ResourceManager::setRenderbuffer):
3570         (gl::ResourceManager::checkBufferAllocation):
3571         (gl::ResourceManager::checkTextureAllocation):
3572         (gl::ResourceManager::checkRenderbufferAllocation):
3573         * src/libGLESv2/ResourceManager.h: Added.
3574         * src/libGLESv2/Shader.cpp: Added.
3575         (gl::Shader::Shader):
3576         (gl::Shader::~Shader):
3577         (gl::Shader::getHandle):
3578         (gl::Shader::setSource):
3579         (gl::Shader::getInfoLogLength):
3580         (gl::Shader::getInfoLog):
3581         (gl::Shader::getSourceLength):
3582         (gl::Shader::getTranslatedSourceLength):
3583         (gl::Shader::getSourceImpl):
3584         (gl::Shader::getSource):
3585         (gl::Shader::getTranslatedSource):
3586         (gl::Shader::getUniforms):
3587         (gl::Shader::isCompiled):
3588         (gl::Shader::getHLSL):
3589         (gl::Shader::addRef):
3590         (gl::Shader::release):
3591         (gl::Shader::getRefCount):
3592         (gl::Shader::isFlaggedForDeletion):
3593         (gl::Shader::flagForDeletion):
3594         (gl::Shader::initializeCompiler):
3595         (gl::Shader::releaseCompiler):
3596         (gl::Shader::parseVaryings):
3597         (gl::Shader::resetVaryingsRegisterAssignment):
3598         (gl::Shader::uncompile):
3599         (gl::Shader::compileToHLSL):
3600         (gl::Shader::parseType):
3601         (gl::Shader::compareVarying):
3602         (gl::VertexShader::VertexShader):
3603         (gl::VertexShader::~VertexShader):
3604         (gl::VertexShader::getType):
3605         (gl::VertexShader::uncompile):
3606         (gl::VertexShader::compile):
3607         (gl::VertexShader::getSemanticIndex):
3608         (gl::VertexShader::parseAttributes):
3609         (gl::FragmentShader::FragmentShader):
3610         (gl::FragmentShader::~FragmentShader):
3611         (gl::FragmentShader::getType):
3612         (gl::FragmentShader::compile):
3613         * src/libGLESv2/Shader.h: Added.
3614         (gl::Varying::Varying):
3615         (gl::Attribute::Attribute):
3616         * src/libGLESv2/Texture.cpp: Added.
3617         (gl::Texture::Texture):
3618         (gl::Texture::~Texture):
3619         (gl::Texture::setMinFilter):
3620         (gl::Texture::setMagFilter):
3621         (gl::Texture::setWrapS):
3622         (gl::Texture::setWrapT):
3623         (gl::Texture::setMaxAnisotropy):
3624         (gl::Texture::setUsage):
3625         (gl::Texture::getMinFilter):
3626         (gl::Texture::getMagFilter):
3627         (gl::Texture::getWrapS):
3628         (gl::Texture::getWrapT):
3629         (gl::Texture::getMaxAnisotropy):
3630         (gl::Texture::getLodOffset):
3631         (gl::Texture::getSamplerState):
3632         (gl::Texture::getUsage):
3633         (gl::Texture::isMipmapFiltered):
3634         (gl::Texture::setImage):
3635         (gl::Texture::setCompressedImage):
3636         (gl::Texture::subImage):
3637         (gl::Texture::subImageCompressed):
3638         (gl::Texture::getNativeTexture):
3639         (gl::Texture::hasDirtyImages):
3640         (gl::Texture::resetDirty):
3641         (gl::Texture::getTextureSerial):
3642         (gl::Texture::getRenderTargetSerial):
3643         (gl::Texture::isImmutable):
3644         (gl::Texture::creationLevels):
3645         (gl::Texture2D::Texture2D):
3646         (gl::Texture2D::~Texture2D):
3647         (gl::Texture2D::addProxyRef):
3648         (gl::Texture2D::releaseProxy):
3649         (gl::Texture2D::getTarget):
3650         (gl::Texture2D::getWidth):
3651         (gl::Texture2D::getHeight):
3652         (gl::Texture2D::getInternalFormat):
3653         (gl::Texture2D::getActualFormat):
3654         (gl::Texture2D::redefineImage):
3655         (gl::Texture2D::setImage):
3656         (gl::Texture2D::bindTexImage):
3657         (gl::Texture2D::releaseTexImage):
3658         (gl::Texture2D::setCompressedImage):
3659         (gl::Texture2D::commitRect):
3660         (gl::Texture2D::subImage):
3661         (gl::Texture2D::subImageCompressed):
3662         (gl::Texture2D::copyImage):
3663         (gl::Texture2D::copySubImage):
3664         (gl::Texture2D::storage):
3665         (gl::Texture2D::isSamplerComplete):
3666         (gl::Texture2D::isMipmapComplete):
3667         (gl::Texture2D::isCompressed):
3668         (gl::Texture2D::isDepth):
3669         (gl::Texture2D::createTexture):
3670         (gl::Texture2D::updateTexture):
3671         (gl::Texture2D::convertToRenderTarget):
3672         (gl::Texture2D::generateMipmaps):
3673         (gl::Texture2D::getRenderbuffer):
3674         (gl::Texture2D::getRenderTarget):
3675         (gl::Texture2D::getDepthStencil):
3676         (gl::Texture2D::levelCount):
3677         (gl::Texture2D::getStorage):
3678         (gl::TextureCubeMap::TextureCubeMap):
3679         (gl::TextureCubeMap::~TextureCubeMap):
3680         (gl::TextureCubeMap::addProxyRef):
3681         (gl::TextureCubeMap::releaseProxy):
3682         (gl::TextureCubeMap::getTarget):
3683         (gl::TextureCubeMap::getWidth):
3684         (gl::TextureCubeMap::getHeight):
3685         (gl::TextureCubeMap::getInternalFormat):
3686         (gl::TextureCubeMap::getActualFormat):
3687         (gl::TextureCubeMap::setImagePosX):
3688         (gl::TextureCubeMap::setImageNegX):
3689         (gl::TextureCubeMap::setImagePosY):
3690         (gl::TextureCubeMap::setImageNegY):
3691         (gl::TextureCubeMap::setImagePosZ):
3692         (gl::TextureCubeMap::setImageNegZ):
3693         (gl::TextureCubeMap::setCompressedImage):
3694         (gl::TextureCubeMap::commitRect):
3695         (gl::TextureCubeMap::subImage):
3696         (gl::TextureCubeMap::subImageCompressed):
3697         (gl::TextureCubeMap::isSamplerComplete):
3698         (gl::TextureCubeMap::isCubeComplete):
3699         (gl::TextureCubeMap::isMipmapCubeComplete):
3700         (gl::TextureCubeMap::isCompressed):
3701         (gl::TextureCubeMap::createTexture):
3702         (gl::TextureCubeMap::updateTexture):
3703         (gl::TextureCubeMap::convertToRenderTarget):
3704         (gl::TextureCubeMap::setImage):
3705         (gl::TextureCubeMap::faceIndex):
3706         (gl::TextureCubeMap::redefineImage):
3707         (gl::TextureCubeMap::copyImage):
3708         (gl::TextureCubeMap::copySubImage):
3709         (gl::TextureCubeMap::storage):
3710         (gl::TextureCubeMap::generateMipmaps):
3711         (gl::TextureCubeMap::getRenderbuffer):
3712         (gl::TextureCubeMap::getRenderTarget):
3713         (gl::TextureCubeMap::levelCount):
3714         (gl::TextureCubeMap::getStorage):
3715         * src/libGLESv2/Texture.h: Added.
3716         * src/libGLESv2/Uniform.cpp: Added.
3717         (gl::Uniform::Uniform):
3718         (gl::Uniform::~Uniform):
3719         (gl::Uniform::isArray):
3720         (gl::Uniform::elementCount):
3721         * src/libGLESv2/Uniform.h: Added.
3722         * src/libGLESv2/angletypes.h: Added.
3723         * src/libGLESv2/constants.h: Added.
3724         * src/libGLESv2/libGLESv2.cpp: Added.
3725         (validImageSize):
3726         (checkTextureFormatType):
3727         (validateSubImageParams2D):
3728         (validateSubImageParamsCube):
3729         (validReadFormatType):
3730         * src/libGLESv2/libGLESv2.def: Added.
3731         * src/libGLESv2/libGLESv2.rc: Added.
3732         * src/libGLESv2/libGLESv2.vcxproj: Added.
3733         * src/libGLESv2/libGLESv2.vcxproj.filters: Added.
3734         * src/libGLESv2/main.cpp: Added.
3735         (DllMain):
3736         (gl::makeCurrent):
3737         (gl::getContext):
3738         (gl::getNonLostContext):
3739         (gl::getDisplay):
3740         (gl::error):
3741         * src/libGLESv2/main.h: Added.
3742         (gl::error):
3743         * src/libGLESv2/mathutil.h: Added.
3744         (gl::Vector4::Vector4):
3745         (gl::isPow2):
3746         (gl::log2):
3747         (gl::ceilPow2):
3748         (gl::clamp):
3749         (gl::clamp01):
3750         (gl::unorm):
3751         (gl::supportsSSE2):
3752         (gl::float32ToFloat16):
3753         (rx::Range::Range):
3754         * src/libGLESv2/precompiled.cpp: Added.
3755         * src/libGLESv2/precompiled.h: Added.
3756         * src/libGLESv2/renderer: Added.
3757         * src/libGLESv2/renderer/Blit.cpp: Added.
3758         (rx::Blit::Blit):
3759         (rx::Blit::~Blit):
3760         (rx::Blit::initGeometry):
3761         (rx::Blit::setShader):
3762         (rx::Blit::setVertexShader):
3763         (rx::Blit::setPixelShader):
3764         (rx::Blit::getSurfaceRect):
3765         (rx::Blit::boxFilter):
3766         (rx::Blit::copy):
3767         (rx::Blit::formatConvert):
3768         (rx::Blit::setFormatConvertShaders):
3769         (rx::Blit::copySurfaceToTexture):
3770         (rx::Blit::setViewport):
3771         (rx::Blit::setCommonBlitState):
3772         (rx::Blit::render):
3773         (rx::Blit::saveState):
3774         (rx::Blit::restoreState):
3775         * src/libGLESv2/renderer/Blit.h: Added.
3776         * src/libGLESv2/renderer/BufferStorage.cpp: Added.
3777         (rx::BufferStorage::BufferStorage):
3778         (rx::BufferStorage::~BufferStorage):
3779         (rx::BufferStorage::getSerial):
3780         (rx::BufferStorage::updateSerial):
3781         (rx::BufferStorage::markBufferUsage):
3782         * src/libGLESv2/renderer/BufferStorage.h: Added.
3783         * src/libGLESv2/renderer/BufferStorage11.cpp: Added.
3784         (rx::BufferStorage11::BufferStorage11):
3785         (rx::BufferStorage11::~BufferStorage11):
3786         (rx::BufferStorage11::makeBufferStorage11):
3787         (rx::BufferStorage11::getData):
3788         (rx::BufferStorage11::setData):
3789         (rx::BufferStorage11::clear):
3790         (rx::BufferStorage11::getSize):
3791         (rx::BufferStorage11::supportsDirectBinding):
3792         (rx::BufferStorage11::markBufferUsage):
3793         (rx::BufferStorage11::getBuffer):
3794         * src/libGLESv2/renderer/BufferStorage11.h: Added.
3795         * src/libGLESv2/renderer/BufferStorage9.cpp: Added.
3796         (rx::BufferStorage9::BufferStorage9):
3797         (rx::BufferStorage9::~BufferStorage9):
3798         (rx::BufferStorage9::makeBufferStorage9):
3799         (rx::BufferStorage9::getData):
3800         (rx::BufferStorage9::setData):
3801         (rx::BufferStorage9::clear):
3802         (rx::BufferStorage9::getSize):
3803         (rx::BufferStorage9::supportsDirectBinding):
3804         * src/libGLESv2/renderer/BufferStorage9.h: Added.
3805         * src/libGLESv2/renderer/Fence11.cpp: Added.
3806         (rx::Fence11::Fence11):
3807         (rx::Fence11::~Fence11):
3808         (rx::Fence11::isFence):
3809         (rx::Fence11::setFence):
3810         (rx::Fence11::testFence):
3811         (rx::Fence11::finishFence):
3812         (rx::Fence11::getFenceiv):
3813         * src/libGLESv2/renderer/Fence11.h: Added.
3814         * src/libGLESv2/renderer/Fence9.cpp: Added.
3815         (rx::Fence9::Fence9):
3816         (rx::Fence9::~Fence9):
3817         (rx::Fence9::isFence):
3818         (rx::Fence9::setFence):
3819         (rx::Fence9::testFence):
3820         (rx::Fence9::finishFence):
3821         (rx::Fence9::getFenceiv):
3822         * src/libGLESv2/renderer/Fence9.h: Added.
3823         * src/libGLESv2/renderer/FenceImpl.h: Added.
3824         (rx::FenceImpl::FenceImpl):
3825         (rx::FenceImpl::~FenceImpl):
3826         (rx::FenceImpl::setStatus):
3827         (rx::FenceImpl::getStatus):
3828         (rx::FenceImpl::setCondition):
3829         (rx::FenceImpl::getCondition):
3830         * src/libGLESv2/renderer/Image.cpp: Added.
3831         (rx::Image::Image):
3832         (rx::Image::loadAlphaDataToBGRA):
3833         (rx::Image::loadAlphaDataToNative):
3834         (rx::Image::loadAlphaFloatDataToRGBA):
3835         (rx::Image::loadAlphaHalfFloatDataToRGBA):
3836         (rx::Image::loadLuminanceDataToNativeOrBGRA):
3837         (rx::Image::loadLuminanceFloatDataToRGBA):
3838         (rx::Image::loadLuminanceFloatDataToRGB):
3839         (rx::Image::loadLuminanceHalfFloatDataToRGBA):
3840         (rx::Image::loadLuminanceAlphaDataToNativeOrBGRA):
3841         (rx::Image::loadLuminanceAlphaFloatDataToRGBA):
3842         (rx::Image::loadLuminanceAlphaHalfFloatDataToRGBA):
3843         (rx::Image::loadRGBUByteDataToBGRX):
3844         (rx::Image::loadRGBUByteDataToRGBA):
3845         (rx::Image::loadRGB565DataToBGRA):
3846         (rx::Image::loadRGB565DataToRGBA):
3847         (rx::Image::loadRGBFloatDataToRGBA):
3848         (rx::Image::loadRGBFloatDataToNative):
3849         (rx::Image::loadRGBHalfFloatDataToRGBA):
3850         (rx::Image::loadRGBAUByteDataToBGRA):
3851         (rx::Image::loadRGBAUByteDataToNative):
3852         (rx::Image::loadRGBA4444DataToBGRA):
3853         (rx::Image::loadRGBA4444DataToRGBA):
3854         (rx::Image::loadRGBA5551DataToBGRA):
3855         (rx::Image::loadRGBA5551DataToRGBA):
3856         (rx::Image::loadRGBAFloatDataToRGBA):
3857         (rx::Image::loadRGBAHalfFloatDataToRGBA):
3858         (rx::Image::loadBGRADataToBGRA):
3859         * src/libGLESv2/renderer/Image.h: Added.
3860         (rx::Image::~Image):
3861         (rx::Image::getWidth):
3862         (rx::Image::getHeight):
3863         (rx::Image::getInternalFormat):
3864         (rx::Image::getActualFormat):
3865         (rx::Image::markDirty):
3866         (rx::Image::markClean):
3867         (rx::Image::setManagedSurface):
3868         * src/libGLESv2/renderer/Image11.cpp: Added.
3869         (rx::Image11::Image11):
3870         (rx::Image11::~Image11):
3871         (rx::Image11::makeImage11):
3872         (rx::Image11::generateMipmap):
3873         (rx::Image11::isDirty):
3874         (rx::Image11::updateSurface):
3875         (rx::Image11::redefine):
3876         (rx::Image11::isRenderableFormat):
3877         (rx::Image11::getDXGIFormat):
3878         (rx::Image11::loadData):
3879         (rx::Image11::loadCompressedData):
3880         (rx::Image11::copy):
3881         (rx::Image11::getStagingTexture):
3882         (rx::Image11::getStagingSubresource):
3883         (rx::Image11::createStagingTexture):
3884         (rx::Image11::map):
3885         (rx::Image11::unmap):
3886         * src/libGLESv2/renderer/Image11.h: Added.
3887         * src/libGLESv2/renderer/Image9.cpp: Added.
3888         (rx::Image9::Image9):
3889         (rx::Image9::~Image9):
3890         (rx::Image9::generateMip):
3891         (rx::Image9::makeImage9):
3892         (rx::Image9::generateMipmap):
3893         (rx::Image9::copyLockableSurfaces):
3894         (rx::Image9::redefine):
3895         (rx::Image9::createSurface):
3896         (rx::Image9::lock):
3897         (rx::Image9::unlock):
3898         (rx::Image9::isRenderableFormat):
3899         (rx::Image9::getD3DFormat):
3900         (rx::Image9::getSurface):
3901         (rx::Image9::setManagedSurface):
3902         (rx::Image9::updateSurface):
3903         (rx::Image9::loadData):
3904         (rx::Image9::loadCompressedData):
3905         (rx::Image9::copy):
3906         * src/libGLESv2/renderer/Image9.h: Added.
3907         (rx::Image9::isDirty):
3908         * src/libGLESv2/renderer/ImageSSE2.cpp: Added.
3909         (rx::Image::loadRGBAUByteDataToBGRASSE2):
3910         (rx::Image::loadAlphaDataToBGRASSE2):
3911         * src/libGLESv2/renderer/IndexBuffer.cpp: Added.
3912         (rx::IndexBuffer::IndexBuffer):
3913         (rx::IndexBuffer::~IndexBuffer):
3914         (rx::IndexBuffer::getSerial):
3915         (rx::IndexBuffer::updateSerial):
3916         (rx::IndexBufferInterface::IndexBufferInterface):
3917         (rx::IndexBufferInterface::~IndexBufferInterface):
3918         (rx::IndexBufferInterface::getIndexType):
3919         (rx::IndexBufferInterface::getBufferSize):
3920         (rx::IndexBufferInterface::getSerial):
3921         (rx::IndexBufferInterface::mapBuffer):
3922         (rx::IndexBufferInterface::unmapBuffer):
3923         (rx::IndexBufferInterface::getIndexBuffer):
3924         (rx::IndexBufferInterface::getWritePosition):
3925         (rx::IndexBufferInterface::setWritePosition):
3926         (rx::IndexBufferInterface::discard):
3927         (rx::IndexBufferInterface::setBufferSize):
3928         (rx::StreamingIndexBufferInterface::StreamingIndexBufferInterface):
3929         (rx::StreamingIndexBufferInterface::~StreamingIndexBufferInterface):
3930         (rx::StreamingIndexBufferInterface::reserveBufferSpace):
3931         (rx::StaticIndexBufferInterface::StaticIndexBufferInterface):
3932         (rx::StaticIndexBufferInterface::~StaticIndexBufferInterface):
3933         (rx::StaticIndexBufferInterface::reserveBufferSpace):
3934         (rx::StaticIndexBufferInterface::lookupRange):
3935         (rx::StaticIndexBufferInterface::addRange):
3936         * src/libGLESv2/renderer/IndexBuffer.h: Added.
3937         (rx::StaticIndexBufferInterface::IndexRange::operator<):
3938         * src/libGLESv2/renderer/IndexBuffer11.cpp: Added.
3939         (rx::IndexBuffer11::IndexBuffer11):
3940         (rx::IndexBuffer11::~IndexBuffer11):
3941         (rx::IndexBuffer11::initialize):
3942         (rx::IndexBuffer11::makeIndexBuffer11):
3943         (rx::IndexBuffer11::mapBuffer):
3944         (rx::IndexBuffer11::unmapBuffer):
3945         (rx::IndexBuffer11::getIndexType):
3946         (rx::IndexBuffer11::getBufferSize):
3947         (rx::IndexBuffer11::setSize):
3948         (rx::IndexBuffer11::discard):
3949         (rx::IndexBuffer11::getIndexFormat):
3950         (rx::IndexBuffer11::getBuffer):
3951         * src/libGLESv2/renderer/IndexBuffer11.h: Added.
3952         * src/libGLESv2/renderer/IndexBuffer9.cpp: Added.
3953         (rx::IndexBuffer9::IndexBuffer9):
3954         (rx::IndexBuffer9::~IndexBuffer9):
3955         (rx::IndexBuffer9::initialize):
3956         (rx::IndexBuffer9::makeIndexBuffer9):
3957         (rx::IndexBuffer9::mapBuffer):
3958         (rx::IndexBuffer9::unmapBuffer):
3959         (rx::IndexBuffer9::getIndexType):
3960         (rx::IndexBuffer9::getBufferSize):
3961         (rx::IndexBuffer9::setSize):
3962         (rx::IndexBuffer9::discard):
3963         (rx::IndexBuffer9::getIndexFormat):
3964         (rx::IndexBuffer9::getBuffer):
3965         * src/libGLESv2/renderer/IndexBuffer9.h: Added.
3966         * src/libGLESv2/renderer/IndexDataManager.cpp: Added.
3967         (rx::IndexDataManager::IndexDataManager):
3968         (rx::IndexDataManager::~IndexDataManager):
3969         (rx::indexTypeSize):
3970         (rx::convertIndices):
3971         (rx::computeRange):
3972         (rx::IndexDataManager::prepareIndexData):
3973         (rx::IndexDataManager::getCountingIndices):
3974         * src/libGLESv2/renderer/IndexDataManager.h: Added.
3975         * src/libGLESv2/renderer/InputLayoutCache.cpp: Added.
3976         (rx::InputLayoutCache::InputLayoutCache):
3977         (rx::InputLayoutCache::~InputLayoutCache):
3978         (rx::InputLayoutCache::initialize):
3979         (rx::InputLayoutCache::clear):
3980         (rx::InputLayoutCache::applyVertexBuffers):
3981         (rx::InputLayoutCache::hashInputLayout):
3982         (rx::InputLayoutCache::compareInputLayouts):
3983         * src/libGLESv2/renderer/InputLayoutCache.h: Added.
3984         * src/libGLESv2/renderer/Query11.cpp: Added.
3985         (rx::Query11::Query11):
3986         (rx::Query11::~Query11):
3987         (rx::Query11::begin):
3988         (rx::Query11::end):
3989         (rx::Query11::getResult):
3990         (rx::Query11::isResultAvailable):
3991         (rx::Query11::testQuery):
3992         * src/libGLESv2/renderer/Query11.h: Added.
3993         * src/libGLESv2/renderer/Query9.cpp: Added.
3994         (rx::Query9::Query9):
3995         (rx::Query9::~Query9):
3996         (rx::Query9::begin):
3997         (rx::Query9::end):
3998         (rx::Query9::getResult):
3999         (rx::Query9::isResultAvailable):
4000         (rx::Query9::testQuery):
4001         * src/libGLESv2/renderer/Query9.h: Added.
4002         * src/libGLESv2/renderer/QueryImpl.h: Added.
4003         (rx::QueryImpl::QueryImpl):
4004         (rx::QueryImpl::~QueryImpl):
4005         (rx::QueryImpl::getType):
4006         * src/li