Bug 1167557 - Log for Null surface in SurfaceCache::Insert. r=milan
--- gfx/2d/Logging.h | 1 + image/SurfaceCache.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
This commit is contained in:
@@ -1036,7 +1036,8 @@ SurfaceCache::Insert(imgFrame* aSurface,
|
||||
|
||||
// Refuse null surfaces.
|
||||
if (!aSurface) {
|
||||
MOZ_CRASH("Don't pass null surfaces to SurfaceCache::Insert");
|
||||
gfxDevCrash(LogReason::InvalidCacheSurface) << "Null surface in SurfaceCache::Insert";
|
||||
return InsertOutcome::FAILURE;
|
||||
}
|
||||
|
||||
MutexAutoLock lock(sInstance->GetMutex());
|
||||
|
||||
Reference in New Issue
Block a user