2010-04-26 19:09:44 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 04:12:37 -07: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-26 19:09:44 -07:00
|
|
|
|
|
|
|
#include "GLContextProvider.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gl {
|
|
|
|
|
|
|
|
already_AddRefed<GLContext>
|
2010-07-18 22:01:14 -07:00
|
|
|
GLContextProviderNull::CreateForWindow(nsIWidget*)
|
2010-04-26 19:09:44 -07:00
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2010-04-26 19:09:44 -07:00
|
|
|
}
|
|
|
|
|
2010-06-23 02:24:31 -07:00
|
|
|
already_AddRefed<GLContext>
|
2010-07-18 22:01:14 -07:00
|
|
|
GLContextProviderNull::CreateOffscreen(const gfxIntSize&,
|
2013-02-13 15:26:24 -08:00
|
|
|
const SurfaceCaps&,
|
|
|
|
ContextFlags)
|
2010-06-23 02:24:31 -07:00
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2010-06-23 02:24:31 -07:00
|
|
|
}
|
|
|
|
|
2013-04-16 19:21:06 -07:00
|
|
|
SharedTextureHandle
|
2013-09-04 05:14:52 -07:00
|
|
|
GLContextProviderNull::CreateSharedHandle(SharedTextureShareType shareType,
|
2013-04-16 19:21:06 -07:00
|
|
|
void* buffer,
|
2013-09-04 05:14:52 -07:00
|
|
|
SharedTextureBufferType bufferType)
|
2013-04-16 19:21:06 -07:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-04-30 22:03:27 -07:00
|
|
|
already_AddRefed<gfxASurface>
|
2013-09-04 05:14:52 -07:00
|
|
|
GLContextProviderNull::GetSharedHandleAsSurface(SharedTextureShareType shareType,
|
2013-04-30 22:03:27 -07:00
|
|
|
SharedTextureHandle sharedHandle)
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2013-02-13 15:26:24 -08:00
|
|
|
GLContext*
|
|
|
|
GLContextProviderNull::GetGlobalContext(ContextFlags)
|
2010-04-26 19:09:44 -07:00
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2010-04-26 19:09:44 -07:00
|
|
|
}
|
|
|
|
|
2010-07-19 21:05:42 -07:00
|
|
|
void
|
|
|
|
GLContextProviderNull::Shutdown()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-04-26 19:09:44 -07:00
|
|
|
} /* namespace gl */
|
|
|
|
} /* namespace mozilla */
|