Title: [292504] trunk/Source/WebCore
Revision
292504
Author
[email protected]
Date
2022-04-06 14:01:08 -0700 (Wed, 06 Apr 2022)

Log Message

Stop using the shared IOSurfacePool for WebGL
https://bugs.webkit.org/show_bug.cgi?id=238835

Reviewed by Kimmo Kinnunen.

Opt WebGL out of using the IOSurfacePool for its buffers; this would have almost never
used a surface from the pool, because only RemoteLayerBackingStore put surfaces in the
pool so it would be rare for the size to match. In addition, the pool has insufficient
guarantees about surface state.

* platform/graphics/cocoa/GraphicsContextGLCocoa.mm:
(WebCore::GraphicsContextGLCocoa::allocateAndBindDisplayBufferBacking):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (292503 => 292504)


--- trunk/Source/WebCore/ChangeLog	2022-04-06 20:50:29 UTC (rev 292503)
+++ trunk/Source/WebCore/ChangeLog	2022-04-06 21:01:08 UTC (rev 292504)
@@ -1,3 +1,18 @@
+2022-04-06  Simon Fraser  <[email protected]>
+
+        Stop using the shared IOSurfacePool for WebGL
+        https://bugs.webkit.org/show_bug.cgi?id=238835
+
+        Reviewed by Kimmo Kinnunen.
+
+        Opt WebGL out of using the IOSurfacePool for its buffers; this would have almost never
+        used a surface from the pool, because only RemoteLayerBackingStore put surfaces in the
+        pool so it would be rare for the size to match. In addition, the pool has insufficient
+        guarantees about surface state.
+
+        * platform/graphics/cocoa/GraphicsContextGLCocoa.mm:
+        (WebCore::GraphicsContextGLCocoa::allocateAndBindDisplayBufferBacking):
+
 2022-04-06  Ada Chan  <[email protected]>
 
         Fix assertion in CSSPropertyAnimationWrapperMap constructor

Modified: trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm (292503 => 292504)


--- trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm	2022-04-06 20:50:29 UTC (rev 292503)
+++ trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm	2022-04-06 21:01:08 UTC (rev 292504)
@@ -574,7 +574,7 @@
 bool GraphicsContextGLCocoa::allocateAndBindDisplayBufferBacking()
 {
     ASSERT(!getInternalFramebufferSize().isEmpty());
-    auto backing = IOSurface::create(&IOSurfacePool::sharedPool(), getInternalFramebufferSize(), DestinationColorSpace::SRGB());
+    auto backing = IOSurface::create(nullptr, getInternalFramebufferSize(), DestinationColorSpace::SRGB());
     if (!backing)
         return false;
     if (m_resourceOwner)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to