w3c / mediacapture-fromelement

API to create a MediaStream from Media Element
https://w3c.github.io/mediacapture-fromelement
Other
21 stars 15 forks source link

Add note about Webgl using preserveDrawingBuffer. #75

Closed uysalere closed 5 years ago

uysalere commented 5 years ago

@yellowdoge PTAL.

Pehrsons commented 5 years ago

@uysalere is there a discussion about this somewhere that I missed, or what's the reason this is in the spec? I.e., can't we capture frames from the drawing buffer before it'd normally be thrown away?

My immediate thought is that this seems like an implementation detail that could be avoided.

uysalere commented 5 years ago

It came up in a bug discussion here: https://bugs.chromium.org/p/chromium/issues/detail?id=889385. I am not sure if Firefox supports it. If that is the case, I can dig into where the implementation differs in WebGL code.

Pehrsons commented 5 years ago

Firefox supports it. We do the readback on vsync before swapping buffers IIRC.

Pehrsons commented 5 years ago

@uysalere, ping