Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4180a168 authored by Santos Cordon's avatar Santos Cordon Committed by Android (Google) Code Review
Browse files

Merge "Allow VirtualDisplay's to use hardware composer when in VR mode even if...

Merge "Allow VirtualDisplay's to use hardware composer when in VR mode even if physical composer does not support them."
parents d468bb72 d38ec4e2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1903,7 +1903,8 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
                        // etc.) but no internal state (i.e. a DisplayDevice).
                        if (state.surface != NULL) {

                            if (mUseHwcVirtualDisplays) {
                            // Allow VR composer to use virtual displays.
                            if (mUseHwcVirtualDisplays || mHwc == mVrHwc) {
                                int width = 0;
                                int status = state.surface->query(
                                        NATIVE_WINDOW_WIDTH, &width);