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

Unified Diff: cc/resources/resource_provider_unittest.cc

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Don't enable on non-ES3 yet Created 3 years, 10 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
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, _, _, _, _))
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698