Changeset 199062 in webkit
- Timestamp:
- Apr 5, 2016, 9:54:07 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 18 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt (modified) (2 diffs)
-
LayoutTests/webgl/webgl-vertex-array-object-defined-expected.txt (added)
-
LayoutTests/webgl/webgl-vertex-array-object-defined.html (added)
-
LayoutTests/webgl/webgl2-rendering-context-defined-expected.txt (added)
-
LayoutTests/webgl/webgl2-rendering-context-defined.html (added)
-
LayoutTests/webgl/webgl2-rendering-context-obtain-expected.txt (added)
-
LayoutTests/webgl/webgl2-rendering-context-obtain.html (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/JavaScriptCore/runtime/CommonIdentifiers.h (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/WebCore/bindings/js/JSWebGL2RenderingContextCustom.cpp (modified) (7 diffs)
-
Source/WebCore/html/HTMLCanvasElement.cpp (modified) (1 diff)
-
Source/WebCore/html/canvas/WebGL2RenderingContext.cpp (modified) (2 diffs)
-
Source/WebCore/html/canvas/WebGL2RenderingContext.idl (modified) (2 diffs)
-
Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (modified) (2 diffs)
-
Source/WebCore/html/canvas/WebGLVertexArrayObject.idl (modified) (1 diff)
-
Source/WebKit/mac/ChangeLog (modified) (1 diff)
-
Source/WebKit/mac/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r199061 r199062 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Turn the ENABLE_WEBGL2 flag on 4 https://bugs.webkit.org/show_bug.cgi?id=156061 5 <rdar://problem/25463193> 6 7 Reviewed by Alex Christensen. 8 9 * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: 10 * platform/mac/js/dom/global-constructors-attributes-expected.txt: 11 12 The WebGL2RenderingContext and WebGLVertexArrayObject classes are now defined 13 so expectations for this test which lists the configuration of global constructors 14 needed to be updated. 15 16 * webgl/webgl-vertex-array-object-defined-expected.txt: Added. 17 * webgl/webgl-vertex-array-object-defined.html: Added. 18 19 Test checking that WebGLVertexArrayObject is defined. 20 21 * webgl/webgl2-rendering-context-defined-expected.txt: Added. 22 * webgl/webgl2-rendering-context-defined.html: Added. 23 24 Test checking that WebGL2RenderingContext is defined. 25 26 * webgl/webgl2-rendering-context-obtain-expected.txt: Added. 27 * webgl/webgl2-rendering-context-obtain.html: Added. 28 29 Test checking that asking for a "webgl2" context returns a WebGL2RenderingContext. 30 1 31 2016-04-05 Chris Dumez <cdumez@apple.com> 2 32 -
trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
r198492 r199062 2114 2114 PASS Object.getOwnPropertyDescriptor(global, 'WeakSet').enumerable is false 2115 2115 PASS Object.getOwnPropertyDescriptor(global, 'WeakSet').configurable is true 2116 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').value is WebGL2RenderingContext 2117 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').hasOwnProperty('get') is false 2118 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').hasOwnProperty('set') is false 2119 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').enumerable is false 2120 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').configurable is true 2116 2121 PASS Object.getOwnPropertyDescriptor(global, 'WebGLActiveInfo').value is WebGLActiveInfo 2117 2122 PASS Object.getOwnPropertyDescriptor(global, 'WebGLActiveInfo').hasOwnProperty('get') is false … … 2189 2194 PASS Object.getOwnPropertyDescriptor(global, 'WebGLUniformLocation').enumerable is false 2190 2195 PASS Object.getOwnPropertyDescriptor(global, 'WebGLUniformLocation').configurable is true 2196 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').value is WebGLVertexArrayObject 2197 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').hasOwnProperty('get') is false 2198 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').hasOwnProperty('set') is false 2199 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').enumerable is false 2200 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').configurable is true 2191 2201 PASS Object.getOwnPropertyDescriptor(global, 'WebKitAnimationEvent').value is WebKitAnimationEvent 2192 2202 PASS Object.getOwnPropertyDescriptor(global, 'WebKitAnimationEvent').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
r198492 r199062 2114 2114 PASS Object.getOwnPropertyDescriptor(global, 'WeakSet').enumerable is false 2115 2115 PASS Object.getOwnPropertyDescriptor(global, 'WeakSet').configurable is true 2116 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').value is WebGL2RenderingContext 2117 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').hasOwnProperty('get') is false 2118 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').hasOwnProperty('set') is false 2119 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').enumerable is false 2120 PASS Object.getOwnPropertyDescriptor(global, 'WebGL2RenderingContext').configurable is true 2116 2121 PASS Object.getOwnPropertyDescriptor(global, 'WebGLActiveInfo').value is WebGLActiveInfo 2117 2122 PASS Object.getOwnPropertyDescriptor(global, 'WebGLActiveInfo').hasOwnProperty('get') is false … … 2189 2194 PASS Object.getOwnPropertyDescriptor(global, 'WebGLUniformLocation').enumerable is false 2190 2195 PASS Object.getOwnPropertyDescriptor(global, 'WebGLUniformLocation').configurable is true 2196 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').value is WebGLVertexArrayObject 2197 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').hasOwnProperty('get') is false 2198 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').hasOwnProperty('set') is false 2199 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').enumerable is false 2200 PASS Object.getOwnPropertyDescriptor(global, 'WebGLVertexArrayObject').configurable is true 2191 2201 PASS Object.getOwnPropertyDescriptor(global, 'WebKitAnimationEvent').value is WebKitAnimationEvent 2192 2202 PASS Object.getOwnPropertyDescriptor(global, 'WebKitAnimationEvent').hasOwnProperty('get') is false -
trunk/Source/JavaScriptCore/ChangeLog
r199052 r199062 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Turn the ENABLE_WEBGL2 flag on 4 https://bugs.webkit.org/show_bug.cgi?id=156061 5 <rdar://problem/25463193> 6 7 Reviewed by Alex Christensen. 8 9 * Configurations/FeatureDefines.xcconfig: 10 * runtime/CommonIdentifiers.h: 11 12 Define the conditionalized classes WebGL2RenderingContext and WebGLVertexArrayObject. 13 1 14 2016-04-04 Zan Dobersek <zdobersek@igalia.com> 2 15 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r198475 r199062 177 177 ENABLE_WEBASSEMBLY = ; 178 178 ENABLE_WEBGL = ENABLE_WEBGL; 179 ENABLE_WEBGL2 = ;179 ENABLE_WEBGL2 = ENABLE_WEBGL2; 180 180 ENABLE_WEB_ANIMATIONS = ENABLE_WEB_ANIMATIONS; 181 181 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h
r199017 r199062 88 88 macro(WeakMap)\ 89 89 macro(WeakSet)\ 90 macro(WebGL2RenderingContext) \ 91 macro(WebGLVertexArrayObject) \ 90 92 macro(WebSocket) \ 91 93 macro(__defineGetter__) \ -
trunk/Source/WebCore/ChangeLog
r199060 r199062 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Turn the ENABLE_WEBGL2 flag on 4 https://bugs.webkit.org/show_bug.cgi?id=156061 5 <rdar://problem/25463193> 6 7 Reviewed by Alex Christensen. 8 9 Conditionalize the definition of the WebGL2RenderingContext and WebGLVertexArrayObject globals 10 based on the new WebGL2 runtime flag we introduced in https://webkit.org/b/156166. 11 12 Turning the ENABLE_WEBGL2 flag on caused a host of build errors which we fix here. A non-obvious 13 error was in code generated from the html/canvas/WebGL2RenderingContext.idl file which was solved 14 by updating the getBufferSubData() method to the current signature as of the March 29 Editor's 15 Draft of the WebGL 2 Specification (https://www.khronos.org/registry/webgl/specs/latest/2.0/). 16 Missing JSC headers in WebGL2RenderingContext.cpp also caused some linking errors in Release builds. 17 18 Tests: webgl/webgl-vertex-array-object-defined.html 19 webgl/webgl2-rendering-context-defined.html 20 webgl/webgl2-rendering-context-obtain.html 21 22 * Configurations/FeatureDefines.xcconfig: 23 * bindings/js/JSWebGL2RenderingContextCustom.cpp: 24 (WebCore::JSWebGL2RenderingContext::getInternalformatParameter): 25 (WebCore::JSWebGL2RenderingContext::getQueryParameter): 26 (WebCore::JSWebGL2RenderingContext::getSamplerParameter): 27 (WebCore::JSWebGL2RenderingContext::getSyncParameter): 28 (WebCore::JSWebGL2RenderingContext::getIndexedParameter): 29 (WebCore::JSWebGL2RenderingContext::getActiveUniformBlockParameter): 30 (WebCore::JSWebGL2RenderingContext::getActiveUniformBlockName): 31 * html/HTMLCanvasElement.cpp: 32 (WebCore::HTMLCanvasElement::is3dType): 33 * html/canvas/WebGL2RenderingContext.cpp: 34 (WebCore::WebGL2RenderingContext::getBufferSubData): Deleted. 35 * html/canvas/WebGL2RenderingContext.idl: 36 * html/canvas/WebGLRenderingContextBase.cpp: 37 (WebCore::WebGLRenderingContextBase::create): 38 * html/canvas/WebGLVertexArrayObject.idl: 39 1 40 2016-04-05 Antti Koivisto <antti@apple.com> 2 41 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r198475 r199062 177 177 ENABLE_WEBASSEMBLY = ; 178 178 ENABLE_WEBGL = ENABLE_WEBGL; 179 ENABLE_WEBGL2 = ;179 ENABLE_WEBGL2 = ENABLE_WEBGL2; 180 180 ENABLE_WEB_ANIMATIONS = ENABLE_WEB_ANIMATIONS; 181 181 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/WebCore/bindings/js/JSWebGL2RenderingContextCustom.cpp
r191887 r199062 29 29 #include "JSWebGL2RenderingContext.h" 30 30 31 #include <runtime/Error.h> 31 32 #include "NotImplemented.h" 32 33 #include "WebGL2RenderingContext.h" … … 71 72 } 72 73 73 JSValue JSWebGL2RenderingContext::getInternalformatParameter(ExecState *exec)74 JSValue JSWebGL2RenderingContext::getInternalformatParameter(ExecState& exec) 74 75 { 75 76 UNUSED_PARAM(exec); … … 77 78 } 78 79 79 JSValue JSWebGL2RenderingContext::getQueryParameter(ExecState *exec)80 JSValue JSWebGL2RenderingContext::getQueryParameter(ExecState& exec) 80 81 { 81 82 UNUSED_PARAM(exec); … … 83 84 } 84 85 85 JSValue JSWebGL2RenderingContext::getSamplerParameter(ExecState *exec)86 JSValue JSWebGL2RenderingContext::getSamplerParameter(ExecState& exec) 86 87 { 87 88 UNUSED_PARAM(exec); … … 89 90 } 90 91 91 JSValue JSWebGL2RenderingContext::getSyncParameter(ExecState *exec)92 JSValue JSWebGL2RenderingContext::getSyncParameter(ExecState& exec) 92 93 { 93 94 UNUSED_PARAM(exec); … … 95 96 } 96 97 97 JSValue JSWebGL2RenderingContext::getIndexedParameter(ExecState *exec)98 JSValue JSWebGL2RenderingContext::getIndexedParameter(ExecState& exec) 98 99 { 99 if (exec ->argumentCount() != 2)100 return exec ->vm().throwException(exec, createNotEnoughArgumentsError(exec));100 if (exec.argumentCount() != 2) 101 return exec.vm().throwException(&exec, createNotEnoughArgumentsError(&exec)); 101 102 102 103 WebGL2RenderingContext& context = wrapped(); 103 unsigned pname = exec ->uncheckedArgument(0).toInt32(exec);104 if (exec ->hadException())104 unsigned pname = exec.uncheckedArgument(0).toInt32(&exec); 105 if (exec.hadException()) 105 106 return jsUndefined(); 106 unsigned index = exec ->uncheckedArgument(1).toInt32(exec);107 if (exec ->hadException())107 unsigned index = exec.uncheckedArgument(1).toInt32(&exec); 108 if (exec.hadException()) 108 109 return jsUndefined(); 109 110 WebGLGetInfo info = context.getIndexedParameter(pname, index); 110 return toJS( exec, globalObject(), info);111 return toJS(&exec, globalObject(), info); 111 112 } 112 113 113 JSValue JSWebGL2RenderingContext::getActiveUniformBlockParameter(ExecState *exec)114 JSValue JSWebGL2RenderingContext::getActiveUniformBlockParameter(ExecState& exec) 114 115 { 115 116 UNUSED_PARAM(exec); … … 117 118 } 118 119 119 JSValue JSWebGL2RenderingContext::getActiveUniformBlockName(ExecState *exec)120 JSValue JSWebGL2RenderingContext::getActiveUniformBlockName(ExecState& exec) 120 121 { 121 122 UNUSED_PARAM(exec); -
trunk/Source/WebCore/html/HTMLCanvasElement.cpp
r198958 r199062 297 297 return type == "webgl" || type == "experimental-webgl" 298 298 #if ENABLE(WEBGL2) 299 || type == " experimental-webgl2"299 || type == "webgl2" 300 300 #endif 301 301 || type == "webkit-3d"; -
trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
r195743 r199062 55 55 #include "WebGLTransformFeedback.h" 56 56 #include "WebGLVertexArrayObject.h" 57 #include <JavaScriptCore/GenericTypedArrayViewInlines.h> 58 #include <JavaScriptCore/JSGenericTypedArrayViewInlines.h> 57 59 58 60 namespace WebCore { … … 94 96 UNUSED_PARAM(writeOffset); 95 97 UNUSED_PARAM(size); 96 }97 98 void WebGL2RenderingContext::getBufferSubData(GC3Denum target, GC3Dint64 offset, ArrayBufferView* returnedData)99 {100 UNUSED_PARAM(target);101 UNUSED_PARAM(offset);102 UNUSED_PARAM(returnedData);103 98 } 104 99 -
trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.idl
r186198 r199062 43 43 [ 44 44 Conditional=WEBGL2, 45 EnabledAtRuntime=WebGL2, 45 46 JSCustomMarkFunction, 46 47 DoNotCheckConstants, … … 336 337 // can not be exposed safely to JavaScript. GetBufferSubData 337 338 // replaces it for the purpose of fetching data back from the GPU. 338 [StrictTypeChecking] void getBufferSubData(GLenum target, GLintptr offset, ArrayBufferView returnedData); 339 [StrictTypeChecking] void getBufferSubData(GLenum target, GLintptr offset, ArrayBuffer returnedData); 339 [StrictTypeChecking] void getBufferSubData(GLenum target, GLintptr offset, ArrayBuffer? returnedData); 340 340 341 341 /* Framebuffer objects */ -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r198588 r199062 405 405 std::unique_ptr<WebGLRenderingContextBase> renderingContext = nullptr; 406 406 #if ENABLE(WEBGL2) 407 if (type == " experimental-webgl2")407 if (type == "webgl2") 408 408 renderingContext = std::unique_ptr<WebGL2RenderingContext>(new WebGL2RenderingContext(canvas, attributes)); 409 409 else … … 428 428 std::unique_ptr<WebGLRenderingContextBase> renderingContext = nullptr; 429 429 #if ENABLE(WEBGL2) 430 if (type == " experimental-webgl2")430 if (type == "webgl2") 431 431 renderingContext = std::unique_ptr<WebGL2RenderingContext>(new WebGL2RenderingContext(canvas, context, attributes)); 432 432 else -
trunk/Source/WebCore/html/canvas/WebGLVertexArrayObject.idl
r186198 r199062 25 25 26 26 [ 27 Conditional=WEBGL2 27 Conditional=WEBGL2, 28 EnabledAtRuntime=WebGL2 28 29 ] interface WebGLVertexArrayObject { 29 30 }; -
trunk/Source/WebKit/mac/ChangeLog
r199055 r199062 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Turn the ENABLE_WEBGL2 flag on 4 https://bugs.webkit.org/show_bug.cgi?id=156061 5 <rdar://problem/25463193> 6 7 Reviewed by Alex Christensen. 8 9 * Configurations/FeatureDefines.xcconfig: 10 1 11 2016-04-05 Antoine Quint <graouts@apple.com> 2 12 -
trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
r198475 r199062 177 177 ENABLE_WEBASSEMBLY = ; 178 178 ENABLE_WEBGL = ENABLE_WEBGL; 179 ENABLE_WEBGL2 = ;179 ENABLE_WEBGL2 = ENABLE_WEBGL2; 180 180 ENABLE_WEB_ANIMATIONS = ENABLE_WEB_ANIMATIONS; 181 181 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/WebKit2/ChangeLog
r199061 r199062 1 2016-04-05 Antoine Quint <graouts@apple.com> 2 3 [WebGL2] Turn the ENABLE_WEBGL2 flag on 4 https://bugs.webkit.org/show_bug.cgi?id=156061 5 <rdar://problem/25463193> 6 7 Reviewed by Alex Christensen. 8 9 * Configurations/FeatureDefines.xcconfig: 10 1 11 2016-04-05 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig
r198475 r199062 177 177 ENABLE_WEBASSEMBLY = ; 178 178 ENABLE_WEBGL = ENABLE_WEBGL; 179 ENABLE_WEBGL2 = ;179 ENABLE_WEBGL2 = ENABLE_WEBGL2; 180 180 ENABLE_WEB_ANIMATIONS = ENABLE_WEB_ANIMATIONS; 181 181 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO;
Note:
See TracChangeset
for help on using the changeset viewer.