tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

GLContextProviderNull.cpp (946B)


      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/. */
      5 
      6 #include "GLContextProvider.h"
      7 
      8 namespace mozilla {
      9 namespace gl {
     10 
     11 using namespace mozilla::widget;
     12 
     13 already_AddRefed<GLContext> GLContextProviderNull::CreateForCompositorWidget(
     14    CompositorWidget* aCompositorWidget, bool aHardwareWebRender,
     15    bool aForceAccelerated) {
     16  return nullptr;
     17 }
     18 
     19 already_AddRefed<GLContext> GLContextProviderNull::CreateHeadless(
     20    const GLContextCreateDesc&, nsACString* const out_failureId) {
     21  *out_failureId = "FEATURE_FAILURE_NULL"_ns;
     22  return nullptr;
     23 }
     24 
     25 GLContext* GLContextProviderNull::GetGlobalContext() { return nullptr; }
     26 
     27 void GLContextProviderNull::Shutdown() {}
     28 
     29 } /* namespace gl */
     30 } /* namespace mozilla */