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

Unified Diff: sky/shell/ios/sky_surface.mm

Issue 1220353002: Add padding values to View.idl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/shell/android/org/domokit/sky/shell/SkyActivity.java ('k') | sky/shell/testing/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ios/sky_surface.mm
diff --git a/sky/shell/ios/sky_surface.mm b/sky/shell/ios/sky_surface.mm
index 2e16c1efe0afd8f2ef0bd045cbc5a13e70b5da98..518c9cc3b5e12d166aa9da12408ed4bc3c5c553b 100644
--- a/sky/shell/ios/sky_surface.mm
+++ b/sky/shell/ios/sky_surface.mm
@@ -86,8 +86,11 @@ static sky::InputEventPtr BasicInputEventFromRecognizer(
CGSize size = self.bounds.size;
CGFloat scale = [UIScreen mainScreen].scale;
- _sky_engine->OnViewportMetricsChanged(size.width * scale,
- size.height * scale, scale);
+ ViewportMetricsPtr metrics = ViewportMetrics::New();
+ metrics->physical_width = size.width * scale;
+ metrics->physical_height = size.height * scale;
+ metrics->device_pixel_ratio = scale;
+ _sky_engine->OnViewportMetricsChanged(metrics.Pass());
}
- (void)configureLayerDefaults {
« no previous file with comments | « sky/shell/android/org/domokit/sky/shell/SkyActivity.java ('k') | sky/shell/testing/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698