Bug 1693241 - Add gfxCriticalNote to RenderTextureHostSWGL::LockSWGLCompositeSurface() r=mattwoodrow

It helps to understand Bug 1693208.

Differential Revision: https://phabricator.services.mozilla.com/D105418
This commit is contained in:
sotaro 2021-02-17 10:42:51 +00:00
parent d0560f6a2e
commit 3d8c6a3911

View File

@ -5,6 +5,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "RenderTextureHostSWGL.h"
#include "mozilla/gfx/Logging.h"
#include "RenderThread.h"
namespace mozilla {
@ -170,6 +172,7 @@ bool RenderTextureHostSWGL::LockSWGLCompositeSurface(
case gfx::SurfaceFormat::B8G8R8X8:
break;
default:
gfxCriticalNote << "Unhandled external image format: " << GetFormat();
MOZ_RELEASE_ASSERT(false, "Unhandled external image format");
break;
}