Bug 1167356 - Use gfxWarning to workaround Windows bustage. a=bustage
--- a/gfx/2d/SourceSurfaceD2D1.cpp
+++ b/gfx/2d/SourceSurfaceD2D1.cpp
@@ -153,17 +153,17 @@ DataSourceSurfaceD2D1::Map(MapType aMapT
if (aMapType == MapType::READ) {
options = D2D1_MAP_OPTIONS_READ;
} else {
MOZ_CRASH("No support for Write maps on D2D1 DataSourceSurfaces yet!");
}
D2D1_MAPPED_RECT map;
if (FAILED(mBitmap->Map(D2D1_MAP_OPTIONS_READ, &map))) {
- gfxCriticalError() << "Failed to map bitmap.";
+ gfxWarning() << "Failed to map bitmap.";
return false;
}
aMappedSurface->mData = map.bits;
aMappedSurface->mStride = map.pitch;
mIsMapped = true;
return true;
}
@@ -189,16 +189,16 @@ void
DataSourceSurfaceD2D1::EnsureMapped()
{
// Do not use GetData() after having used Map!
MOZ_ASSERT(!mIsMapped);
if (mMapped) {
return;
}
if (FAILED(mBitmap->Map(D2D1_MAP_OPTIONS_READ, &mMap))) {
- gfxCriticalError() << "Failed to map bitmap.";
+ gfxWarning() << "Failed to map bitmap.";
return;
}
mMapped = true;
}
}
}