Bug 1301357: Diagnostic patch only. Check what depth/mask we are dealing with in case we fail. r?lsalzman draft
authorMilan Sreckovic <milan@mozilla.com>
Wed, 28 Sep 2016 16:43:08 -0400
changeset 418620 83a82ba7f77e9dcb9082e053b2187a55aebd2d9f
parent 417914 66a77b9bfe5dcacd50eccf85de7c0e7e15ce0ffd
child 532394 4ececdf611a98518305ced5166bb2a9fb702680f
push id30732
push usermsreckovic@mozilla.com
push dateWed, 28 Sep 2016 20:43:38 +0000
reviewerslsalzman
bugs1301357
milestone52.0a1
Bug 1301357: Diagnostic patch only. Check what depth/mask we are dealing with in case we fail. r?lsalzman MozReview-Commit-ID: DBukPs56Iax
widget/gtk/WindowSurfaceProvider.cpp
--- a/widget/gtk/WindowSurfaceProvider.cpp
+++ b/widget/gtk/WindowSurfaceProvider.cpp
@@ -89,17 +89,17 @@ WindowSurfaceProvider::StartRemoteDrawin
     mWindowSurface = CreateWindowSurface();
     if (!mWindowSurface)
       return nullptr;
   }
 
   *aBufferMode = BufferMode::BUFFER_NONE;
   RefPtr<DrawTarget> dt = nullptr;
   if (!(dt = mWindowSurface->Lock(aInvalidRegion))) {
-    gfxWarningOnce() << "Failed to lock WindowSurface, falling back to XPutImage backend.";
+      gfxWarningOnce() << "Failed to lock WindowSurface, falling back to XPutImage backend: Mask (" << gfx::hexa(mXVisual->red_mask) << ", " << gfx::hexa(mXVisual->green_mask) << ", " << gfx::hexa(mXVisual->blue_mask) << "), depth: " << mXDepth;
     mWindowSurface = MakeUnique<WindowSurfaceX11Image>(mXDisplay, mXWindow, mXVisual, mXDepth);
   }
   return dt.forget();
 }
 
 void
 WindowSurfaceProvider::EndRemoteDrawingInRegion(gfx::DrawTarget* aDrawTarget,
                                               LayoutDeviceIntRegion& aInvalidRegion)