Index: cc/resources/resource_provider_unittest.cc |
diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc |
index a0c1ae194f2a68a0e0f807b80956937e33206efc..934908b12852330783f4daa8e909dc1f6f9820a2 100644 |
--- a/cc/resources/resource_provider_unittest.cc |
+++ b/cc/resources/resource_provider_unittest.cc |
@@ -3473,7 +3473,7 @@ TEST_P(ResourceProviderTest, TextureAllocationHint) { |
gfx::Size size(2, 2); |
- const ResourceFormat formats[2] = {RGBA_8888, BGRA_8888}; |
+ const ResourceFormat formats[3] = {RGBA_8888, BGRA_8888, RGBA_F16}; |
const ResourceProvider::TextureHint hints[4] = { |
ResourceProvider::TEXTURE_HINT_DEFAULT, |
ResourceProvider::TEXTURE_HINT_IMMUTABLE, |
@@ -3491,7 +3491,7 @@ TEST_P(ResourceProviderTest, TextureAllocationHint) { |
bool is_immutable_hint = |
hints[texture_id - 1] & ResourceProvider::TEXTURE_HINT_IMMUTABLE; |
bool support_immutable_texture = |
- is_immutable_hint && formats[i] == RGBA_8888; |
+ is_immutable_hint && formats[i] != BGRA_8888; |
EXPECT_CALL(*context, texStorage2DEXT(_, _, _, 2, 2)) |
.Times(support_immutable_texture ? 1 : 0); |
EXPECT_CALL(*context, texImage2D(_, _, _, 2, 2, _, _, _, _)) |