Gray Mackall a191754c35
Make HCPP upgrading work for vd/tlhc (#181024)
Before the change we get a NPE when trying to cast the return of the
create message as an int.

There are also some more changes needed on top of the change to the
cast, making the `TextureAndroidViewController` aware of if it is using
HCPP and exposing that bool for use in
`packages/flutter/lib/src/rendering/platform_view.dart`

This is untested because it currently isn't possible to use HCPP without
uncommenting the code block here:
2beceb6b1c/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/PlatformViewsChannel.java (L95)

It will be tested in the follow up pr which adds the cli flag,
uncomments the block, and adds golden tests that we can upgrade each of
the 3 legacy modes.

Fixes https://github.com/flutter/flutter/issues/181000

---------

Co-authored-by: Gray Mackall <mackall@google.com>
2026-02-11 22:31:25 +00:00
..