#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <GLES3/gl3.h>
#include <stdint.h>
#include <algorithm>
#include "base/command_line.h"
#include "build/build_config.h"
#include "gpu/command_buffer/service/service_utils.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"
#define SHADER(Src) …
#define BFE_SHADER(Src) …
namespace {
template <int factor, int index>
float Weight(float [4], float src[4], float src1[4]) { … }
template <int RGBs, int RGBd, int As, int Ad>
void BlendEquationFuncAdd(float dst[4],
float src[4],
float src1[4],
uint8_t result[4]) { … }
}
namespace gpu {
class EXTBlendFuncExtendedTest : public testing::Test { … };
TEST_F(EXTBlendFuncExtendedTest, TestMaxDualSourceDrawBuffers) { … }
class EXTBlendFuncExtendedDrawTest : public testing::TestWithParam<bool> { … };
TEST_P(EXTBlendFuncExtendedDrawTest, ESSL1FragColor) { … }
TEST_P(EXTBlendFuncExtendedDrawTest, ESSL1FragData) { … }
class EXTBlendFuncExtendedES3DrawTest : public EXTBlendFuncExtendedDrawTest { … };
TEST_P(EXTBlendFuncExtendedES3DrawTest, ESSL3Var) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ESSL3BindArrayWithSimpleName) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ESSL3BindSimpleVarAsArrayNoBind) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ESSL3BindArrayAsArray) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ES3Getters) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ES3GettersArray) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ES3Conflicts) { … }
TEST_P(EXTBlendFuncExtendedES3DrawTest, ES3ConflictsArray) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
}