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

Unified Diff: cc/ipc/shared_quad_state_struct_traits.h

Issue 2088603002: Implement RenderPass StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup 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/render_pass_struct_traits.cc ('k') | cc/ipc/struct_traits_unittest.cc » ('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 7b5dde7e1a2086b3233c40b7f88b27d2c8d4be99..73fd1aa1414579b7a06ccf380c6368a6f5dd402d 100644
--- a/cc/ipc/shared_quad_state_struct_traits.h
+++ b/cc/ipc/shared_quad_state_struct_traits.h
@@ -17,15 +17,16 @@ struct StructTraits<cc::mojom::SharedQuadState, cc::SharedQuadState> {
return sqs.quad_to_target_transform;
}
- static gfx::Size quad_layer_bounds(const cc::SharedQuadState& sqs) {
+ static const gfx::Size& quad_layer_bounds(const cc::SharedQuadState& sqs) {
return sqs.quad_layer_bounds;
}
- static gfx::Rect visible_quad_layer_rect(const cc::SharedQuadState& sqs) {
+ static const gfx::Rect& visible_quad_layer_rect(
+ const cc::SharedQuadState& sqs) {
return sqs.visible_quad_layer_rect;
}
- static gfx::Rect clip_rect(const cc::SharedQuadState& sqs) {
+ static const gfx::Rect& clip_rect(const cc::SharedQuadState& sqs) {
return sqs.clip_rect;
}
« no previous file with comments | « cc/ipc/render_pass_struct_traits.cc ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698