// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <stdint.h> #include "gpu/command_buffer/tests/gl_manager.h" #include "gpu/command_buffer/tests/gl_test_utils.h" #include "testing/gtest/include/gtest/gtest.h" namespace gpu { // A collection of tests that exercise the GL_EXT_srgb extension. class GLBGRAMipMapTest : public testing::Test { … }; // Test to ensure that using GL_BGRA as a texture internal format does // not hinder the use of mipmaps. Support for GL_BGRA as an internal format // is required by ES 2.0 (internal format must be equal to external format), // but some desktop GL implementations may not fully support the use of // GL_BGRA. For example, Mesa+Intel does not support mipmapping on textures // that use the GL_BGRA internal format. This test verifies a workaround. TEST_F(GLBGRAMipMapTest, GenerateMipmapsSucceeds) { … } } // namespace gpu