| Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
| index d688bc3ac690d2c35676124a0d177ddf05cb9c74..118244e853430711ed53e5bdca3eb29b8b1e39fe 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
| @@ -3239,6 +3239,39 @@ TEST_P(GLES2DecoderCompressedFormatsTest, GetCompressedTextureFormatsETC1) {
|
| CheckFormats("GL_OES_compressed_ETC1_RGB8_texture", formats, 1);
|
| }
|
|
|
| +TEST_P(GLES2DecoderCompressedFormatsTest, GetCompressedTextureFormatsASTC) {
|
| + const GLenum formats[] = {
|
| + GL_COMPRESSED_RGBA_ASTC_4x4_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_5x4_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_5x5_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_6x5_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_6x6_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_8x5_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_8x6_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_8x8_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_10x5_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_10x6_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_10x8_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_10x10_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_12x10_KHR,
|
| + GL_COMPRESSED_RGBA_ASTC_12x12_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR,
|
| + GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR};
|
| + CheckFormats("GL_KHR_texture_compression_astc_ldr", formats, 28);
|
| +}
|
| +
|
| TEST_P(GLES2DecoderManualInitTest, GetNoCompressedTextureFormats) {
|
| InitState init;
|
| init.bind_generates_resource = true;
|
|
|