Support shared resources for decode swap chain |
|
Issue descriptionDecode swap chains don't seem to support shared resources: https://bugs.chromium.org/p/chromium/issues/detail?id=848093#c6 It's necessary to support shared resources for when D3D11 video decoder starts using a separate thread and D3D device. For now, decoder will not add the resource sharing MiscFlags when creating its texture when the decode swap chain experiment is on.
,
Dec 5
> Do we expect it to be busy? i don't know. on one hand, whatever work is on the decoder's thread would have delayed composition anyway. on the other hand, thread hops tend not to work that way in practice. it sounds like a promising direction. > CopyingGLImageDXGI that one might be tricky, since it'll be called from the wrong thread when the (synchronous) copy needs to happen.
,
Dec 5
then again, maybe that's not so bad. i forgot that device contexts don't have thread affinity, so we just need a lock. |
|
►
Sign in to add a comment |
|
Comment 1 by sunn...@chromium.org
, Dec 4