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

Commit e5fe89c1 authored by Arpit Singh's avatar Arpit Singh
Browse files

[CD cursor] Pass topology to InputDispatcher

Bug: 367661487
Test: manual and presubmit
Flag: com.android.input.flags.connected_displays_cursor
Change-Id: I6ea44346479581c685526c97710a205cf6f8e190
parent 3ac88b40
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -668,8 +668,10 @@ void NativeInputManager::setDisplayTopology(JNIEnv* env, jobject topologyGraph)
    }

    // TODO(b/383092013): Add topology validation
    mInputManager->getChoreographer().setDisplayTopology(
            android_hardware_display_DisplayTopologyGraph_toNative(env, topologyGraph));
    const DisplayTopologyGraph displayTopology =
            android_hardware_display_DisplayTopologyGraph_toNative(env, topologyGraph);
    mInputManager->getDispatcher().setDisplayTopology(displayTopology);
    mInputManager->getChoreographer().setDisplayTopology(displayTopology);
}

base::Result<std::unique_ptr<InputChannel>> NativeInputManager::createInputChannel(