Skip to content

Commit 9301fa1

Browse files
committed
Remove SHADER_COMPILER constant
https://bugs.webkit.org/show_bug.cgi?id=85115 Reviewed by Darin Adler. Source/WebCore: Removed constant which was previously removed from spec. Updated layout test and expected results. * html/canvas/WebGLRenderingContext.idl: LayoutTests: * fast/canvas/webgl/constants-expected.txt: Updated expected results. * fast/canvas/webgl/constants.html: Synced test with Khronos repository. Canonical link: https://commits.webkit.org/102655@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 75c8a23 commit 9301fa1

5 files changed

Lines changed: 55 additions & 5 deletions

File tree

LayoutTests/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2012-04-27 Kenneth Russell <kbr@google.com>
2+
3+
Remove SHADER_COMPILER constant
4+
https://bugs.webkit.org/show_bug.cgi?id=85115
5+
6+
Reviewed by Darin Adler.
7+
8+
* fast/canvas/webgl/constants-expected.txt: Updated expected results.
9+
* fast/canvas/webgl/constants.html: Synced test with Khronos repository.
10+
111
2012-04-27 Joe Thomas <joethomas@motorola.com>
212

313
fast/forms/listbox-clear-restore.html is failing

LayoutTests/fast/canvas/webgl/constants-expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
55

66
Canvas.getContext
77
PASS All WebGL constants found to have correct values.
8+
PASS All constants removed from WebGL spec were absent from WebGL context.
89

910
PASS successfullyParsed is true
1011

LayoutTests/fast/canvas/webgl/constants.html

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@
372372

373373
/* Shader Source */
374374
COMPILE_STATUS : 0x8B81,
375-
SHADER_COMPILER : 0x8DFA,
376375

377376
/* Shader Precision-Specified Types */
378377
LOW_FLOAT : 0x8DF0,
@@ -436,10 +435,33 @@
436435
BROWSER_DEFAULT_WEBGL : 0x9244
437436
};
438437

438+
// Constants removed from the WebGL spec compared to ES 2.0
439+
var removedConstants = {
440+
NUM_COMPRESSED_TEXTURE_FORMATS : 0x86A2,
441+
FIXED : 0x140C,
442+
ACTIVE_UNIFORM_MAX_LENGTH : 0x8B87,
443+
ACTIVE_ATTRIBUTE_MAX_LENGTH : 0x8B8A,
444+
EXTENSIONS : 0x1F03,
445+
INFO_LOG_LENGTH : 0x8B84,
446+
SHADER_SOURCE_LENGTH : 0x8B88,
447+
SHADER_COMPILER : 0x8DFA,
448+
SHADER_BINARY_FORMATS : 0x8DF8,
449+
NUM_SHADER_BINARY_FORMATS : 0x8DF9,
450+
};
451+
439452
function assertProperty(v, p) {
440-
if (v[p] == null) {
453+
if (p in v) {
454+
return true;
455+
} else {
441456
testFailed("Property does not exist: " + p)
442457
return false;
458+
}
459+
}
460+
461+
function assertNoProperty(v, p) {
462+
if (p in v) {
463+
testFailed("Property is defined and should not be: " + p)
464+
return false;
443465
} else {
444466
return true;
445467
}
@@ -464,6 +486,14 @@
464486
if (passed) {
465487
testPassed("All WebGL constants found to have correct values.");
466488
}
489+
passed = true;
490+
for (var i in removedConstants) {
491+
var r = assertNoProperty(gl, i);
492+
passed = passed && r;
493+
}
494+
if (passed) {
495+
testPassed("All constants removed from WebGL spec were absent from WebGL context.");
496+
}
467497
var extended = false;
468498
for (var i in gl) {
469499
if (i.match(/^[^a-z]/) && constants[i] == null) {
@@ -478,8 +508,6 @@
478508
debug("");
479509
</script>
480510
<script src="../../js/resources/js-test-post.js"></script>
481-
<script>
482-
</script>
483511

484512
</body>
485513
</html>

Source/WebCore/ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2012-04-27 Kenneth Russell <kbr@google.com>
2+
3+
Remove SHADER_COMPILER constant
4+
https://bugs.webkit.org/show_bug.cgi?id=85115
5+
6+
Reviewed by Darin Adler.
7+
8+
Removed constant which was previously removed from spec. Updated
9+
layout test and expected results.
10+
11+
* html/canvas/WebGLRenderingContext.idl:
12+
113
2012-04-27 Arvid Nilsson <anilsson@rim.com>
214

315
[BlackBerry] Fixed background is scrolling in http://www.nieuwecode.nl

Source/WebCore/html/canvas/WebGLRenderingContext.idl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ module html {
384384

385385
/* Shader Source */
386386
const unsigned int COMPILE_STATUS = 0x8B81;
387-
const unsigned int SHADER_COMPILER = 0x8DFA;
388387

389388
/* Shader Precision-Specified Types */
390389
const unsigned int LOW_FLOAT = 0x8DF0;

0 commit comments

Comments
 (0)