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

Commit 592c09c4 authored by Arpit Singh's avatar Arpit Singh Committed by Android (Google) Code Review
Browse files

Merge "[CD cursor] Pass topology to InputDispatcher" into main

parents 502812e2 e5fe89c1
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(