论坛首页 移动开发技术论坛

Android 模拟器不支持TextureView预览问题笔记

浏览 556 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2020-04-22  

分析记录:

2020-04-20 目前分析到 使用TextureView时,Native层会创建两个GLConsumer,这个是与SurfaceView不同的地方,此种情况下,系统多次报:

04-22 01:07:06.459  2650  2668 D GLConsumer: [SurfaceTexture-0-2650-0] updateTexImage: no buffers were available

日志记录如下:

Line 16686: 04-22 01:07:06.451  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 2

Line 16691: 04-22 01:07:06.451  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 2

Line 16733: 04-22 01:07:06.459  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 2

Line 16738: 04-22 01:07:06.459  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 2

Line 18491: 04-22 01:07:07.433  2650  2670 I ConsumerBase: [SurfaceTexture-1-2650-1] onFrameAvailable

Line 18558: 04-22 01:07:07.446  2650  2701 I ConsumerBase: [SurfaceTexture-0-2650-0] onFrameAvailable

Line 18567: 04-22 01:07:07.446  2650  2701 I ConsumerBase: [SurfaceTexture-1-2650-1] mConsumer->acquireBuffer: 0

Line 18597: 04-22 01:07:07.453  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 0

Line 18654: 04-22 01:07:07.455  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 2

Line 18686: 04-22 01:07:07.457  2650  2701 I ConsumerBase: [SurfaceTexture-0-2650-0] onFrameAvailable

Line 18728: 04-22 01:07:07.469  2650  2668 I ConsumerBase: [SurfaceTexture-0-2650-0] mConsumer->acquireBuffer: 0

     目前怀疑是因为两个消费者造成Buffer不够用造成,明日继续分析

论坛首页 移动开发技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics