Implement and use SetFramebufferSizeCallback for browser path.