Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc |
index bb0286d2a8366378c2fcb322199067c966ce15a7..40e2381020754368c3d19601f89ffc974849b302 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc |
@@ -1820,26 +1820,12 @@ TEST_P(GLES2DecoderWithShaderTest, DrawArraysClearsAfterTexImage2DNULL) { |
DoTexImage2D( |
GL_TEXTURE_2D, 1, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0, 0); |
// Expect 2 levels will be cleared. |
- SetupClearTextureExpectations(kServiceTextureId, |
- kServiceTextureId, |
- GL_TEXTURE_2D, |
- GL_TEXTURE_2D, |
- 0, |
- GL_RGBA, |
- GL_RGBA, |
- GL_UNSIGNED_BYTE, |
- 2, |
- 2); |
- SetupClearTextureExpectations(kServiceTextureId, |
- kServiceTextureId, |
- GL_TEXTURE_2D, |
- GL_TEXTURE_2D, |
- 1, |
- GL_RGBA, |
- GL_RGBA, |
- GL_UNSIGNED_BYTE, |
- 1, |
- 1); |
+ SetupClearTextureExpectations(kServiceTextureId, kServiceTextureId, |
+ GL_TEXTURE_2D, GL_TEXTURE_2D, 0, GL_RGBA, |
+ GL_RGBA, GL_UNSIGNED_BYTE, 0, 0, 2, 2); |
+ SetupClearTextureExpectations(kServiceTextureId, kServiceTextureId, |
+ GL_TEXTURE_2D, GL_TEXTURE_2D, 1, GL_RGBA, |
+ GL_RGBA, GL_UNSIGNED_BYTE, 0, 0, 1, 1); |
SetupExpectationsForApplyingDefaultDirtyState(); |
EXPECT_CALL(*gl_, DrawArrays(GL_TRIANGLES, 0, kNumVertices)) |
.Times(1) |
@@ -1867,26 +1853,12 @@ TEST_P(GLES2DecoderWithShaderTest, DrawElementsClearsAfterTexImage2DNULL) { |
DoTexImage2D( |
GL_TEXTURE_2D, 1, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0, 0); |
// Expect 2 levels will be cleared. |
- SetupClearTextureExpectations(kServiceTextureId, |
- kServiceTextureId, |
- GL_TEXTURE_2D, |
- GL_TEXTURE_2D, |
- 0, |
- GL_RGBA, |
- GL_RGBA, |
- GL_UNSIGNED_BYTE, |
- 2, |
- 2); |
- SetupClearTextureExpectations(kServiceTextureId, |
- kServiceTextureId, |
- GL_TEXTURE_2D, |
- GL_TEXTURE_2D, |
- 1, |
- GL_RGBA, |
- GL_RGBA, |
- GL_UNSIGNED_BYTE, |
- 1, |
- 1); |
+ SetupClearTextureExpectations(kServiceTextureId, kServiceTextureId, |
+ GL_TEXTURE_2D, GL_TEXTURE_2D, 0, GL_RGBA, |
+ GL_RGBA, GL_UNSIGNED_BYTE, 0, 0, 2, 2); |
+ SetupClearTextureExpectations(kServiceTextureId, kServiceTextureId, |
+ GL_TEXTURE_2D, GL_TEXTURE_2D, 1, GL_RGBA, |
+ GL_RGBA, GL_UNSIGNED_BYTE, 0, 0, 1, 1); |
SetupExpectationsForApplyingDefaultDirtyState(); |
EXPECT_CALL(*gl_, |
@@ -2107,26 +2079,14 @@ TEST_P(GLES2DecoderManualInitTest, DrawArraysClearsAfterTexImage2DNULLCubemap) { |
shm_offset); |
} |
// Expect 2 levels will be cleared. |
- SetupClearTextureExpectations(kServiceTextureId, |
- kServiceTextureId, |
+ SetupClearTextureExpectations(kServiceTextureId, kServiceTextureId, |
GL_TEXTURE_CUBE_MAP, |
- GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, |
- 0, |
- GL_RGBA, |
- GL_RGBA, |
- GL_UNSIGNED_BYTE, |
- 2, |
- 2); |
- SetupClearTextureExpectations(kServiceTextureId, |
- kServiceTextureId, |
+ GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, GL_RGBA, |
+ GL_RGBA, GL_UNSIGNED_BYTE, 0, 0, 2, 2); |
+ SetupClearTextureExpectations(kServiceTextureId, kServiceTextureId, |
GL_TEXTURE_CUBE_MAP, |
- GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, |
- 1, |
- GL_RGBA, |
- GL_RGBA, |
- GL_UNSIGNED_BYTE, |
- 1, |
- 1); |
+ GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 1, GL_RGBA, |
+ GL_RGBA, GL_UNSIGNED_BYTE, 0, 0, 1, 1); |
AddExpectationsForSimulatedAttrib0(kNumVertices, 0); |
SetupExpectationsForApplyingDefaultDirtyState(); |
EXPECT_CALL(*gl_, DrawArrays(GL_TRIANGLES, 0, kNumVertices)) |