https://kotlinlang.org logo
#compose
Title
# compose
t

tad

08/31/2021, 9:09 PM
Any plans to hook up
Surface
to Compose? Would be useful for, say, camerax.
r

romainguy

08/31/2021, 9:30 PM
You mean 
SurfaceView
? Not the Material Design
Surface
t

tad

08/31/2021, 9:30 PM
Yes.
r

romainguy

08/31/2021, 9:37 PM
Currently you should use
SurfaceView
🙂
t

tad

08/31/2021, 9:37 PM
Hah, I know.
r

romainguy

08/31/2021, 9:37 PM
More precisely, this is something I’d like to see eventually but this is not a priority because
SurfaceView
and
TextureView
work for those specific cases (which are fairly uncommon compared to all the other components)
t

tad

08/31/2021, 9:38 PM
An abstraction over "platform-specific hardware-backed display buffer" would be useful for desktop as well.
or more accurately, "opaque display buffer"
r

romainguy

08/31/2021, 9:41 PM
Agreed
(although it quickly gets messy on desktop, esp. Linux)
t

tad

08/31/2021, 9:47 PM
Wayland makes it nicer with EGL buffers, but yeah
r

romainguy

08/31/2021, 9:47 PM
I’m mad at Wayland right now 🙂
(also it doesn’t help because the user may or may not use Wayland)
t

tad

08/31/2021, 9:48 PM
Everyone's mad at Wayland right now... I rather enjoy it myself.
😂 1
r

romainguy

08/31/2021, 9:49 PM
I’m mad at it because it doesn’t implement EGL properly