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