In order to implement platform specific create behavior this function should be platform specific. We need this to be able to do platform specific initialization based on the provided flags, when implementing GraphicsSurfaceGLX.
Created attachment 151487 [details] patch for review.
Comment on attachment 151487 [details] patch for review. Maybe we should combine this with the GLX patch? Otherwise it's hard to see the whole picture.
Comment on attachment 151487 [details] patch for review. As discussed on IRC I will instead make the functions platformCreate / platformImport static and return the instance back from there.
no separate patch needed.