Created attachment 467185 [details] Test case When MiniBrowser is run in WebKit2 mode with GPUP WebGL enabled, the attached test case causes IOSurfaces to be continuously allocated because they're in use too long. Increasing maxReusedDrawingBuffers in Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.h causes the drawing buffers to be recycled. (Locally, I increased them to 6, but a smaller number would probably work.) To reproduce: 1) Serve up the attached test case on localhost 2) Add an fprintf to stderr in this code which calls EGL_CreatePbufferFromClientBuffer: https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm#L625 3) Tools/WebKit/build-webkit 4) Tools/WebKit/run-minibrowser Note that there's a continuous stream of output.
Note: discovered while investigating ANGLE/Metal issue in Chromium: crbug.com/1468346 .
<rdar://problem/113659847>