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:
vincentliu
2016-05-19 13:01:26 +08:00
parent 260887d32a
commit 2fabbfa7e6
2 changed files with 3 additions and 1 deletions

View File

@@ -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());