gfx/gl/GLContextProviderNull.cpp
author Ryan VanderMeulen <ryanvm@gmail.com>
Wed, 13 Feb 2013 21:39:07 -0500
changeset 121840 25ba41772e0fcc72cd319edabd7fd2dff96449aa
parent 121814 38c7d7a7f58629f1dca230687f9223818dd0f0a6
child 122451 b46c006a7696832b2763b13f3934a226510db373
permissions -rw-r--r--
Backed out changeset 38c7d7a7f586 (bug 716859) for B2G reftest failures on a CLOSED TREE.

/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * 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 "GLContextProvider.h"

namespace mozilla {
namespace gl {

already_AddRefed<GLContext>
GLContextProviderNull::CreateForWindow(nsIWidget*)
{
    return nullptr;
}

already_AddRefed<GLContext>
GLContextProviderNull::CreateOffscreen(const gfxIntSize&,
                                       const ContextFormat&,
                                       const ContextFlags)
{
    return nullptr;
}

GLContext *
GLContextProviderNull::GetGlobalContext()
{
    return nullptr;
}

void
GLContextProviderNull::Shutdown()
{
}

} /* namespace gl */
} /* namespace mozilla */