From 17040ff355cda5682977d5acb9fe4968150308dd Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 19 May 2015 14:54:08 -0700 Subject: [PATCH] Plumb display metrics into SkyView This CL teaches SkyView the width, height, and device pixel ratio of the display. In the future, we'll want some sort of notification system for when these values change. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1139823010 --- examples/raw/hello_world.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/raw/hello_world.dart b/examples/raw/hello_world.dart index 52cfc50c4f..0b99a9cb6d 100644 --- a/examples/raw/hello_world.dart +++ b/examples/raw/hello_world.dart @@ -8,8 +8,8 @@ import 'dart:sky'; void main() { print("Hello, world"); - double width = 500.0; - double height = 500.0; + double width = view.width; + double height = view.height; PictureRecorder recorder = new PictureRecorder(width, height); double radius = min(width, height) * 0.45;