From d720766b64c4866505f14b1ae3ee514642698c57 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 26 Jun 2020 11:18:03 -0700 Subject: [PATCH] Fix ImageReader "unable to acquire a buffer item" warnings in FlutterImageView (flutter/engine#19319) --- .../io/flutter/plugin/platform/PlatformViewsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java index 31fde27d19..03ed6b1d0c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java @@ -611,10 +611,10 @@ public class PlatformViewsController implements PlatformViewsAccessibilityDelega width, height, PixelFormat.RGBA_8888, - 2, + 3, HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE | HardwareBuffer.USAGE_GPU_COLOR_OUTPUT); } else { - return ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, 2); + return ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, 3); } }