| Index: gpu/command_buffer/service/texture_manager_unittest.cc
|
| diff --git a/gpu/command_buffer/service/texture_manager_unittest.cc b/gpu/command_buffer/service/texture_manager_unittest.cc
|
| index f430ce0a17eff295d64a1ffdd524bdbbdc7e428a..17113e01ca2343059e0a6ea489746fedc95233a9 100644
|
| --- a/gpu/command_buffer/service/texture_manager_unittest.cc
|
| +++ b/gpu/command_buffer/service/texture_manager_unittest.cc
|
| @@ -1613,6 +1613,10 @@ TEST_F(TextureTest, SafeUnsafe) {
|
| TEST_F(TextureTest, ClearTexture) {
|
| EXPECT_CALL(*decoder_, ClearLevel(_, _, _, _, _, _, _, _, _))
|
| .WillRepeatedly(Return(true));
|
| + // The code path taken when IsCompressedTextureFormat returns true
|
| + // is covered best by the WebGL 2.0 conformance tests.
|
| + EXPECT_CALL(*decoder_, IsCompressedTextureFormat(_))
|
| + .WillRepeatedly(Return(false));
|
| manager_->SetTarget(texture_ref_.get(), GL_TEXTURE_2D);
|
| manager_->SetLevelInfo(texture_ref_.get(), GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 1,
|
| 0, GL_RGBA, GL_UNSIGNED_BYTE, gfx::Rect());
|
| @@ -2039,6 +2043,10 @@ TEST_F(ProduceConsumeTextureTest, ProduceConsumeClearRectangle) {
|
| GetLevelInfo(restored_texture.get(), GL_TEXTURE_RECTANGLE_ARB, 0));
|
| EXPECT_CALL(*decoder_, ClearLevel(_, _, _, _, _, _, _, _, _))
|
| .WillRepeatedly(Return(true));
|
| + // The code path taken when IsCompressedTextureFormat returns true
|
| + // is covered best by the WebGL 2.0 conformance tests.
|
| + EXPECT_CALL(*decoder_, IsCompressedTextureFormat(_))
|
| + .WillRepeatedly(Return(false));
|
| EXPECT_TRUE(manager_->ClearTextureLevel(
|
| decoder_.get(), restored_texture.get(), GL_TEXTURE_RECTANGLE_ARB, 0));
|
| }
|
|
|