#include <gtest/gtest.h>
#include <unordered_set>
#include <vector>
#include "common/debug.h"
#include "test_utils/ANGLETest.h"
#include "test_utils/angle_test_configs.h"
#include "test_utils/angle_test_instantiate.h"
#include "util/OSWindow.h"
#include "util/random_utils.h"
usingnamespaceangle;
namespace
{
bool IsRGBA16FConfig(EGLDisplay display, EGLConfig config)
{ … }
bool IsRGB10_A2Config(EGLDisplay display, EGLConfig config)
{ … }
bool IsMultisampledConfig(EGLDisplay display, EGLConfig config)
{ … }
bool ShouldSkipConfig(EGLDisplay display, EGLConfig config, bool windowSurfaceTest)
{ … }
std::vector<EGLConfig> GetConfigs(EGLDisplay display)
{ … }
PlatformParameters FromRenderer(EGLint renderer)
{ … }
std::string EGLConfigName(EGLDisplay display, EGLConfig config)
{ … }
const std::array<EGLint, 3> kContextAttribs = …;
class EGLContextCompatibilityTest : public ANGLETestBase, public testing::Test
{ … };
class EGLContextCompatibilityTest_WindowSameConfig : public EGLContextCompatibilityTest
{ … };
class EGLContextCompatibilityTest_PbufferSameConfig : public EGLContextCompatibilityTest
{ … };
class EGLContextCompatibilityTest_WindowDifferentConfig : public EGLContextCompatibilityTest
{ … };
class EGLContextCompatibilityTest_PbufferDifferentConfig : public EGLContextCompatibilityTest
{ … };
}
void RegisterContextCompatibilityTests()
{ … }