webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
tcuANGLENativeDisplayFactory.h
Go to the documentation of this file.
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 
21 #ifndef TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
22 #define TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
23 
24 #include "tcuDefs.hpp"
25 #include "egluNativeDisplay.hpp"
26 #include "eglwDefs.hpp"
27 
28 namespace tcu
29 {
30 
32 {
33  public:
35  : mQuit(false)
36  {
37  }
38  bool quitSignaled() const { return mQuit; };
39  void signalQuitEvent() { mQuit = true; };
40 
41  private:
42  bool mQuit;
43 };
44 
45 class ANGLENativeDisplayFactory : public eglu::NativeDisplayFactory
46 {
47  public:
49  const std::string &description,
50  const std::vector<eglw::EGLAttrib> &platformAttributes,
51  EventState *eventState);
52  ~ANGLENativeDisplayFactory() override;
53 
54  eglu::NativeDisplay *createDisplay(const eglw::EGLAttrib* attribList) const override;
55 
56  private:
57  std::vector<eglw::EGLAttrib> mPlatformAttributes;
58 };
59 
60 } // tcu
61 
62 #endif // TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
Definition: tcuANGLENativeDisplayFactory.h:31
void signalQuitEvent()
Definition: tcuANGLENativeDisplayFactory.h:39
std::unique_ptr< webrtc::SessionDescriptionInterface > description
Definition: webrtcsessiondescriptionfactory.cc:67
bool quitSignaled() const
Definition: tcuANGLENativeDisplayFactory.h:38
EGLImageKHR EGLint * name
Definition: eglext.h:851
Definition: tcuANGLENativeDisplayFactory.cpp:47
Definition: tcuANGLENativeDisplayFactory.h:45
EventState()
Definition: tcuANGLENativeDisplayFactory.h:34
GLsizei const GLchar *const * string
Definition: gl2.h:479
#define false
Definition: float-mm.c:5
intptr_t EGLAttrib
Definition: egl.h:255