gfx/thebes/gfxFailure.h
author Gregory Szorc <gps@mozilla.com>
Tue, 24 Sep 2013 15:05:43 -0700
changeset 162321 b51710e0e485a5c4edccd438ddb2a46bd7f0e91f
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 169692 e8931a0bb4217c87a20e99400cbaf5154252fe39
permissions -rw-r--r--
Bug 901990 - Part 3: Don't purge _tests during PGO builds; r=glandium CLOSED TREE

/* vim: se cin sw=2 ts=2 et : */
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsString.h"
#include "nsIGfxInfo.h"
#include "nsServiceManagerUtils.h"

namespace mozilla {
    namespace gfx {
        inline
        void LogFailure(const nsCString &failure) {
            nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
            gfxInfo->LogFailure(failure);
        }
    }
}