#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES
#endif
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <GLES3/gl3.h>
#include <stdint.h>
#include <vector>
#include "build/build_config.h"
#include "gpu/command_buffer/tests/gl_manager.h"
#include "gpu/command_buffer/tests/gl_test_utils.h"
#include "gpu/config/gpu_test_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/extension_set.h"
#include "ui/gl/gl_context.h"
namespace gpu {
class GLClearFramebufferTest : public testing::TestWithParam<bool> { … };
void GLClearFramebufferTest::InitDraw() { … }
void GLClearFramebufferTest::SetDrawColor(GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a) { … }
void GLClearFramebufferTest::SetDrawDepth(GLfloat depth) { … }
void GLClearFramebufferTest::DrawQuad() { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(GLClearFramebufferTest, ClearColor) { … }
TEST_P(GLClearFramebufferTest, ClearColorWithMask) { … }
#if !BUILDFLAG(IS_MAC)
TEST_P(GLClearFramebufferTest, ClearColorWithScissor) { … }
#endif
TEST_P(GLClearFramebufferTest, ClearDepthStencil) { … }
TEST_P(GLClearFramebufferTest, SeparateFramebufferClear) { … }
class ES3ClearBufferTest : public testing::Test { … };
TEST_F(ES3ClearBufferTest, ClearBuffersuiv) { … }
}