I think `EGLViewProtocol` should add a method to get resolution policy, suppose `getResolutionPolicy`, then the method should change to

`view->setDesignResolutionSize(size.height, size.width, view->getResolutionPolicy());`