Skip to content

Commit

Permalink
Disable HardwareBuffer backed Platform Views temporarily (flutter#45986)
Browse files Browse the repository at this point in the history
Necessary to unblock the GPay release
  • Loading branch information
johnmccutchan authored Sep 18, 2023
1 parent a55da82 commit ab30b68
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down Expand Up @@ -968,7 +970,7 @@ private void unlockInputConnection(@NonNull VirtualDisplayController controller)

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);
}
Expand Down

0 comments on commit ab30b68

Please sign in to comment.