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

Commit a396414e authored by TreeHugger Robot's avatar TreeHugger Robot 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." into oc-dev
parents 10c51c70 5cee136d
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);