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

Unified Diff: cc/ipc/selection_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/returned_resource_struct_traits.h ('k') | cc/ipc/shared_quad_state_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/selection_struct_traits.h
diff --git a/cc/ipc/selection_struct_traits.h b/cc/ipc/selection_struct_traits.h
index d4b29ea363723c11460ea0a724076629224f0683..c5d52f780fc48537b9e17958380b8d2ab169bc6a 100644
--- a/cc/ipc/selection_struct_traits.h
+++ b/cc/ipc/selection_struct_traits.h
@@ -12,12 +12,12 @@ namespace mojo {
template <>
struct StructTraits<cc::mojom::Selection, cc::Selection<gfx::SelectionBound>> {
- static gfx::SelectionBound start(
+ static const gfx::SelectionBound& start(
const cc::Selection<gfx::SelectionBound>& selection) {
return selection.start;
}
- static gfx::SelectionBound end(
+ static const gfx::SelectionBound& end(
const cc::Selection<gfx::SelectionBound>& selection) {
return selection.end;
}
« no previous file with comments | « cc/ipc/returned_resource_struct_traits.h ('k') | cc/ipc/shared_quad_state_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698