Title: [270699] trunk
Revision
270699
Author
[email protected]
Date
2020-12-11 12:09:38 -0800 (Fri, 11 Dec 2020)

Log Message

[WinCairo] Enable accelerated WebGL canvas
https://bugs.webkit.org/show_bug.cgi?id=219768

Reviewed by Don Olmstead.

Source/WebCore:

TextureMapper has TextureMapperGCGLPlatformLayer that is a
PlatformLayer for WebGL.

* html/canvas/GPUBasedCanvasRenderingContext.h (isAccelerated):
Return true for WinCairo port.

Source/WebKit:

prepareForRendering should be called before calling
flushPendingLayerChanges to make the GL context current because it
uses OpenGL API.

* WebProcess/WebPage/CoordinatedGraphics/LayerTreeHostTextureMapper.cpp:
(WebKit::LayerTreeHost::compositeLayersToContext):
(WebKit::LayerTreeHost::flushAndRenderLayers):

LayoutTests:

* platform/wincairo/TestExpectations: Skip some WebGL tests
because WinCairo DRT and WTR don't support pixel dump yet.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (270698 => 270699)


--- trunk/LayoutTests/ChangeLog	2020-12-11 20:06:50 UTC (rev 270698)
+++ trunk/LayoutTests/ChangeLog	2020-12-11 20:09:38 UTC (rev 270699)
@@ -1,5 +1,15 @@
 2020-12-11  Fujii Hironori  <[email protected]>
 
+        [WinCairo] Enable accelerated WebGL canvas
+        https://bugs.webkit.org/show_bug.cgi?id=219768
+
+        Reviewed by Don Olmstead.
+
+        * platform/wincairo/TestExpectations: Skip some WebGL tests
+        because WinCairo DRT and WTR don't support pixel dump yet.
+
+2020-12-11  Fujii Hironori  <[email protected]>
+
         [TextureMapper] REGRESION(r269570): mask layer doesn't clip descendent layers
         https://bugs.webkit.org/show_bug.cgi?id=219136
         <rdar://problem/71742605>

Modified: trunk/LayoutTests/platform/wincairo/TestExpectations (270698 => 270699)


--- trunk/LayoutTests/platform/wincairo/TestExpectations	2020-12-11 20:06:50 UTC (rev 270698)
+++ trunk/LayoutTests/platform/wincairo/TestExpectations	2020-12-11 20:09:38 UTC (rev 270699)
@@ -1311,6 +1311,14 @@
 
 imported/blink/compositing/video/video-controls-layer-creation-squashing.html [ Skip ]
 
+# WinCairo DRT and WTR don't support pixel dump yet
+webkit.org/b/215041 webgl/smell-test.html [ Skip ]
+webkit.org/b/215041 webgl/webgl-backing-store-size-update.html [ Skip ]
+webkit.org/b/215041 webgl/webgl-border.html [ Skip ]
+webkit.org/b/215041 webgl/webgl-box-shadow.html [ Skip ]
+webkit.org/b/215041 webgl/webgl-padding.html [ Skip ]
+webkit.org/b/215041 webgl/webgl-texture-image-buffer-reuse.html [ Skip ]
+
 ################################################################################
 ##########################   End Compositing Issues   ##########################
 ################################################################################

Modified: trunk/Source/WebCore/ChangeLog (270698 => 270699)


--- trunk/Source/WebCore/ChangeLog	2020-12-11 20:06:50 UTC (rev 270698)
+++ trunk/Source/WebCore/ChangeLog	2020-12-11 20:09:38 UTC (rev 270699)
@@ -1,5 +1,18 @@
 2020-12-11  Fujii Hironori  <[email protected]>
 
+        [WinCairo] Enable accelerated WebGL canvas
+        https://bugs.webkit.org/show_bug.cgi?id=219768
+
+        Reviewed by Don Olmstead.
+
+        TextureMapper has TextureMapperGCGLPlatformLayer that is a
+        PlatformLayer for WebGL.
+
+        * html/canvas/GPUBasedCanvasRenderingContext.h (isAccelerated):
+        Return true for WinCairo port.
+
+2020-12-11  Fujii Hironori  <[email protected]>
+
         [TextureMapper] REGRESION(r269570): mask layer doesn't clip descendent layers
         https://bugs.webkit.org/show_bug.cgi?id=219136
         <rdar://problem/71742605>

Modified: trunk/Source/WebCore/html/canvas/GPUBasedCanvasRenderingContext.h (270698 => 270699)


--- trunk/Source/WebCore/html/canvas/GPUBasedCanvasRenderingContext.h	2020-12-11 20:06:50 UTC (rev 270698)
+++ trunk/Source/WebCore/html/canvas/GPUBasedCanvasRenderingContext.h	2020-12-11 20:09:38 UTC (rev 270699)
@@ -41,7 +41,7 @@
 
     bool isAccelerated() const override
     {
-#if PLATFORM(WIN)
+#if PLATFORM(WIN) && USE(CA)
         // FIXME: Implement accelerated canvas on Windows.
         return false;
 #else

Modified: trunk/Source/WebKit/ChangeLog (270698 => 270699)


--- trunk/Source/WebKit/ChangeLog	2020-12-11 20:06:50 UTC (rev 270698)
+++ trunk/Source/WebKit/ChangeLog	2020-12-11 20:09:38 UTC (rev 270699)
@@ -1,3 +1,18 @@
+2020-12-11  Fujii Hironori  <[email protected]>
+
+        [WinCairo] Enable accelerated WebGL canvas
+        https://bugs.webkit.org/show_bug.cgi?id=219768
+
+        Reviewed by Don Olmstead.
+
+        prepareForRendering should be called before calling
+        flushPendingLayerChanges to make the GL context current because it
+        uses OpenGL API.
+
+        * WebProcess/WebPage/CoordinatedGraphics/LayerTreeHostTextureMapper.cpp:
+        (WebKit::LayerTreeHost::compositeLayersToContext):
+        (WebKit::LayerTreeHost::flushAndRenderLayers):
+
 2020-12-10  Jiewen Tan  <[email protected]>
 
         [WebAuthn] Adopt new UI for the Platform Authenticator makeCredential flow

Modified: trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHostTextureMapper.cpp (270698 => 270699)


--- trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHostTextureMapper.cpp	2020-12-11 20:06:50 UTC (rev 270698)
+++ trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHostTextureMapper.cpp	2020-12-11 20:09:38 UTC (rev 270699)
@@ -60,9 +60,6 @@
 
 void LayerTreeHost::compositeLayersToContext()
 {
-    if (!prepareForRendering())
-        return;
-
     IntSize windowSize = expandedIntSize(m_rootLayer->size());
     glViewport(0, 0, windowSize.width(), windowSize.height());
 
@@ -197,6 +194,9 @@
 
     m_webPage.corePage()->isolatedUpdateRendering();
 
+    if (!prepareForRendering())
+        return;
+
     if (!flushPendingLayerChanges())
         return;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to