2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2012-05-21 15:12:37 +04: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 06:09:44 +04:00
|
|
|
|
|
|
|
#include "GLContextProvider.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gl {
|
|
|
|
|
2016-07-25 21:41:00 +03:00
|
|
|
using namespace mozilla::widget;
|
|
|
|
|
|
|
|
already_AddRefed<GLContext> GLContextProviderNull::CreateForCompositorWidget(
|
2021-04-07 10:04:43 +03:00
|
|
|
CompositorWidget* aCompositorWidget, bool aHardwareWebRender,
|
2019-03-13 03:17:01 +03:00
|
|
|
bool aForceAccelerated) {
|
2016-07-25 21:41:00 +03:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2016-06-18 02:16:59 +03:00
|
|
|
already_AddRefed<GLContext> GLContextProviderNull::CreateHeadless(
|
2020-06-15 21:25:55 +03:00
|
|
|
const GLContextCreateDesc&, nsACString* const out_failureId) {
|
2016-06-18 02:16:59 +03:00
|
|
|
*out_failureId = "FEATURE_FAILURE_NULL"_ns;
|
2012-07-30 18:20:58 +04:00
|
|
|
return nullptr;
|
2010-06-23 13:24:31 +04:00
|
|
|
}
|
|
|
|
|
2015-01-28 23:10:23 +03:00
|
|
|
GLContext* GLContextProviderNull::GetGlobalContext() { return nullptr; }
|
2010-04-27 06:09:44 +04:00
|
|
|
|
2010-07-20 08:05:42 +04:00
|
|
|
void GLContextProviderNull::Shutdown() {}
|
|
|
|
|
2010-04-27 06:09:44 +04:00
|
|
|
} /* namespace gl */
|
|
|
|
} /* namespace mozilla */
|