Commit 17040ff3 authored by Adam Barth's avatar Adam Barth

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
parent 0b18d56d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment