michael@0: /* vim: se cin sw=2 ts=2 et : */ michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef gfxFailure_h_ michael@0: #define gfxFailure_h_ michael@0: michael@0: #include "nsString.h" michael@0: #include "nsIGfxInfo.h" michael@0: #include "nsServiceManagerUtils.h" michael@0: michael@0: namespace mozilla { michael@0: namespace gfx { michael@0: inline michael@0: void LogFailure(const nsCString &failure) { michael@0: nsCOMPtr gfxInfo = do_GetService("@mozilla.org/gfx/info;1"); michael@0: gfxInfo->LogFailure(failure); michael@0: } michael@0: } michael@0: } michael@0: michael@0: #endif // gfxFailure_h_