Changeset 267613 in webkit
- Timestamp:
- Sep 25, 2020, 5:41:37 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 11 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/webgl/conformance/extensions/oes-fbo-render-mipmap-expected.txt (added)
-
LayoutTests/webgl/conformance/extensions/oes-fbo-render-mipmap.html (added)
-
LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-fbo-render-mipmap.html (added)
-
Source/WebCore/CMakeLists.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/Sources.txt (modified) (2 diffs)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (2 diffs)
-
Source/WebCore/bindings/js/JSDOMConvertWebGL.cpp (modified) (2 diffs)
-
Source/WebCore/html/canvas/OESFBORenderMipmap.cpp (added)
-
Source/WebCore/html/canvas/OESFBORenderMipmap.h (added)
-
Source/WebCore/html/canvas/OESFBORenderMipmap.idl (added)
-
Source/WebCore/html/canvas/WebGLExtension.h (modified) (1 diff)
-
Source/WebCore/html/canvas/WebGLRenderingContext.cpp (modified) (3 diffs)
-
Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (modified) (4 diffs)
-
Source/WebCore/html/canvas/WebGLRenderingContextBase.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r267607 r267613 1 2020-09-25 James Darpinian <jdarpinian@chromium.org> 2 3 Support OES_fbo_render_mipmap 4 https://bugs.webkit.org/show_bug.cgi?id=217003 5 6 Reviewed by Kenneth Russell. 7 8 * webgl/conformance/extensions/oes-fbo-render-mipmap-expected.txt: Added. 9 * webgl/conformance/extensions/oes-fbo-render-mipmap.html: Added. 10 * webgl/resources/webgl_test_files/conformance/extensions/oes-fbo-render-mipmap.html: Added. 11 1 12 2020-09-25 Karl Rackler <rackler@apple.com> 2 13 -
trunk/Source/WebCore/CMakeLists.txt
r267601 r267613 1455 1455 html/canvas/EXTsRGB.cpp 1456 1456 html/canvas/OESElementIndexUint.cpp 1457 html/canvas/OESFBORenderMipmap.cpp 1457 1458 html/canvas/OESStandardDerivatives.cpp 1458 1459 html/canvas/OESTextureFloat.cpp … … 1512 1513 html/canvas/EXTsRGB.idl 1513 1514 html/canvas/OESElementIndexUint.idl 1515 html/canvas/OESFBORenderMipmap.idl 1514 1516 html/canvas/OESStandardDerivatives.idl 1515 1517 html/canvas/OESTextureFloat.idl -
trunk/Source/WebCore/ChangeLog
r267612 r267613 1 2020-09-25 James Darpinian <jdarpinian@chromium.org> 2 3 Support OES_fbo_render_mipmap 4 https://bugs.webkit.org/show_bug.cgi?id=217003 5 6 Reviewed by Kenneth Russell. 7 8 Test: webgl/conformance/extensions/oes-fbo-render-mipmap.html 9 10 * CMakeLists.txt: 11 * DerivedSources.make: 12 * Sources.txt: 13 * WebCore.xcodeproj/project.pbxproj: 14 * bindings/js/JSDOMConvertWebGL.cpp: 15 (WebCore::convertToJSValue): 16 * html/canvas/OESFBORenderMipmap.cpp: Added. 17 (WebCore::OESFBORenderMipmap::OESFBORenderMipmap): 18 (WebCore::OESFBORenderMipmap::getName const): 19 (WebCore::OESFBORenderMipmap::supported): 20 * html/canvas/OESFBORenderMipmap.h: Added. 21 * html/canvas/OESFBORenderMipmap.idl: Added. 22 * html/canvas/WebGLExtension.h: 23 * html/canvas/WebGLRenderingContext.cpp: 24 (WebCore::WebGLRenderingContext::getExtension): 25 (WebCore::WebGLRenderingContext::getSupportedExtensions): 26 * html/canvas/WebGLRenderingContextBase.cpp: 27 (WebCore::WebGLRenderingContextBase::framebufferTexture2D): 28 (WebCore::WebGLRenderingContextBase::extensionIsEnabled): 29 (WebCore::WebGLRenderingContextBase::loseExtensions): 30 * html/canvas/WebGLRenderingContextBase.h: 31 1 32 2020-09-25 Tim Horton <timothy_horton@apple.com> 2 33 -
trunk/Source/WebCore/DerivedSources.make
r267601 r267613 958 958 $(WebCore)/html/canvas/ImageSmoothingQuality.idl \ 959 959 $(WebCore)/html/canvas/OESElementIndexUint.idl \ 960 $(WebCore)/html/canvas/OESFBORenderMipmap.idl \ 960 961 $(WebCore)/html/canvas/OESStandardDerivatives.idl \ 961 962 $(WebCore)/html/canvas/OESTextureFloat.idl \ -
trunk/Source/WebCore/Sources.txt
r267601 r267613 1257 1257 html/canvas/ImageBitmapRenderingContext.cpp 1258 1258 html/canvas/OESElementIndexUint.cpp 1259 html/canvas/OESFBORenderMipmap.cpp 1259 1260 html/canvas/OESStandardDerivatives.cpp 1260 1261 html/canvas/OESTextureFloat.cpp … … 3134 3135 JSNotificationPermissionCallback.cpp 3135 3136 JSOESElementIndexUint.cpp 3137 JSOESFBORenderMipmap.cpp 3136 3138 JSOESStandardDerivatives.cpp 3137 3139 JSOESTextureFloat.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r267602 r267613 12078 12078 A37049DA251D4B8E009BA1B3 /* EXTFloatBlend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EXTFloatBlend.h; sourceTree = "<group>"; }; 12079 12079 A37049DB251D4B8F009BA1B3 /* EXTFloatBlend.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EXTFloatBlend.cpp; sourceTree = "<group>"; }; 12080 A37A42CE251EB99600F75AFF /* OESFBORenderMipmap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OESFBORenderMipmap.cpp; sourceTree = "<group>"; }; 12081 A37A42D0251EB99600F75AFF /* OESFBORenderMipmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OESFBORenderMipmap.h; sourceTree = "<group>"; }; 12082 A37A42D1251EB99700F75AFF /* OESFBORenderMipmap.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = OESFBORenderMipmap.idl; sourceTree = "<group>"; }; 12080 12083 A3AF9D81203252EE006CAD06 /* UserAgentCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UserAgentCocoa.mm; sourceTree = "<group>"; }; 12081 12084 A3AF9D8220325324006CAD06 /* UserAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserAgent.h; sourceTree = "<group>"; }; … … 19413 19416 7E5D7A74161D3F8F00896C34 /* OESElementIndexUint.h */, 19414 19417 E176580C180DF3A0005A96D1 /* OESElementIndexUint.idl */, 19418 A37A42CE251EB99600F75AFF /* OESFBORenderMipmap.cpp */, 19419 A37A42D0251EB99600F75AFF /* OESFBORenderMipmap.h */, 19420 A37A42D1251EB99700F75AFF /* OESFBORenderMipmap.idl */, 19415 19421 9001773D12E0347800648462 /* OESStandardDerivatives.cpp */, 19416 19422 9001773E12E0347800648462 /* OESStandardDerivatives.h */, -
trunk/Source/WebCore/bindings/js/JSDOMConvertWebGL.cpp
r267601 r267613 40 40 #include "JSEXTsRGB.h" 41 41 #include "JSOESElementIndexUint.h" 42 #include "JSOESFBORenderMipmap.h" 42 43 #include "JSOESStandardDerivatives.h" 43 44 #include "JSOESTextureFloat.h" … … 193 194 case WebGLExtension::OESElementIndexUintName: 194 195 return toJS(&lexicalGlobalObject, &globalObject, static_cast<OESElementIndexUint&>(extension)); 196 case WebGLExtension::OESFBORenderMipmapName: 197 return toJS(&lexicalGlobalObject, &globalObject, static_cast<OESFBORenderMipmap&>(extension)); 195 198 case WebGLExtension::WebGLDebugRendererInfoName: 196 199 return toJS(&lexicalGlobalObject, &globalObject, static_cast<WebGLDebugRendererInfo&>(extension)); -
trunk/Source/WebCore/html/canvas/WebGLExtension.h
r267601 r267613 57 57 WebGLDrawBuffersName, 58 58 OESElementIndexUintName, 59 OESFBORenderMipmapName, 59 60 WebGLCompressedTextureATCName, 60 61 WebGLCompressedTextureETCName, -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r267601 r267613 45 45 #include "InspectorInstrumentation.h" 46 46 #include "OESElementIndexUint.h" 47 #include "OESFBORenderMipmap.h" 47 48 #include "OESStandardDerivatives.h" 48 49 #include "OESTextureFloat.h" … … 160 161 ENABLE_IF_REQUESTED(OESVertexArrayObject, m_oesVertexArrayObject, "OES_vertex_array_object", enableSupportedExtension("GL_OES_vertex_array_object"_s)); 161 162 ENABLE_IF_REQUESTED(OESElementIndexUint, m_oesElementIndexUint, "OES_element_index_uint", enableSupportedExtension("GL_OES_element_index_uint"_s)); 163 ENABLE_IF_REQUESTED(OESFBORenderMipmap, m_oesFBORenderMipmap, "OES_fbo_render_mipmap", enableSupportedExtension("GL_OES_fbo_render_mipmap"_s)); 162 164 ENABLE_IF_REQUESTED(WebGLLoseContext, m_webglLoseContext, "WEBGL_lose_context", true); 163 165 ENABLE_IF_REQUESTED(WebGLCompressedTextureASTC, m_webglCompressedTextureASTC, "WEBGL_compressed_texture_astc", WebGLCompressedTextureASTC::supported(*this)); … … 235 237 if (m_context->getExtensions().supports("GL_OES_element_index_uint"_s)) 236 238 result.append("OES_element_index_uint"_s); 239 if (m_context->getExtensions().supports("GL_OES_fbo_render_mipmap"_s)) 240 result.append("OES_fbo_render_mipmap"_s); 237 241 result.append("WEBGL_lose_context"_s); 238 242 if (WebGLCompressedTextureASTC::supported(*this)) -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r267601 r267613 63 63 #include "NotImplemented.h" 64 64 #include "OESElementIndexUint.h" 65 #include "OESFBORenderMipmap.h" 65 66 #include "OESStandardDerivatives.h" 66 67 #include "OESTextureFloat.h" … … 2725 2726 if (isContextLostOrPending() || !validateFramebufferFuncParameters("framebufferTexture2D", target, attachment)) 2726 2727 return; 2727 if (level && isWebGL1() ) {2728 synthesizeGLError(GraphicsContextGL::INVALID_VALUE, "framebufferTexture2D", "level not 0 ");2728 if (level && isWebGL1() && !m_oesFBORenderMipmap) { 2729 synthesizeGLError(GraphicsContextGL::INVALID_VALUE, "framebufferTexture2D", "level not 0 and OES_fbo_render_mipmap not enabled"); 2729 2730 return; 2730 2731 } … … 3724 3725 CHECK_EXTENSION(m_oesVertexArrayObject, "OES_vertex_array_object"); 3725 3726 CHECK_EXTENSION(m_oesElementIndexUint, "OES_element_index_uint"); 3727 CHECK_EXTENSION(m_oesFBORenderMipmap, "OES_fbo_render_mipmap"); 3726 3728 CHECK_EXTENSION(m_webglLoseContext, "WEBGL_lose_context"); 3727 3729 CHECK_EXTENSION(m_webglDebugRendererInfo, "WEBGL_debug_renderer_info"); … … 7792 7794 LOSE_EXTENSION(m_oesVertexArrayObject); 7793 7795 LOSE_EXTENSION(m_oesElementIndexUint); 7796 LOSE_EXTENSION(m_oesFBORenderMipmap); 7794 7797 LOSE_EXTENSION(m_webglLoseContext); 7795 7798 LOSE_EXTENSION(m_webglDebugRendererInfo); -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h
r267601 r267613 87 87 class OESVertexArrayObject; 88 88 class OESElementIndexUint; 89 class OESFBORenderMipmap; 89 90 #if ENABLE(OFFSCREEN_CANVAS) 90 91 class OffscreenCanvas; … … 678 679 RefPtr<OESVertexArrayObject> m_oesVertexArrayObject; 679 680 RefPtr<OESElementIndexUint> m_oesElementIndexUint; 681 RefPtr<OESFBORenderMipmap> m_oesFBORenderMipmap; 680 682 RefPtr<WebGLLoseContext> m_webglLoseContext; 681 683 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
Note:
See TracChangeset
for help on using the changeset viewer.