1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "GLContextProvider.h"
11 using namespace mozilla::widget
;
13 already_AddRefed
<GLContext
> GLContextProviderNull::CreateForCompositorWidget(
14 CompositorWidget
* aCompositorWidget
, bool aHardwareWebRender
,
15 bool aForceAccelerated
) {
19 already_AddRefed
<GLContext
> GLContextProviderNull::CreateHeadless(
20 const GLContextCreateDesc
&, nsACString
* const out_failureId
) {
21 *out_failureId
= "FEATURE_FAILURE_NULL"_ns
;
25 GLContext
* GLContextProviderNull::GetGlobalContext() { return nullptr; }
27 void GLContextProviderNull::Shutdown() {}
30 } /* namespace mozilla */