Bug 1167356 - Use gfxWarning to workaround Windows bustage. a=bustage
authorAndrew Comminos <acomminos@mozilla.com>
Fri, 19 Jun 2015 13:16:40 -0400
changeset 201236 db38541b30d8f5c73d35898429be24a87b6ac7dd
parent 201235 61bfd82996e47ab28b1174e67457755fe28c4f89
child 201237 e9d051380cfa6e134b029c079f2269430dcd5769
push id292
push userryanvm@gmail.com
push dateFri, 19 Jun 2015 17:17:19 +0000
treeherdermozilla-esr31@db38541b30d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1167356
milestone31.7.0
Bug 1167356 - Use gfxWarning to workaround Windows bustage. a=bustage
gfx/2d/SourceSurfaceD2D1.cpp
--- 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;
 }
 
 }
 }