0
Files
src/content/app
Kartar Singh a7656a6b30 Create Android InputReceiver on viz
In this change we are doing the following:
* Create Browser side InputTransferToken when surface changed
  notification is received, and the token is stored along with surface
  variant.
* The input transfer token is packed with surface which is returned when
  GpuProcessCallback.getViewSurface is called.
* On VizCompositor thread we call GpuProcessCallback.getViewSurface
  eventually to get the surface and browser input token required for
  creating input receiver. Note CompositorGpu does already make same
  call as root compositor frame sink creation routine, but it was
  decided to do the same on VizCompositor thread for code simplicity,
  instead of plumbing through SurfaceControl back to InputManager on
  VizCompositor from interfaces on CompositorGpu thread.
* At the moment the change doesn't do anything smart with input receiver
  it just gets deleted after creation. In future changes we will be
  adding callbacks to receive input, and pass it to
  RenderWidgetHostViewAndroid on viz.

Bug: b/364201006
Change-Id: Idec88915a0fe66d0cb1d1c6c6d524483d56b8ff3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5872759
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Kartar Singh <kartarsingh@google.com>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Stephen Nusko <nuskos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1366068}
2024-10-09 10:32:54 +00:00
..