Chris Fillmore
04/13/2021, 12:38 AMSurfaceView.lockHardwareCanvas()
. I didn’t see anything here about it:
https://developer.android.com/jetpack/compose/graphicsNader Jawad
04/13/2021, 2:53 AMChris Fillmore
04/13/2021, 6:29 PM@Composable
to support rendering local device camera preview, and allow drawing/overlay on top. There are potentially a lot of ways I could go with this and perhaps the question of hardware accelerated Canvas is not important.Nader Jawad
04/13/2021, 6:31 PMChris Fillmore
04/13/2021, 6:34 PMSurfaceViewRenderer
(basically a webrtc SurfaceView that can render OpenGL textures). But I am also considering bypassing the WebRTC libs’ capture/render code completely, and write my own capturer, which would remove the need for SurfaceViewRenderer.Chris Fillmore
04/13/2021, 6:35 PMSurfaceView
(or perhaps look at CameraX) to show the local preview, and use regular Composables to draw the overlayChris Fillmore
04/13/2021, 6:35 PMChris Fillmore
04/13/2021, 6:38 PMAndroidView(factory = { mySurfaceView })
Nader Jawad
04/13/2021, 6:39 PMChris Fillmore
04/13/2021, 6:40 PM