Revert "Conditionally enable HardwareBuffer backed platform views (#44744)" (flutter/engine#44785)
This reverts commit 4620733d5c.
The https://github.com/flutter/flutter/tree/master/dev/integration_tests/abstract_method_smoke_test test was not rendering the platform view with that change.
This commit is contained in:
@@ -968,12 +968,11 @@ public class PlatformViewsController implements PlatformViewsAccessibilityDelega
|
||||
|
||||
private static PlatformViewRenderTarget makePlatformViewRenderTarget(
|
||||
TextureRegistry textureRegistry) {
|
||||
if (Build.VERSION.SDK_INT >= 29) {
|
||||
// Prefer ImageReader-based backend on versions >= 29.
|
||||
// TODO(johnmccutchan): Enable ImageReaderPlatformViewRenderTarget for public use.
|
||||
if (false) {
|
||||
final TextureRegistry.ImageTextureEntry textureEntry = textureRegistry.createImageTexture();
|
||||
return new ImageReaderPlatformViewRenderTarget(textureEntry);
|
||||
}
|
||||
// Fallback to SurfaceTexture support on old phones.
|
||||
final TextureRegistry.SurfaceTextureEntry textureEntry = textureRegistry.createSurfaceTexture();
|
||||
return new SurfaceTexturePlatformViewRenderTarget(textureEntry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user