Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3416a40

Browse files
johnmccutchanharryterkelsen
authored andcommitted
Disable HardwareBuffer backed Platform Views temporarily (#45986)
Necessary to unblock the GPay release
1 parent e93de4f commit 3416a40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public class PlatformViewsController implements PlatformViewsAccessibilityDelega
147147
// Whether software rendering is used.
148148
private boolean usesSoftwareRendering = false;
149149

150+
private static boolean enableHardwareBufferRenderingTarget = false;
151+
150152
private final PlatformViewsChannel.PlatformViewsHandler channelHandler =
151153
new PlatformViewsChannel.PlatformViewsHandler() {
152154

@@ -968,7 +970,7 @@ private void unlockInputConnection(@NonNull VirtualDisplayController controller)
968970

969971
private static PlatformViewRenderTarget makePlatformViewRenderTarget(
970972
TextureRegistry textureRegistry) {
971-
if (Build.VERSION.SDK_INT >= 29) {
973+
if (enableHardwareBufferRenderingTarget && Build.VERSION.SDK_INT >= 29) {
972974
final TextureRegistry.ImageTextureEntry textureEntry = textureRegistry.createImageTexture();
973975
return new ImageReaderPlatformViewRenderTarget(textureEntry);
974976
}

0 commit comments

Comments
 (0)