Chromecast/EXO: Fix ManagedDisplayInfo initialization
* Add rotation information to the ManagedDisplayInfo. Allows clients to be aware of the display rotation and allocate buffers in the native orientation. Buffers in the native orientation can be overlayed by the compositor. * Fix how the ManagedDisplayInfo bounds is updated. display::Display's bounds is in transformed space. ManagedDisplayInfo's bounds is in native display space. Need to un-transform the bounds to report the right information. EXO apps will use this to allocate buffers in the native display scanout orientation, allowing the compositor to skip composition and just overlay the buffer. Bug: b/132813099, b/131769446 Test: Ran wayland_fullscreen_client on device with various orientations. Change-Id: Ibef6e30bf9ce59a4004c1a179b8cefe8ab1866aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636029Reviewed-by:Alex Sakhartchouk <alexst@chromium.org> Commit-Queue: Daniel Nicoara <dnicoara@chromium.org> Cr-Commit-Position: refs/heads/master@{#664437}
Showing
Please register or sign in to comment