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

Unified Diff: cc/ipc/shared_quad_state_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 | « cc/ipc/selection_struct_traits.h ('k') | cc/ipc/transferable_resource_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/shared_quad_state_struct_traits.h
diff --git a/cc/ipc/shared_quad_state_struct_traits.h b/cc/ipc/shared_quad_state_struct_traits.h
index 7fc5c228d963d5776496dd5bfcf60d56268f8e15..675e6dcc2699e8014b4dceaa60ef2dcf208c47e0 100644
--- a/cc/ipc/shared_quad_state_struct_traits.h
+++ b/cc/ipc/shared_quad_state_struct_traits.h
@@ -12,7 +12,7 @@ namespace mojo {
template <>
struct StructTraits<cc::mojom::SharedQuadState, cc::SharedQuadState> {
- static gfx::Transform quad_to_target_transform(
+ static const gfx::Transform& quad_to_target_transform(
const cc::SharedQuadState& sqs) {
return sqs.quad_to_target_transform;
}
« no previous file with comments | « cc/ipc/selection_struct_traits.h ('k') | cc/ipc/transferable_resource_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698