mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
0cffcc7253
When Surfaces/SurfaceTextures are allocated they are given a handle, which is a monotonically increasing 32-bit integer. To render Surfaces, we typically pass the Surface handle to the compositor, which then looks it up in a map to find the corresponding SurfaceTexture. Following a GPU process restart, content may be left with stale handles referencing SurfaceTextures which no longer exist. Once new SurfaceTextures are allocated, these stale handles may reference new SurfaceTextures with no relation to the old handle. This can lead to rendering the wrong texture. Additionally, we may crash when allocating "sync" SurfaceTextures, as the previous sync texture for a certain handle may not have been released yet. To fix this, this patch combines the existing handle with a new ID uniquely identifying the process in which the SurfaceTexture was allocated (or 0 for the parent process). We use a monotonically increasing value rather than the pid to guard against the new GPU process possibly having the same pid as the previous instance. We combine these two 32-bit integers and use the resulting 64-bit integer as the Surface handle. Differential Revision: https://phabricator.services.mozilla.com/D150963 |
||
---|---|---|
.. | ||
AndroidNativeWindow.h | ||
AndroidSurfaceTexture.cpp | ||
AndroidSurfaceTexture.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 | ||
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 |