Disable HardwareBuffer backed Platform Views temporarily (flutter/engine#45986)

Necessary to unblock the GPay release
This commit is contained in:
John McCutchan
2023-09-18 12:36:16 -07:00
committed by GitHub
parent 4081d7d574
commit c74acc92aa

View File

@@ -147,6 +147,8 @@ public class PlatformViewsController implements PlatformViewsAccessibilityDelega
// Whether software rendering is used.
private boolean usesSoftwareRendering = false;
private static boolean enableHardwareBufferRenderingTarget = false;
private final PlatformViewsChannel.PlatformViewsHandler channelHandler =
new PlatformViewsChannel.PlatformViewsHandler() {
@@ -968,7 +970,7 @@ public class PlatformViewsController implements PlatformViewsAccessibilityDelega
private static PlatformViewRenderTarget makePlatformViewRenderTarget(
TextureRegistry textureRegistry) {
if (Build.VERSION.SDK_INT >= 29) {
if (enableHardwareBufferRenderingTarget && Build.VERSION.SDK_INT >= 29) {
final TextureRegistry.ImageTextureEntry textureEntry = textureRegistry.createImageTexture();
return new ImageReaderPlatformViewRenderTarget(textureEntry);
}