The code for creating an IOSurface based Pbuffer has been extracted into createPbufferAndAttachIOSurface/destroyPbufferAndDetachIOSurface. It should now be adopted by GraphicsContextGLOpenGL::allocateAndBindDisplayBufferBacking() and GraphicsContextGLCVANGLE::attachIOSurfaceToTexture() which have duplicated code now.
<rdar://problem/78721561>