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

Side by Side Diff: sky/tests/resources/display_list.dart

Issue 1164393002: Convert everything in the Sky API from degrees to radians. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « sky/examples/spinning_arabic.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 import 'package:sky/framework/rendering/object.dart'; 2 import 'package:sky/framework/rendering/object.dart';
3 import 'package:sky/framework/rendering/box.dart'; 3 import 'package:sky/framework/rendering/box.dart';
4 import 'dart:sky' as sky; 4 import 'dart:sky' as sky;
5 5
6 typedef void Logger (String s); 6 typedef void Logger (String s);
7 7
8 class TestDisplayList extends RenderObjectDisplayList { 8 class TestDisplayList extends RenderObjectDisplayList {
9 TestDisplayList(double width, double height, this.logger, { this.indent: '' }) : 9 TestDisplayList(double width, double height, this.logger, { this.indent: '' }) :
10 this.width = width, 10 this.width = width,
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 void translate(double dx, double dy) { 41 void translate(double dx, double dy) {
42 log("translate($dx, $dy)"); 42 log("translate($dx, $dy)");
43 } 43 }
44 44
45 void scale(double sx, double sy) { 45 void scale(double sx, double sy) {
46 log("scale($sx, $sy)"); 46 log("scale($sx, $sy)");
47 } 47 }
48 48
49 void rotateDegrees(double degrees) { 49 void rotate(double radians) {
50 log("rotateDegrees($degrees)"); 50 log("rotate($radians)");
51 } 51 }
52 52
53 void skew(double sx, double sy) { 53 void skew(double sx, double sy) {
54 log("skew($sx, $sy)"); 54 log("skew($sx, $sy)");
55 } 55 }
56 56
57 void concat(List<double> matrix9) { 57 void concat(List<double> matrix9) {
58 log("concat($matrix9)"); 58 log("concat($matrix9)");
59 } 59 }
60 60
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void set root(RenderBox value) { 136 void set root(RenderBox value) {
137 _renderView.child = value; 137 _renderView.child = value;
138 } 138 }
139 void _beginFrame(double timeStamp) { 139 void _beginFrame(double timeStamp) {
140 RenderObject.flushLayout(); 140 RenderObject.flushLayout();
141 _renderView.paintFrame(); 141 _renderView.paintFrame();
142 print(_renderView.lastPaint); // TODO(ianh): figure out how to make this fit the unit testing framework better 142 print(_renderView.lastPaint); // TODO(ianh): figure out how to make this fit the unit testing framework better
143 } 143 }
144 144
145 } 145 }
OLDNEW
« no previous file with comments | « sky/examples/spinning_arabic.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698