Changeset 271075 in webkit


Ignore:
Timestamp:
Dec 23, 2020 12:06:00 PM (22 months ago)
Author:
Fujii Hironori
Message:

[WinCairo] Enable WebGL 2
https://bugs.webkit.org/show_bug.cgi?id=192314

Reviewed by Kenneth Russell.

.:

  • Source/cmake/OptionsWin.cmake: Turned ENABLE_WEBGL2 on.

Source/WebCore:

  • platform/graphics/texmap/ANGLEContext.cpp:

(WebCore::ANGLEContext::createContext): Added context attributes
for WebGL by copying the code of GraphicsContextGLOpenGLCocoa.mm.

LayoutTests:

  • platform/wincairo/TestExpectations:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r271069 r271075  
     12020-12-23  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo] Enable WebGL 2
     4        https://bugs.webkit.org/show_bug.cgi?id=192314
     5
     6        Reviewed by Kenneth Russell.
     7
     8        * Source/cmake/OptionsWin.cmake: Turned ENABLE_WEBGL2 on.
     9
    1102020-12-23  Monson Shao  <holymonson@gmail.com>
    211
  • trunk/LayoutTests/ChangeLog

    r271072 r271075  
     12020-12-23  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo] Enable WebGL 2
     4        https://bugs.webkit.org/show_bug.cgi?id=192314
     5
     6        Reviewed by Kenneth Russell.
     7
     8        * platform/wincairo/TestExpectations:
     9
    1102020-12-23  Simon Fraser  <simon.fraser@apple.com>
    211
  • trunk/LayoutTests/platform/wincairo/TestExpectations

    r271043 r271075  
    268268webrtc [ Skip ]
    269269
    270 # WEBGL2 is disabled
    271 fast/canvas/webgl/webgl2 [ Skip ]
    272 fast/canvas/webgl/bufferData-offset-length.html [ Skip ]
    273 fast/canvas/webgl/copyBufferSubData.html [ Skip ]
    274 fast/canvas/webgl/getBufferSubData-webgl1.html [ Skip ]
    275 fast/canvas/webgl/webgl2-buffer-targets.html [ Skip ]
    276 fast/canvas/webgl/webgl2-buffers.html [ Skip ]
    277 fast/canvas/webgl/webgl2-context-creation.html [ Skip ]
    278 fast/canvas/webgl/webgl2-getActiveUniforms.html [ Skip ]
    279 fast/canvas/webgl/webgl2-runtime-flag.html [ Skip ]
    280 fast/canvas/webgl/webgl2-texStorage.html [ Skip ]
    281 fast/canvas/webgl/webgl2-texture-upload-enums.html [ Skip ]
    282 inspector/canvas/requestContent-webgl2.html [ Skip ]
    283 inspector/canvas/create-context-webgl2.html [ Skip ]
    284 inspector/canvas/recording-webgl2-snapshots.html [ Skip ]
    285 inspector/canvas/resolveContext-webgl2.html [ Skip ]
    286 inspector/canvas/shaderProgram-add-remove-webgl2.html [ Skip ]
    287 webgl/webgl2-rendering-context-defined.html [ Skip ]
    288 webgl/webgl2-rendering-context-obtain.html [ Skip ]
    289 
    290270# WEBGPU is disabled
    291271webgpu [ Skip ]
     
    455435webkit.org/b/219842 fast/events/wheel/wheel-event-listeners-on-window-made-passive.html [ Skip ]
    456436webkit.org/b/219842 fast/events/wheel/wheel-events-become-non-cancelable.html [ Skip ]
     437
     438# Needs WebGL video texture support
     439webgl/1.0.3/conformance/extensions/oes-texture-float-with-video.html [ Skip ]
     440webgl/1.0.3/conformance/extensions/oes-texture-half-float-with-video.html [ Skip ]
     441webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html [ Skip ]
     442webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html [ Skip ]
     443webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html [ Skip ]
     444webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video.html [ Skip ]
     445webgl/2.0.0/conformance/extensions/oes-texture-float-with-video.html [ Skip ]
     446webgl/2.0.0/conformance/extensions/oes-texture-half-float-with-video.html [ Skip ]
     447webgl/2.0.0/conformance/textures/image_bitmap_from_video [ Skip ]
     448webgl/2.0.0/conformance/textures/video [ Skip ]
     449webgl/2.0.0/conformance2/textures/image_bitmap_from_video [ Skip ]
     450webgl/2.0.0/conformance2/textures/video [ Skip ]
    457451
    458452#//////////////////////////////////////////////////////////////////////////////////////////
     
    12201214http/tests/subresource-integrity [ Skip ]
    12211215http/tests/webarchive [ Skip ]
    1222 http/tests/webgl [ Skip ]
    12231216http/tests/webrtc [ Skip ]
    12241217
     
    17981791userscripts [ Skip ]
    17991792webanimations [ Skip ]
    1800 webgl/2.0.0 [ Skip ]
    1801 webgl/conformance2 [ Skip ]
     1793webgl/2.0.0/conformance/textures/image_bitmap_from_image_bitmap [ Skip ]
     1794webgl/2.0.0/conformance2/textures/image_bitmap_from_image_bitmap [ Skip ]
    18021795workers/bomb.html [ Skip ]
    18031796
     
    18211814[ Debug ] storage/indexeddb/database-odd-names.html [ Failure Pass ]
    18221815[ Debug ] storage/indexeddb/primary-key-unique-to-objectstore.html [ Timeout Pass ]
     1816[ Debug ] webgl/1.0.3/conformance/canvas/drawingbuffer-test.html [ Skip ] # Crash by assertion failure
     1817[ Debug ] webgl/1.0.3/conformance/glsl/bugs/long-expressions-should-not-crash.html [ Slow ]
     1818[ Debug ] webgl/1.0.3/conformance/rendering/many-draw-calls.html [ Slow ]
     1819[ Debug ] webgl/1.0.3/conformance/rendering/multisample-corruption.html [ Slow ]
     1820[ Debug ] webgl/1.0.3/conformance/state/gl-object-get-calls.html [ Slow ]
     1821[ Debug ] webgl/1.0.3/conformance/textures/texture-size-limit.html [ Slow ]
     1822[ Debug ] webgl/2.0.0/conformance/attribs/gl-vertexattribpointer.html [ Slow ]
     1823[ Debug ] webgl/2.0.0/conformance/canvas/drawingbuffer-test.html [ Skip ] # Crash by assertion failure
     1824[ Debug ] webgl/2.0.0/conformance/glsl/bugs/complex-glsl-does-not-crash.html [ Slow ]
     1825[ Debug ] webgl/2.0.0/conformance/glsl/bugs/compound-assignment-type-combination.html [ Slow ]
     1826[ Debug ] webgl/2.0.0/conformance/glsl/bugs/compound-assignment-type-combination.html [ Slow ]
     1827[ Debug ] webgl/2.0.0/conformance/glsl/constructors/glsl-construct-ivec4.html [ Slow ]
     1828[ Debug ] webgl/2.0.0/conformance/glsl/constructors/glsl-construct-vec4.html [ Slow ]
     1829[ Debug ] webgl/2.0.0/conformance/glsl/misc/const-variable-initialization.html [ Slow ]
     1830[ Debug ] webgl/2.0.0/conformance/glsl/misc/const-variable-initialization.html [ Slow ]
     1831[ Debug ] webgl/2.0.0/conformance/glsl/misc/shader-uniform-packing-restrictions.html [ Slow ]
     1832[ Debug ] webgl/2.0.0/conformance/glsl/misc/shader-uniform-packing-restrictions.html [ Slow ]
     1833[ Debug ] webgl/2.0.0/conformance/glsl/misc/struct-nesting-of-variable-names.html [ Slow ]
     1834[ Debug ] webgl/2.0.0/conformance/rendering/many-draw-calls.html [ Slow ]
     1835[ Debug ] webgl/2.0.0/conformance/rendering/multisample-corruption.html [ Slow ]
     1836[ Debug ] webgl/2.0.0/conformance/state/gl-object-get-calls.html [ Slow ]
     1837[ Debug ] webgl/2.0.0/conformance/textures/misc/tex-image-and-sub-image-2d-with-array-buffer-view.html [ Slow ]
     1838[ Debug ] webgl/2.0.0/conformance/textures/misc/tex-image-and-sub-image-2d-with-array-buffer-view.html [ Slow ]
     1839[ Debug ] webgl/2.0.0/conformance2/glsl3/compound-assignment-type-combination.html [ Slow ]
     1840[ Debug ] webgl/2.0.0/conformance2/glsl3/compound-assignment-type-combination.html [ Slow ]
     1841[ Debug ] webgl/2.0.0/conformance2/rendering/blitframebuffer-filter-outofbounds.html [ Slow ]
     1842[ Debug ] webgl/2.0.0/conformance2/textures/misc/copy-texture-image-luma-format.html [ Slow ]
     1843[ Release ] webgl/1.0.3/conformance/canvas/drawingbuffer-test.html [ Failure ]
     1844[ Release ] webgl/2.0.0/conformance/canvas/drawingbuffer-test.html [ Failure ]
    18231845animations/additive-transform-animations.html [ ImageOnlyFailure ]
    18241846animations/needs-layout.html [ ImageOnlyFailure ]
     
    21312153performance-api/paint-timing/performance-observer-first-contentful-paint.html [ Timeout ]
    21322154storage/indexeddb/storage-limit-with-indices.html [ Failure ]
    2133 webgl/1.0.3/conformance/canvas/drawingbuffer-test.html [ Skip ] # Timeout
    21342155webgl/1.0.3/conformance/context/premultiplyalpha-test.html [ Failure ]
    21352156webgl/1.0.3/conformance/extensions/oes-element-index-uint.html [ Failure ]
    2136 webgl/1.0.3/conformance/extensions/oes-texture-float-with-video.html [ Skip ] # Timeout
    2137 webgl/1.0.3/conformance/extensions/oes-texture-half-float-with-video.html [ Skip ] # Timeout
    21382157webgl/1.0.3/conformance/glsl/bugs/array-of-struct-with-int-first-position.html [ Skip ] # This test makes DumpRenderTree process unable to exit
    2139 webgl/1.0.3/conformance/glsl/bugs/long-expressions-should-not-crash.html [ Skip ] # Timeout
    21402158webgl/1.0.3/conformance/more/functions/readPixelsBadArgs.html [ Failure ]
    21412159webgl/1.0.3/conformance/more/functions/texImage2DHTML.html [ Failure ]
    21422160webgl/1.0.3/conformance/more/functions/texSubImage2DHTML.html [ Failure ]
    21432161webgl/1.0.3/conformance/programs/program-test.html [ Failure ]
    2144 webgl/1.0.3/conformance/renderbuffers/framebuffer-object-attachment.html [ Failure ]
    21452162webgl/1.0.3/conformance/textures/default-texture.html [ Failure ]
    2146 webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html [ Skip ] # Timeout
    2147 webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html [ Skip ] # Timeout
    2148 webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html [ Skip ] # Timeout
    2149 webgl/1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-video.html [ Skip ] # Timeout
    21502163webgl/1.0.3/conformance/textures/texture-mips.html [ Pass Failure ]
    21512164webgl/1.0.3/conformance/textures/texture-upload-size.html [ Skip ] # Timeout
    2152 webgl/webgl-vertex-array-object-defined.html [ Failure ]
     2165webgl/1.0.3/conformance/uniforms/uniform-default-values.html [ Failure Pass ]
     2166webgl/2.0.0/conformance/context/premultiplyalpha-test.html [ Failure ]
     2167webgl/2.0.0/conformance/glsl/bugs/conditional-discard-in-loop.html [ Failure ]
     2168webgl/2.0.0/conformance/glsl/bugs/loop-if-loop-gradient.html [ Skip ] # Flaky timeout if it runs with other tests
     2169webgl/2.0.0/conformance/glsl/bugs/qualcomm-crash.html [ Skip ] # Flaky timeout if it runs with other tests
     2170webgl/2.0.0/conformance/glsl/bugs/qualcomm-loop-with-continue-crash.html [ Skip ] # Flaky timeout if it runs with other tests
     2171webgl/2.0.0/conformance/glsl/bugs/sketchfab-lighting-shader-crash.html [ Skip ] # Flaky timeout if it runs with other tests
     2172webgl/2.0.0/conformance/textures/misc/default-texture.html [ Failure ]
     2173webgl/2.0.0/conformance/textures/misc/texture-mips.html [ Failure Pass ]
     2174webgl/2.0.0/conformance/textures/misc/texture-upload-size.html [ Skip ] # Timeout
     2175webgl/2.0.0/conformance2/attribs/gl-vertexattribipointer.html [ Slow Failure ]
     2176webgl/2.0.0/conformance2/buffers/buffer-copying-contents.html [ Failure ]
     2177webgl/2.0.0/conformance2/glsl3/tricky-loop-conditions.html [ Failure ]
     2178webgl/2.0.0/conformance2/query/occlusion-query.html [ Failure ]
     2179webgl/2.0.0/conformance2/rendering/blitframebuffer-stencil-only.html [ Failure ]
     2180webgl/2.0.0/conformance2/rendering/element-index-uint.html [ Failure ]
     2181webgl/2.0.0/conformance2/state/gl-object-get-calls.html [ Slow Failure ]
     2182webgl/2.0.0/conformance2/textures/misc/tex-image-with-bad-args-from-dom-elements.html [ Skip ] # Timeout
     2183webgl/2.0.0/conformance2/transform_feedback/transform_feedback.html [ Skip ] # Timeout and flaky
  • trunk/Source/WebCore/ChangeLog

    r271074 r271075  
     12020-12-23  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo] Enable WebGL 2
     4        https://bugs.webkit.org/show_bug.cgi?id=192314
     5
     6        Reviewed by Kenneth Russell.
     7
     8        * platform/graphics/texmap/ANGLEContext.cpp:
     9        (WebCore::ANGLEContext::createContext): Added context attributes
     10        for WebGL by copying the code of GraphicsContextGLOpenGLCocoa.mm.
     11
    1122020-12-23  Kate Cheney  <katherine_cheney@apple.com>
    213
  • trunk/Source/WebCore/platform/graphics/texmap/ANGLEContext.cpp

    r270899 r271075  
    22 * Copyright (C) 2018 Metrological Group B.V.
    33 * Copyright (C) 2018, 2019 Igalia S.L.
    4  * Copyright (C) 2009-2018 Apple Inc.
     4 * Copyright (C) 2009-2020 Apple Inc.
    55 * Copyright (C) 2020 Sony Interactive Entertainment Inc.
    66 *
     
    123123    contextAttributes.append(EGL_CONTEXT_WEBGL_COMPATIBILITY_ANGLE);
    124124    contextAttributes.append(EGL_TRUE);
     125    // WebGL requires that all resources are cleared at creation.
     126    contextAttributes.append(EGL_ROBUST_RESOURCE_INITIALIZATION_ANGLE);
     127    contextAttributes.append(EGL_TRUE);
     128    // WebGL doesn't allow client arrays.
     129    contextAttributes.append(EGL_CONTEXT_CLIENT_ARRAYS_ENABLED_ANGLE);
     130    contextAttributes.append(EGL_FALSE);
     131    // WebGL doesn't allow implicit creation of objects on bind.
     132    contextAttributes.append(EGL_CONTEXT_BIND_GENERATES_RESOURCE_CHROMIUM);
     133    contextAttributes.append(EGL_FALSE);
     134
    125135    if (strstr(displayExtensions, "EGL_ANGLE_power_preference")) {
    126136        contextAttributes.append(EGL_POWER_PREFERENCE_ANGLE);
  • trunk/Source/cmake/OptionsWin.cmake

    r270175 r271075  
    7272    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_USER_MESSAGE_HANDLERS PRIVATE ON)
    7373    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL PUBLIC ON)
     74    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL2 PUBLIC ON)
    7475
    7576    # Experimental features
Note: See TracChangeset for help on using the changeset viewer.