2010-04-27 04:09:44 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 12:12:37 +01: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 04:09:44 +02:00
|
|
|
|
|
|
|
#include "GLContextProvider.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gl {
|
|
|
|
|
2016-07-25 14:41:00 -04:00
|
|
|
using namespace mozilla::widget;
|
|
|
|
|
|
|
|
already_AddRefed<GLContext>
|
|
|
|
GLContextProviderNull::CreateForCompositorWidget(CompositorWidget* aCompositorWidget, bool aForceAccelerated)
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2010-04-27 04:09:44 +02:00
|
|
|
already_AddRefed<GLContext>
|
2017-01-13 15:16:52 -05:00
|
|
|
GLContextProviderNull::CreateForWindow(nsIWidget* aWidget,
|
|
|
|
bool aWebRender,
|
|
|
|
bool aForceAccelerated)
|
2010-04-27 04:09:44 +02:00
|
|
|
{
|
2012-07-30 17:20:58 +03:00
|
|
|
return nullptr;
|
2010-04-27 04:09:44 +02:00
|
|
|
}
|
|
|
|
|
2014-04-15 07:57:26 -07:00
|
|
|
already_AddRefed<GLContext>
|
|
|
|
GLContextProviderNull::CreateWrappingExisting(void*, void*)
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2010-06-23 05:24:31 -04:00
|
|
|
already_AddRefed<GLContext>
|
2015-05-28 11:45:33 +02:00
|
|
|
GLContextProviderNull::CreateOffscreen(const gfx::IntSize&,
|
2015-02-12 19:00:41 -08:00
|
|
|
const SurfaceCaps&,
|
2016-06-06 16:52:42 -04:00
|
|
|
CreateContextFlags,
|
2016-06-10 19:01:00 -07:00
|
|
|
nsACString* const out_failureId)
|
2014-08-27 16:16:22 -07:00
|
|
|
{
|
2016-06-10 19:01:00 -07:00
|
|
|
*out_failureId = NS_LITERAL_CSTRING("FEATURE_FAILURE_NULL");
|
2014-08-27 16:16:22 -07:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
already_AddRefed<GLContext>
|
2016-06-17 16:16:59 -07:00
|
|
|
GLContextProviderNull::CreateHeadless(CreateContextFlags, nsACString* const out_failureId)
|
2010-06-23 05:24:31 -04:00
|
|
|
{
|
2016-06-17 16:16:59 -07:00
|
|
|
*out_failureId = NS_LITERAL_CSTRING("FEATURE_FAILURE_NULL");
|
2012-07-30 17:20:58 +03:00
|
|
|
return nullptr;
|
2010-06-23 05:24:31 -04:00
|
|
|
}
|
|
|
|
|
2013-02-13 15:26:24 -08:00
|
|
|
GLContext*
|
2015-01-28 15:10:23 -05:00
|
|
|
GLContextProviderNull::GetGlobalContext()
|
2010-04-27 04:09:44 +02:00
|
|
|
{
|
2012-07-30 17:20:58 +03:00
|
|
|
return nullptr;
|
2010-04-27 04:09:44 +02:00
|
|
|
}
|
|
|
|
|
2010-07-19 21:05:42 -07:00
|
|
|
void
|
|
|
|
GLContextProviderNull::Shutdown()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-04-27 04:09:44 +02:00
|
|
|
} /* namespace gl */
|
|
|
|
} /* namespace mozilla */
|