Currently we are attempting to launch HCPP as a universal upgrade, where when a manifest flag is set, all PVs are auto upgraded to HCPP.
Mechanically this is done by intercepting the create request in PlatformViewsChannel.java
https://github.com/flutter/flutter/blob/master/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/PlatformViewsChannel.java#L94
Inspecting the state of HCPP support, and returning HCPP if it is supported/enabled. However, this currently results in a NPE because the return is null.
This works with HC, but the other modes expect a texture id return, and then do stuff with that texture id. Returning null results in a NPE. Need to fix this.
Currently we are attempting to launch HCPP as a universal upgrade, where when a manifest flag is set, all PVs are auto upgraded to HCPP.
Mechanically this is done by intercepting the create request in PlatformViewsChannel.java
https://github.com/flutter/flutter/blob/master/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/PlatformViewsChannel.java#L94
Inspecting the state of HCPP support, and returning HCPP if it is supported/enabled. However, this currently results in a NPE because the return is null.
This works with HC, but the other modes expect a texture id return, and then do stuff with that texture id. Returning null results in a NPE. Need to fix this.