File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
shell/platform/android/io/flutter/plugin/platform Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments