зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset cdb79df7a017 (bug 1763781) for causing wpt failures on canvas-display-p3-drawImage-ImageBitmap-video.html. CLOSED TREE
This commit is contained in:
Родитель
4c3f881374
Коммит
20fcb7c0fa
|
@ -1038,16 +1038,7 @@ MediaResult FFmpegVideoDecoder<LIBAV_VER>::CreateImage(
|
|||
|
||||
RefPtr<VideoData> v;
|
||||
#ifdef CUSTOMIZED_BUFFER_ALLOCATION
|
||||
bool requiresCopy = false;
|
||||
# ifdef XP_MACOSX
|
||||
// Bug 1765388: macOS needs to generate a MacIOSurfaceImage in order to
|
||||
// properly display HDR video. The later call to ::CreateAndCopyData does
|
||||
// that. If this shared memory buffer path also generated a
|
||||
// MacIOSurfaceImage, then we could use it for HDR.
|
||||
requiresCopy = (b.mColorDepth != gfx::ColorDepth::COLOR_8);
|
||||
# endif
|
||||
if (mIsUsingShmemBufferForDecode && *mIsUsingShmemBufferForDecode &&
|
||||
!requiresCopy) {
|
||||
if (mIsUsingShmemBufferForDecode && *mIsUsingShmemBufferForDecode) {
|
||||
RefPtr<ImageBufferWrapper> wrapper = static_cast<ImageBufferWrapper*>(
|
||||
mLib->av_buffer_get_opaque(mFrame->buf[0]));
|
||||
MOZ_ASSERT(wrapper);
|
||||
|
|
Загрузка…
Ссылка в новой задаче