gfx/gl/GLContextProviderNull.cpp
author Tooru Fujisawa <arai_a@mac.com>
Sat, 01 Dec 2018 04:52:05 +0900
changeset 505471 66eb1f485c1a3ea81372758bc92292c9428b17cd
parent 505383 6f3709b3878117466168c40affa7bca0b60cf75b
child 521652 a0767cb93359a8c1595d7fba55fa51de3d7f65ed
permissions -rw-r--r--
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp

/* -*- 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 aForceAccelerated) {
  return nullptr;
}

already_AddRefed<GLContext> GLContextProviderNull::CreateForWindow(
    nsIWidget* aWidget, bool aWebRender, bool aForceAccelerated) {
  return nullptr;
}

already_AddRefed<GLContext> GLContextProviderNull::CreateWrappingExisting(
    void*, void*) {
  return nullptr;
}

already_AddRefed<GLContext> GLContextProviderNull::CreateOffscreen(
    const gfx::IntSize&, const SurfaceCaps&, CreateContextFlags,
    nsACString* const out_failureId) {
  *out_failureId = NS_LITERAL_CSTRING("FEATURE_FAILURE_NULL");
  return nullptr;
}

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

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

void GLContextProviderNull::Shutdown() {}

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