mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
96a8082a23
Pixel 6, 7, and 8 devices running Android 14 are affected by a bug where video frames with SMPTE 432 color primaries are rendered incorrectly when sampled from an external texture in GLES. To work around this, we force these frames to be converted to RGB using BT709 colorspace instead. While this won't look exactly right, it is much better than the current situation. When we detect that a frame is decoded with that color space on an affected device, we set a "ForceBT709" flag which gets passed through to webrender as a new ImageBufferKind. Rendering this ImageBufferKind is handled via a new shader feature TEXTURE_EXTERNAL_BT709, which works much like the existing TEXTURE_EXTERNAL feature, but additionally uses the EXT_YUV_TARGET extension to override the colorspace transformation. This approach could be extended in the future to handle additional colorspace transformations, but for now only handles the one required to workaround this particular driver bug. Differential Revision: https://phabricator.services.mozilla.com/D195800 |
||
---|---|---|
.. | ||
gtest | ||
AndroidNativeWindow.h | ||
AndroidSurfaceTexture.cpp | ||
AndroidSurfaceTexture.h | ||
AutoMappable.h | ||
Colorspaces.cpp | ||
Colorspaces.h | ||
ForceDiscreteGPUHelperCGL.h | ||
GfxTexturesReporter.cpp | ||
GfxTexturesReporter.h | ||
GLBlitHelper.cpp | ||
GLBlitHelper.h | ||
GLBlitHelperD3D.cpp | ||
GLConsts.h | ||
GLConsts.py | ||
GLContext.cpp | ||
GLContext.h | ||
GLContextCGL.h | ||
GLContextEAGL.h | ||
GLContextEGL.h | ||
GLContextFeatures.cpp | ||
GLContextGLX.h | ||
GLContextProvider.h | ||
GLContextProviderCGL.mm | ||
GLContextProviderEAGL.mm | ||
GLContextProviderEGL.cpp | ||
GLContextProviderGLX.cpp | ||
GLContextProviderImpl.h | ||
GLContextProviderLinux.cpp | ||
GLContextProviderNull.cpp | ||
GLContextProviderWGL.cpp | ||
GLContextSymbols.h | ||
GLContextTypes.h | ||
GLContextWGL.h | ||
GLDebugUtils.cpp | ||
GLDebugUtils.h | ||
GLDefs.h | ||
GLLibraryEGL.cpp | ||
GLLibraryEGL.h | ||
GLLibraryLoader.cpp | ||
GLLibraryLoader.h | ||
GLReadTexImageHelper.cpp | ||
GLReadTexImageHelper.h | ||
GLScreenBuffer.cpp | ||
GLScreenBuffer.h | ||
GLTextureImage.cpp | ||
GLTextureImage.h | ||
GLTypes.h | ||
GLUploadHelpers.cpp | ||
GLUploadHelpers.h | ||
GLVendor.h | ||
GLXLibrary.h | ||
HeapCopyOfStackArray.h | ||
moz.build | ||
MozFramebuffer.cpp | ||
MozFramebuffer.h | ||
ScopedGLHelpers.cpp | ||
ScopedGLHelpers.h | ||
SharedSurface.cpp | ||
SharedSurface.h | ||
SharedSurfaceAndroidHardwareBuffer.cpp | ||
SharedSurfaceAndroidHardwareBuffer.h | ||
SharedSurfaceANGLE.cpp | ||
SharedSurfaceANGLE.h | ||
SharedSurfaceD3D11Interop.cpp | ||
SharedSurfaceD3D11Interop.h | ||
SharedSurfaceDMABUF.cpp | ||
SharedSurfaceDMABUF.h | ||
SharedSurfaceEGL.cpp | ||
SharedSurfaceEGL.h | ||
SharedSurfaceGL.cpp | ||
SharedSurfaceGL.h | ||
SharedSurfaceIO.cpp | ||
SharedSurfaceIO.h | ||
SurfaceTypes.h | ||
WGLLibrary.h |