Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1753)

Unified Diff: cc/resources/resource_provider_unittest.cc

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/resources/resource_provider_unittest.cc
diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc
index c4777b70db207e627b827815a99068c0dc5d0ad0..e94d865c10e36ae694142c23d529968379d1168c 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, _, _, _, _))

Powered by Google App Engine
This is Rietveld 408576698