#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.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"
#define SHADER(src) …
namespace gpu {
static const uint16_t kRedMask = …;
static const uint16_t kGreenMask = …;
static const uint16_t kBlueMask = …;
static const uint16_t kPalette[] = …;
static const unsigned kBlockSize = …;
static const unsigned kPaletteSize = …;
static const unsigned kTextureWidth = …;
static const unsigned kTextureHeight = …;
static const char* extension(GLenum format) { … }
static const uint16_t kColor0 = …;
static const uint16_t kColor1 = …;
static GLuint LoadCompressedTexture(const void* data,
GLsizeiptr size,
GLenum format,
GLsizei width,
GLsizei height) { … }
GLuint LoadTextureDXT1(bool alpha) { … }
GLuint LoadTextureDXT3() { … }
GLuint LoadTextureDXT5() { … }
static void ToRGB888(uint16_t rgb565, uint8_t rgb888[]) { … }
class CompressedTextureTest : public ::testing::TestWithParam<GLenum> { … };
TEST_P(CompressedTextureTest, Draw) { … }
static const GLenum kFormats[] = …;
INSTANTIATE_TEST_SUITE_P(…);
}