2010-04-27 02:09:44 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 11:12:37 +00:00
|
|
|
* 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/. */
|
2010-04-27 02:09:44 +00:00
|
|
|
|
|
|
|
#include "GLContextProvider.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gl {
|
|
|
|
|
|
|
|
already_AddRefed<GLContext>
|
2010-07-19 05:01:14 +00:00
|
|
|
GLContextProviderNull::CreateForWindow(nsIWidget*)
|
2010-04-27 02:09:44 +00:00
|
|
|
{
|
2012-07-30 14:20:58 +00:00
|
|
|
return nullptr;
|
2010-04-27 02:09:44 +00:00
|
|
|
}
|
|
|
|
|
2014-04-15 14:57:26 +00:00
|
|
|
already_AddRefed<GLContext>
|
|
|
|
GLContextProviderNull::CreateWrappingExisting(void*, void*)
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2010-06-23 09:24:31 +00:00
|
|
|
already_AddRefed<GLContext>
|
2010-07-19 05:01:14 +00:00
|
|
|
GLContextProviderNull::CreateOffscreen(const gfxIntSize&,
|
2013-02-13 23:26:24 +00:00
|
|
|
const SurfaceCaps&,
|
|
|
|
ContextFlags)
|
2010-06-23 09:24:31 +00:00
|
|
|
{
|
2012-07-30 14:20:58 +00:00
|
|
|
return nullptr;
|
2010-06-23 09:24:31 +00:00
|
|
|
}
|
|
|
|
|
2013-02-13 23:26:24 +00:00
|
|
|
GLContext*
|
|
|
|
GLContextProviderNull::GetGlobalContext(ContextFlags)
|
2010-04-27 02:09:44 +00:00
|
|
|
{
|
2012-07-30 14:20:58 +00:00
|
|
|
return nullptr;
|
2010-04-27 02:09:44 +00:00
|
|
|
}
|
|
|
|
|
2010-07-20 04:05:42 +00:00
|
|
|
void
|
|
|
|
GLContextProviderNull::Shutdown()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-04-27 02:09:44 +00:00
|
|
|
} /* namespace gl */
|
|
|
|
} /* namespace mozilla */
|