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

Unified Diff: cc/ipc/struct_traits_unittest.cc

Issue 2748903002: cc: Add gfx::BufferFormat to cc::ResourceProvider::Resource. (Closed)
Patch Set: Always initialize buffer_format. Created 3 years, 9 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/ipc/cc_param_traits_macros.h ('k') | cc/ipc/transferable_resource.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/struct_traits_unittest.cc
diff --git a/cc/ipc/struct_traits_unittest.cc b/cc/ipc/struct_traits_unittest.cc
index 5647cb51ba8574db34dffc3bba8cb1e25022227c..00e401f02ab8e4f4adace3c4d1ff50ee64104e4d 100644
--- a/cc/ipc/struct_traits_unittest.cc
+++ b/cc/ipc/struct_traits_unittest.cc
@@ -227,11 +227,13 @@ TEST_F(StructTraitsTest, CompositorFrame) {
// TransferableResource constants.
const uint32_t tr_id = 1337;
const ResourceFormat tr_format = ALPHA_8;
+ const gfx::BufferFormat tr_buffer_format = gfx::BufferFormat::R_8;
const uint32_t tr_filter = 1234;
const gfx::Size tr_size(1234, 5678);
TransferableResource resource;
resource.id = tr_id;
resource.format = tr_format;
+ resource.buffer_format = tr_buffer_format;
resource.filter = tr_filter;
resource.size = tr_size;
@@ -265,6 +267,7 @@ TEST_F(StructTraitsTest, CompositorFrame) {
TransferableResource out_resource = output.resource_list[0];
EXPECT_EQ(tr_id, out_resource.id);
EXPECT_EQ(tr_format, out_resource.format);
+ EXPECT_EQ(tr_buffer_format, out_resource.buffer_format);
EXPECT_EQ(tr_filter, out_resource.filter);
EXPECT_EQ(tr_size, out_resource.size);
« no previous file with comments | « cc/ipc/cc_param_traits_macros.h ('k') | cc/ipc/transferable_resource.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698