webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
tcuANGLEPlatform.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_PLATFORM_H_
22 #define TCU_ANGLE_WIN32_PLATFORM_H_
23 
24 #include "tcuDefs.hpp"
25 #include "tcuPlatform.hpp"
26 #include "gluPlatform.hpp"
27 
28 #ifndef _EGLUPLATFORM_HPP
29 # include "egluPlatform.hpp"
30 #endif
31 
33 
34 namespace tcu
35 {
36 
37 class ANGLEPlatform : public tcu::Platform,
38  private glu::Platform,
39  private eglu::Platform
40 {
41  public:
42  ANGLEPlatform();
44 
45  bool processEvents() override;
46 
47  const glu::Platform &getGLPlatform() const override { return static_cast<const glu::Platform&>(*this); }
48  const eglu::Platform &getEGLPlatform() const override { return static_cast<const eglu::Platform&>(*this); }
49 
50  private:
51  EventState mEvents;
52 };
53 
54 } // tcu
55 
56 #endif // TCU_ANGLE_WIN32_PLATFORM_H_
ANGLEPlatform()
Definition: tcuANGLEPlatform.cpp:34
bool processEvents() override
Definition: tcuANGLEPlatform.cpp:107
Definition: tcuANGLENativeDisplayFactory.h:31
Definition: tcuANGLENativeDisplayFactory.cpp:47
const glu::Platform & getGLPlatform() const override
Definition: tcuANGLEPlatform.h:47
const eglu::Platform & getEGLPlatform() const override
Definition: tcuANGLEPlatform.h:48
~ANGLEPlatform()
Definition: tcuANGLEPlatform.cpp:103
Definition: tcuANGLEPlatform.h:37