forked from firka/flutter
Normally when platform view is clipped to a simple rect we rely on clipping to container layer bounds. However when the clip rect is rotated the container layer is expanded accordingly and clipping to path must be used instead. Fixes https://github.com/flutter/flutter/issues/128175