// // Copyright 2015 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // EGLBackwardsCompatibleContextTest.cpp.cpp: // Coverage of the EGL_ANGLE_create_context_backwards_compatible extension #include <vector> #include "test_utils/ANGLETest.h" #include "test_utils/angle_test_configs.h" #include "test_utils/angle_test_instantiate.h" namespace angle { namespace { std::pair<EGLint, EGLint> GetCurrentContextVersion() { … } } // anonymous namespace class EGLBackwardsCompatibleContextTest : public ANGLETest<> { … }; // Test extension presence. All backends should expose this extension TEST_P(EGLBackwardsCompatibleContextTest, PbufferDifferentConfig) { … } // Test that disabling backwards compatibility will always return the expected context version TEST_P(EGLBackwardsCompatibleContextTest, BackwardsCompatibleDisbled) { … } // Test that if it's possible to create an ES3 context, requesting an ES2 context should return an // ES3 context as well TEST_P(EGLBackwardsCompatibleContextTest, BackwardsCompatibleEnabledES3) { … } // Test that if ES1.1 is supported and a 1.0 context is requested, an ES 1.1 context is returned TEST_P(EGLBackwardsCompatibleContextTest, BackwardsCompatibleEnabledES1) { … } ANGLE_INSTANTIATE_TEST(…); } // namespace angle