• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program Tester Core
3  * ----------------------------------------
4  *
5  * Copyright 2014 The Android Open Source Project
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *//*!
20  * \file
21  * \brief Null GL Context Factory.
22  *//*--------------------------------------------------------------------*/
23 
24 #include "tcuNullContextFactory.hpp"
25 #include "tcuNullRenderContext.hpp"
26 
27 namespace tcu
28 {
29 namespace null
30 {
31 
NullGLContextFactory(void)32 NullGLContextFactory::NullGLContextFactory (void)
33 	: glu::ContextFactory("null", "Null Render Context")
34 {
35 }
36 
createContext(const glu::RenderConfig & config,const tcu::CommandLine &,const glu::RenderContext *) const37 glu::RenderContext* NullGLContextFactory::createContext (const glu::RenderConfig& config, const tcu::CommandLine&, const glu::RenderContext*) const
38 {
39 	return new RenderContext(config);
40 }
41 
42 } // null
43 } // tcu
44