| 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 05b44afeecfd5cafb1e9c844f7cd0c26a4a74dae..f0cadf1f159ca0097aea03fad942042e996bd938 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
| @@ -131,6 +131,7 @@
|
| switches::kGpuDriverBugWorkarounds,
|
| base::IntToString(gpu::SET_TEXTURE_FILTER_BEFORE_GENERATING_MIPMAP));
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoderWithCommandLine(init, &command_line);
|
|
|
| @@ -640,6 +641,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, CompressedTexImage2DBucketBadBucket) {
|
| InitState init;
|
| init.extensions = "GL_EXT_texture_compression_s3tc";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -677,6 +679,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, CompressedTexImage2DS3TC) {
|
| InitState init;
|
| init.extensions = "GL_EXT_texture_compression_s3tc";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
| const uint32 kBucketId = 123;
|
| @@ -1087,6 +1090,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, DefaultTextureZero) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| BindTexture cmd1;
|
| @@ -1104,6 +1108,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, DefaultTextureBGR) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -1126,6 +1131,7 @@
|
| // Test that default texture 0 is immutable.
|
| TEST_P(GLES2DecoderManualInitTest, NoDefaultTexParameterf) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| {
|
| @@ -1157,6 +1163,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, NoDefaultTexParameteri) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| {
|
| @@ -1188,6 +1195,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, NoDefaultTexParameterfv) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| {
|
| @@ -1227,6 +1235,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, NoDefaultTexParameteriv) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| {
|
| @@ -1266,6 +1275,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, NoDefaultTexImage2D) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| BindTexture cmd1;
|
| @@ -1290,6 +1300,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, NoDefaultTexSubImage2D) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| InitDecoder(init);
|
|
|
| BindTexture cmd1;
|
| @@ -1317,6 +1328,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, ARBTextureRectangleBindTexture) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_rectangle";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
| EXPECT_CALL(*gl_, BindTexture(GL_TEXTURE_RECTANGLE_ARB, kNewServiceId));
|
| @@ -1334,6 +1346,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, ARBTextureRectangleGetBinding) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_rectangle";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
| DoBindTexture(
|
| @@ -1364,6 +1377,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, ARBTextureRectangleTextureDefaults) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_rectangle";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
| DoBindTexture(
|
| @@ -1380,6 +1394,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, ARBTextureRectangleTextureParam) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_rectangle";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -1428,6 +1443,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, ARBTextureRectangleTextureParamInvalid) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_rectangle";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -1460,6 +1476,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, ARBTextureRectangleTexImage2DError) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_rectangle";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -1615,6 +1632,7 @@
|
| switches::kGpuDriverBugWorkarounds,
|
| base::IntToString(gpu::TEXSUBIMAGE2D_FASTER_THAN_TEXIMAGE2D));
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoderWithCommandLine(init, &command_line);
|
| DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId);
|
| @@ -1816,6 +1834,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, CompressedImage2DMarksTextureAsCleared) {
|
| InitState init;
|
| init.extensions = "GL_EXT_texture_compression_s3tc";
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -2644,6 +2663,7 @@
|
| TEST_P(GLES2DecoderManualInitTest, TexImage2DFloatConvertsFormatDesktop) {
|
| InitState init;
|
| init.extensions = "GL_ARB_texture_float";
|
| + init.gl_version = "2.1";
|
| InitDecoder(init);
|
| DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId);
|
| DoTexImage2D(
|
| @@ -2722,6 +2742,7 @@
|
| void CheckFormats(const char* extension, const GLenum* formats, int count) {
|
| InitState init;
|
| init.extensions = extension;
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
| @@ -2793,6 +2814,7 @@
|
|
|
| TEST_P(GLES2DecoderManualInitTest, GetNoCompressedTextureFormats) {
|
| InitState init;
|
| + init.gl_version = "3.0";
|
| init.bind_generates_resource = true;
|
| InitDecoder(init);
|
|
|
|
|