27 Commits

Author SHA1 Message Date
Greg Spencer
6f2797a88d Adding Rect.expandToInclude and Rect.longestSide (flutter/engine#4309)
Adding Rect.expandToInclude and Rect.longestSide to make the Rect API more symmetric.
2017-11-09 16:37:21 -08:00
amirh
98d001e88f expose a Duration object from ui.FrameInfo (flutter/engine#4345) 2017-11-09 14:03:19 -08:00
amirh
d844a1dbff Make the public ui.Codec API Future based instead of callback based. (flutter/engine#4341) 2017-11-09 09:56:36 -08:00
amirh
a036ba85c1 Implement a SingleFrameCodec and return it for non animated images (flutter/engine#4329) 2017-11-07 14:07:02 -08:00
amirh
bccf9371f3 Decode animation frames and pass FrameInfos to dart (flutter/engine#4324)
https://github.com/flutter/flutter/issues/204
2017-11-06 10:36:02 -08:00
amirh
92a0de09f8 Followup on post-merge comments for 9b03bcd7a (flutter/engine#4321) 2017-11-03 11:44:23 -07:00
amirh
9b03bcd7a1 Initial implementation of ui.Codec (a wrapper for SkCodec) (flutter/engine#4318)
This is the first step to support animated GIFs: flutter/flutter#204

TBD in following CLs:
 * Implement Codec.getNextFrame.
 * Add Framework side support to run animations.
2017-11-02 17:56:44 -07:00
Chinmay Garde
f0df2b460d Add a test_fixtures GN rule that allows unittests to reference fixtures. (flutter/engine#4280) 2017-10-25 14:54:20 -07:00
xster
6618c30371 Add luminance getter to Color (flutter/engine#4252)
* add luminance getter to color

* tests

* nit
2017-10-24 18:39:54 -07:00
P.Y. Laligand
235f07742a Allow the project to be mapped to a location other than //flutter. (flutter/engine#4203)
This is for Fuchsia where we would like it to be located at //third_party/flutter.
2017-10-13 17:00:58 -07:00
gspencergoog
b29baaed16 Add support for system text scale factor. (flutter/engine#4124)
Adds support for system text scale factor, including hooks for Android system settings changes.  iOS hooks will be added in another PR.
2017-09-29 13:19:06 -07:00
Ian Hickson
56b4eb63d3 Clamp overflows in Color.lerp. (flutter/engine#4141)
Previously, cases like:

```dart
Color.lerp(const Color(0xFF00FF7F), const Color(0xFF00FFFF), 1.1)
```

...would result in unexpected effects (in this instance, lerping
between these colors with a curve that overshoots would take what
should be a simple animation from pale green to blue and add some
flickering bright green whenever it overshoots).
2017-09-26 11:11:09 -07:00
George Kulakowski
fa539e618e Rename ftl to fxl in Fuchsia specific code (flutter/engine#4090) 2017-09-11 15:58:48 -07:00
Jason Simmons
d26681b396 Assert checks for NaN/infinite values in Skia canvas Dart wrappers (flutter/engine#3967) 2017-08-08 15:49:51 -07:00
Jason Simmons
e0735d0a6b Remove usage of NaN values in canvas_test that caused a Skia assert failure (flutter/engine#3962) 2017-08-07 17:36:29 -07:00
Ryan Macnak
f1085e149e Revert "Avoid spurious descheduling when posting message loop tasks. (#3812)" (flutter/engine#3862)
This reverts commit d040c59bab11ebd16522e18310e2cd33b036b78e.
2017-07-11 14:49:13 -07:00
Ryan Macnak
d040c59bab Avoid spurious descheduling when posting message loop tasks. (flutter/engine#3812)
Closes dart-lang/sdk#29971
2017-07-05 12:39:53 -07:00
Yegor
3efe108866 preserve Window callback zones (flutter/engine#3817)
* preserve Window callback zones

Run Window callbacks in the zone they are registered in. This is consistent with how other native API work, such as `scheduleMicrotask`, `Timer`, and `dart:io`. This also enables the developers to use the `Zone` API to capture and log unhandled Dart errors.

* refactor wrapping

* new line

* fewer if checks; group getters/setters/fields

* inline _invokeOnPointerDataPacket
2017-06-26 15:08:43 -07:00
Ian Hickson
f18a6da7d7 Throw exceptions rather than crashing when Canvas API is misused. (flutter/engine#3811)
This attempts to make the Canvas API and some related features more
likely to throw a Dart exception than crash when exposed to bad input.

Depends on rolling tonic to
https://fuchsia-review.googlesource.com/c/35742/ which this patch does
not yet do, but I wanted to put it up for review to see if it was even
a reasonable approach.
2017-06-22 17:06:59 -07:00
Jason Simmons
d58a818efc Update scripts for renaming of sky_shell binaries to flutter (flutter/engine#3526) 2017-03-27 15:06:39 -07:00
Hans Muller
6a452f9ebd Color operator== should compare runtimeTypes (flutter/engine#3495) 2017-03-22 10:58:03 -07:00
Jason Simmons
97b9a9d039 Script that runs engine unit tests and Dart tests of engine APIs (flutter/engine#3372)
The Dart tests were migrated from the flutter/test/engine suite in the
framework repository
2017-01-30 10:52:44 -08:00
Chinmay Garde
d056544e28 Add testonly = true to the flutter/testing target and disable WTF tests that depend on ICU. (flutter/engine#3271) 2016-11-23 16:12:39 -08:00
Chinmay Garde
bc255c65dc On host targets, add dependencies on host unit test executables. (flutter/engine#3269) 2016-11-23 15:57:52 -08:00
Adam Barth
2dad1017d3 Remove files that moved to buildroot 2016-08-09 13:51:42 -07:00
Adam Barth
a95585765e Update to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 2015-07-16 22:10:38 -07:00
Adam Barth
208caa8be0 Update to mojo 5f5dfcc9af8b40a14dd76e34c60a5766b9f58bb4 2015-07-16 11:44:14 -07:00