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

Unified Diff: services/view_manager/display_manager.cc

Issue 880743002: Plumb ViewportMetrics change notifications around the world and back. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix typo Created 5 years, 11 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/view_manager/connection_manager.cc ('k') | services/view_manager/server_view_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/view_manager/display_manager.cc
diff --git a/services/view_manager/display_manager.cc b/services/view_manager/display_manager.cc
index 2c312c752e9c5fac587b36d9b30d3561cf609a87..3e0df3f0f1a2de6a5eb41c3590dd3e1b1c853191 100644
--- a/services/view_manager/display_manager.cc
+++ b/services/view_manager/display_manager.cc
@@ -173,10 +173,11 @@ void DefaultDisplayManager::OnDestroyed() {
}
void DefaultDisplayManager::OnMetricsChanged(mojo::ViewportMetricsPtr metrics) {
- metrics_.size = metrics->size.Pass();
+ metrics_.size = metrics->size.Clone();
metrics_.device_pixel_ratio = metrics->device_pixel_ratio;
gfx::Rect bounds(metrics_.size.To<gfx::Size>());
connection_manager_->root()->SetBounds(bounds);
+ connection_manager_->ProcessViewportMetricsChanged(metrics_, *metrics);
if (!surface_allocated_)
return;
surface_->DestroySurface(kLocalSurfaceID);
« no previous file with comments | « services/view_manager/connection_manager.cc ('k') | services/view_manager/server_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698