gfx/gl/GLContextProviderNull.cpp
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Wed, 10 Aug 2022 06:57:06 +0000
changeset 626627 7c06102ca11cdadc7f7e3ca9b481b1a454fa16b4
parent 574666 11fddf9b0949346c7f21e56fdb82c282e4fa009a
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD it -> ef85c29cb0fba370b59afa1ba3cacfd87b4a0e21 pt-BR -> 57874db7771d90c949544fe82b1a2788237a3067

/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * 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/. */

#include "GLContextProvider.h"

namespace mozilla {
namespace gl {

using namespace mozilla::widget;

already_AddRefed<GLContext> GLContextProviderNull::CreateForCompositorWidget(
    CompositorWidget* aCompositorWidget, bool aHardwareWebRender,
    bool aForceAccelerated) {
  return nullptr;
}

already_AddRefed<GLContext> GLContextProviderNull::CreateHeadless(
    const GLContextCreateDesc&, nsACString* const out_failureId) {
  *out_failureId = "FEATURE_FAILURE_NULL"_ns;
  return nullptr;
}

GLContext* GLContextProviderNull::GetGlobalContext() { return nullptr; }

void GLContextProviderNull::Shutdown() {}

} /* namespace gl */
} /* namespace mozilla */