gfx/gl/GLContextProviderNull.cpp
author Andrea Marchesini <amarchesini@mozilla.com>
Mon, 18 Feb 2013 06:59:08 -0500
changeset 122238 a09e3d0f005d2e67faa6dcce33ba0275a2ba6a2c
parent 121840 25ba41772e0fcc72cd319edabd7fd2dff96449aa
child 122451 b46c006a7696832b2763b13f3934a226510db373
permissions -rw-r--r--
Bug 838559 - Convert HTMLMenuElement to WebIDL. r=Ms2ger, r=peterv

/* -*- 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 */