Commit Graph

21 Commits

Author SHA1 Message Date
amirh 941ed76bcd Initial implementation of ui.Codec (a wrapper for SkCodec) (#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 2d9f6acfac Add a test_fixtures GN rule that allows unittests to reference fixtures. (#4280) 2017-10-25 14:54:20 -07:00
xster 28e08053e2 Add luminance getter to Color (#4252)
* add luminance getter to color

* tests

* nit
2017-10-24 18:39:54 -07:00
P.Y. Laligand 5fae5d52cf Allow the project to be mapped to a location other than //flutter. (#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 b2a7f4bf8f Add support for system text scale factor. (#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 ccf9859b0d Clamp overflows in Color.lerp. (#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 3aa7522c11 Rename ftl to fxl in Fuchsia specific code (#4090) 2017-09-11 15:58:48 -07:00
Jason Simmons 27dfd06f91 Assert checks for NaN/infinite values in Skia canvas Dart wrappers (#3967) 2017-08-08 15:49:51 -07:00
Jason Simmons 6a4951102b Remove usage of NaN values in canvas_test that caused a Skia assert failure (#3962) 2017-08-07 17:36:29 -07:00
Ryan Macnak 431a251151 Revert "Avoid spurious descheduling when posting message loop tasks. (#3812)" (#3862)
This reverts commit 2062ca14ec.
2017-07-11 14:49:13 -07:00
Ryan Macnak 2062ca14ec Avoid spurious descheduling when posting message loop tasks. (#3812)
Closes dart-lang/sdk#29971
2017-07-05 12:39:53 -07:00
Yegor 926c9a581f preserve Window callback zones (#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 6cf34cb5b3 Throw exceptions rather than crashing when Canvas API is misused. (#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 c7914e2573 Update scripts for renaming of sky_shell binaries to flutter (#3526) 2017-03-27 15:06:39 -07:00
Hans Muller 4ffba73767 Color operator== should compare runtimeTypes (#3495) 2017-03-22 10:58:03 -07:00
Jason Simmons d92d4c1b03 Script that runs engine unit tests and Dart tests of engine APIs (#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 55ed56040d Add testonly = true to the flutter/testing target and disable WTF tests that depend on ICU. (#3271) 2016-11-23 16:12:39 -08:00
Chinmay Garde c4bd577379 On host targets, add dependencies on host unit test executables. (#3269) 2016-11-23 15:57:52 -08:00
Adam Barth 22f834e048 Remove files that moved to buildroot 2016-08-09 13:51:42 -07:00
Adam Barth 21dd7553a0 Update to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 2015-07-16 22:10:38 -07:00
Adam Barth ad9b135217 Update to mojo 5f5dfcc9af8b40a14dd76e34c60a5766b9f58bb4 2015-07-16 11:44:14 -07:00