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

Unified Diff: cc/ipc/transferable_resource_struct_traits.h

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/transferable_resource.mojom ('k') | cc/ipc/transferable_resource_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/transferable_resource_struct_traits.h
diff --git a/cc/ipc/transferable_resource_struct_traits.h b/cc/ipc/transferable_resource_struct_traits.h
index a85f054e5846588dd1a691c0971baaa9d7421bcb..1e3f24b75678f80eff3a178195dc3c6b2eba00d1 100644
--- a/cc/ipc/transferable_resource_struct_traits.h
+++ b/cc/ipc/transferable_resource_struct_traits.h
@@ -22,6 +22,11 @@ struct StructTraits<cc::mojom::TransferableResourceDataView,
return static_cast<cc::mojom::ResourceFormat>(resource.format);
}
+ static gfx::mojom::BufferFormat buffer_format(
+ const cc::TransferableResource& resource) {
+ return static_cast<gfx::mojom::BufferFormat>(resource.buffer_format);
+ }
+
static uint32_t filter(const cc::TransferableResource& resource) {
return resource.filter;
}
« no previous file with comments | « cc/ipc/transferable_resource.mojom ('k') | cc/ipc/transferable_resource_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698