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

Unified Diff: cc/ipc/returned_resource_struct_traits.h

Issue 2047963004: StructTraits optimizations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | cc/ipc/selection_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/returned_resource_struct_traits.h
diff --git a/cc/ipc/returned_resource_struct_traits.h b/cc/ipc/returned_resource_struct_traits.h
index 38e02fda9c5323659544ffe55954700683395bbd..1f9ff55005ca623ed7853c01fab8ab9a98c3bfe8 100644
--- a/cc/ipc/returned_resource_struct_traits.h
+++ b/cc/ipc/returned_resource_struct_traits.h
@@ -16,7 +16,8 @@ struct StructTraits<cc::mojom::ReturnedResource, cc::ReturnedResource> {
return resource.id;
}
- static gpu::SyncToken sync_token(const cc::ReturnedResource& resource) {
+ static const gpu::SyncToken& sync_token(
+ const cc::ReturnedResource& resource) {
return resource.sync_token;
}
« no previous file with comments | « no previous file | cc/ipc/selection_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698