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

Unified Diff: services/ui/view_manager/view_registry.cc

Issue 1782733002: Mozart: The great RectF-ication. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-9
Patch Set: rebase Created 4 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 | « services/ui/input_manager/input_dispatcher_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_registry.cc
diff --git a/services/ui/view_manager/view_registry.cc b/services/ui/view_manager/view_registry.cc
index 9622d08b12928e70c3855a0c86971e9aa1ed221f..c95a268c04865fe3ba478168379303204442377d 100644
--- a/services/ui/view_manager/view_registry.cc
+++ b/services/ui/view_manager/view_registry.cc
@@ -763,12 +763,12 @@ void ViewRegistry::UpdateViewTreeRootScene(ViewTreeState* tree_state) {
root_state->layout_result()) {
// TODO(jeffbrown): Take the scene version from the layout parameters
// once we've figured out that part of the layout protocol.
- mojo::Rect viewport;
- viewport.width = root_state->layout_result()->size->width;
- viewport.height = root_state->layout_result()->size->height;
+ auto viewport = mojo::Rect::New();
+ viewport->width = root_state->layout_result()->size->width;
+ viewport->height = root_state->layout_result()->size->height;
tree_state->renderer()->SetRootScene(
tree_state->root()->state()->scene_token()->Clone(),
- mojo::gfx::composition::kSceneVersionNone, viewport.Clone());
+ mojo::gfx::composition::kSceneVersionNone, viewport.Pass());
return;
}
}
« no previous file with comments | « services/ui/input_manager/input_dispatcher_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698