Bug 1874684 - Part 28: Return DateDuration from DifferenceISODateTime. r=mgaudet
[gecko.git] / gfx / gl / GLContextProviderNull.cpp
blob558abed19fa3c011fa4ba24df405fad55deefdb2
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"
8 namespace mozilla {
9 namespace gl {
11 using namespace mozilla::widget;
13 already_AddRefed<GLContext> GLContextProviderNull::CreateForCompositorWidget(
14 CompositorWidget* aCompositorWidget, bool aHardwareWebRender,
15 bool aForceAccelerated) {
16 return nullptr;
19 already_AddRefed<GLContext> GLContextProviderNull::CreateHeadless(
20 const GLContextCreateDesc&, nsACString* const out_failureId) {
21 *out_failureId = "FEATURE_FAILURE_NULL"_ns;
22 return nullptr;
25 GLContext* GLContextProviderNull::GetGlobalContext() { return nullptr; }
27 void GLContextProviderNull::Shutdown() {}
29 } /* namespace gl */
30 } /* namespace mozilla */