Commit Graph

3656 Commits

Author SHA1 Message Date
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
Alexander Aprelev
de14cec698 Revert "Roll dart dependency to 24ad1035147b65dd42e765b566f5002e87caafa7 (#4140)" (flutter/engine#4143)
This reverts commit 05066cbae4.

This breaks linux build due to outdated pool dependency in observatory pub packages.
2017-09-25 18:03:56 -07:00
Alexander Aprelev
05066cbae4 Roll dart dependency to 24ad1035147b65dd42e765b566f5002e87caafa7 (flutter/engine#4140)
* Roll dart dependency to 24ad1035147b65dd42e765b566f5002e87caafa7

* Update dart license hash(no relevant changes). Update dart deps.
2017-09-25 15:32:35 -07:00
Jason Simmons
7ee4d99155 Replace a View.getDisplay call that is not supported on API level 16 (flutter/engine#4139)
Fixes https://github.com/flutter/flutter/issues/12235
2017-09-25 11:25:47 -07:00
Jason Simmons
d3b8593967 roll buildroot (flutter/engine#4138) 2017-09-22 17:38:17 -07:00
Jason Simmons
5bd27070dc libtxt: refactor glyph position calculation (flutter/engine#4134)
* Remove padding values in line_heights and glyph_position_x.  Each value
  in glyph_position_x now represents an actual glyph in the layout.

* Remove code intended to handle extra characters beyond the end of the
  last line.  The LineBreaker should ensure that the end of the last run
  matches the end of the last line.

* Return the upstream/downstream affinity of the cursor position in
  GetGlyphPositionAtCoordinate.

* Account for the space at the end of a word wrapped line in
  GetGlyphPositionAtCoordinate / GetCoordinatesForGlyphPosition
2017-09-22 15:15:59 -07:00
Jason Simmons
6b1ad30e54 Roll Skia (flutter/engine#4131) 2017-09-22 14:38:46 -07:00
Jason Simmons
7602b0001d Update the license script to include the topaz root and exclude Skia's version of libpng (flutter/engine#4136) 2017-09-22 14:03:14 -07:00
P.Y. Laligand
f7307b60cb Adjust to new location of lib/tonic. (flutter/engine#4132) 2017-09-21 14:30:28 -07:00
Alexander Aprelev
d539abd7c5 Revert "account for pixel scale when checking against existing buffer storage size (#4103)" (flutter/engine#4133)
This reverts commit 72c28f3a01 as it looks
like a potential cause of performance benchmark regressions on
https://flutter-dashboard.appspot.com/benchmarks.html:
 - flutter_gallery_ios__transition_perf average_frame_build_time_millis
 - flutter_gallery_ios__transition_perf missed_frame_build_budget_count
2017-09-21 12:45:16 -07:00
Michael Goderbauer
6f82de905e Revert "Roll skia to 76d640d14ea78e1f827a2f545e7f0729cdc2896f" (flutter/engine#4130)
* Revert "Roll Dart to 3d21a46b726c24ded2d3cb3cce4f43aeed875dbc. (#4127)"

This reverts commit 1283f1bad9.

* Revert "Roll skia to 76d640d14ea78e1f827a2f545e7f0729cdc2896f (#4129)"

This reverts commit 55edf463fe.
2017-09-20 16:59:14 -07:00
Ryan Macnak
1283f1bad9 Roll Dart to 3d21a46b726c24ded2d3cb3cce4f43aeed875dbc. (flutter/engine#4127) 2017-09-20 16:44:15 -07:00
Michael Goderbauer
55edf463fe Roll skia to 76d640d14ea78e1f827a2f545e7f0729cdc2896f (flutter/engine#4129) 2017-09-20 16:34:29 -07:00
Michael Goderbauer
dca7480bd3 Don't crash on iOS if there is only a single SemanticsNode (flutter/engine#4128)
* Don't crash if there is only a single SemanticsNode

Previously, the code assumed that the root SemanticsNode will allways have a child. This is not true as can be seen in the hello_world example app, which would crash when a11y is turned on.

* review comment
2017-09-20 14:17:50 -07:00
Michael Goderbauer
41e2e6dc9f Three finger a11y scrolling for iOS (flutter/engine#4123)
* Three finger a11y scrolling for iOS

* review comments

* review feedback
2017-09-20 09:59:14 -07:00
Abhishek Amit
7613894f7e Add flags to allow cross compiling to linux arm (flutter/engine#4120) 2017-09-19 14:09:35 -07:00
Abhishek Amit
b42cf1f520 Add API to send platform messages into engine through embedder API (flutter/engine#4112) 2017-09-19 13:57:44 -07:00
Abhishek Amit
a318ad4d08 Add support for running bundles to embedder API (flutter/engine#4099) 2017-09-19 13:12:51 -07:00
Ian McKellar
093a8a4dfd Support cleaner Dart isolate shutdown handling. (flutter/engine#4121)
If an isolate shuts down (for example if an app calls
Isolate.current.kill()), the UIDartState* on DartController will refer
to a freed object. This wires through notification that the is shutting
down through to the DartController so it can clean up appropriately.

This also makes gives the vm-service isolate an UIDartState* so that
the shutdown callback can behave correctly.
2017-09-19 12:11:05 -07:00
Michael Goderbauer
aa090950f6 Silence Wawrning (flutter/engine#4122)
Follow-up to https://github.com/flutter/engine/pull/4110
2017-09-19 10:15:39 -07:00
Jason Simmons
023d8ed3b1 Support ligatures in libtxt (flutter/engine#4119) 2017-09-19 10:07:17 -07:00
Michael Goderbauer
774f4cb661 Allow nested semantics on iOS (flutter/engine#4110)
* Allow nested semantics on iOS

* review comments

* review comments
2017-09-18 17:27:14 -07:00
Jason Simmons
858be590cf Set a higher filter quality for drawing raster cache images (flutter/engine#4116)
According to Skia, kLow offers a quality improvement with little cost over
the default kNone

Fixes https://github.com/flutter/flutter/issues/12091
2017-09-18 12:28:52 -07:00
Alexander Aprelev
a87bbccccd Capture all aspects of messages from compiler (flutter/engine#4118)
* Capture all aspects of messages from compiler

* Make static
2017-09-15 16:04:58 -07:00
Ian Hickson
3af1533e03 Add operators to Radius (flutter/engine#4117)
This will make it easier to implement BorderRadius RTL in a manner consistent with EdgeInsets.
2017-09-15 14:52:38 -07:00
Ryan Macnak
ea5cd3226c DEPS: Change the URL for Dart to the new Gerrit instance. (flutter/engine#4111)
Makes it easy to upload a Dart change from a Flutter client.
2017-09-15 10:47:31 -07:00
Carlo Bernaschina
ae80d81185 Fix engine on iOS (flutter/engine#4113)
Related https://github.com/flutter/engine/pull/4105
2017-09-15 09:59:53 -07:00
George Kulakowski
fb411f977b Rename Magenta to Zircon, along with associated abbreviations (flutter/engine#4114) 2017-09-14 22:49:46 -07:00
Carlo Bernaschina
0ded14f6ab Add anchor events for developer centric timeline (flutter/engine#4105)
By adding these events the new developer centric timeline will be able
to identify and correlate events related to the different stages of the
drawing pipeline.

Roll Dart to 62045a4590a333ae557f8f261a909ee75449cd70
2017-09-14 20:18:07 -07:00
Alexander Aprelev
dbf765e81a Reverting to unblock engine roll (flutter/engine#4109)
* Revert "Make Travis happy again (#4101)"

This reverts commit ba1577ac9b.

* Revert "Support cleaner Dart isolate shutdown handling. (#4096)"

This reverts commit b8e222f45c.
2017-09-14 12:10:11 -07:00
Ryan Macnak
f2629475aa Remove use of CADisplayLink targetTimestamp, which was only added in iOS 10.0. (flutter/engine#4108) 2017-09-14 10:48:28 -07:00
Alexander Aprelev
bb21c7cde6 Roll garnet dependency to pick up a win bot fix (flutter/engine#4107)
* Roll garnet dependency to pick up a win bot fix

* Update license
2017-09-14 09:51:40 -07:00
Alexander Aprelev
931f0e5a3e Provide callback to free fetched bytes when reading kernel binary. (flutter/engine#4095) 2017-09-14 08:01:25 -07:00
Michael Goderbauer
ad16a0e9d1 More clarification about license script (flutter/engine#4104) 2017-09-13 15:41:03 -07:00
xster
72c28f3a01 account for pixel scale when checking against existing buffer storage size (flutter/engine#4103) 2017-09-13 14:05:45 -07:00
Michael Goderbauer
cbde7aa2e2 Clarify licenses/README.md (flutter/engine#4102) 2017-09-13 14:04:34 -07:00
Michael Goderbauer
ba1577ac9b Make Travis happy again (flutter/engine#4101) 2017-09-13 12:42:37 -07:00
Ian McKellar
b8e222f45c Support cleaner Dart isolate shutdown handling. (flutter/engine#4096)
If an isolate shuts down (for example if an app calls
Isolate.current.kill()), the UIDartState* on DartController will refer
to a freed object. This wires through notification that the is shutting
down through to the DartController so it can clean up appropriately.
2017-09-13 10:29:21 -07:00
Carlo Bernaschina
e0ef51ea00 Add --trace-skia parameter to flutter run (flutter/engine#4100)
Skia tracing is extremely useful for internal debug, but reduces the
amount of space available in the Dart Timeline buffers.
Disable skia tracing by default and expose them via the --trace-skia
flag.
2017-09-13 10:18:45 -07:00
Michael Goderbauer
11a9ee14fe Enforce clang-format for c-like sources on Travis (flutter/engine#4089)
* Enforce clang-format for c-like sources on Travis

* Edit CONTRIBUTING,md

* review feedback:

* ++

* ++

* ++
2017-09-12 15:42:37 -07:00
Michael Goderbauer
ac24af87f0 Format all c-like sources with clang-format (flutter/engine#4088)
* format

* license script adaptions

* updated licenses

* review comments
2017-09-12 15:36:20 -07:00
Jason Simmons
0d77e02338 Update licenses for Garnet/FXL renaming (flutter/engine#4093) 2017-09-12 09:51:33 -07:00
Michael Goderbauer
9c860a4617 More renaming of FTL->FXL (flutter/engine#4092) 2017-09-11 17:29:48 -07:00
George Kulakowski
b2b9a646ca Fix remaining ftl->fxl conversions (flutter/engine#4091)
* Fix remaining ftl->fxl conversions

The previous scripting pass at this did not account for objective c file endings

* Update tonic DEPS reference to the post-fxl version
2017-09-11 16:31:18 -07:00
George Kulakowski
fa539e618e Rename ftl to fxl in Fuchsia specific code (flutter/engine#4090) 2017-09-11 15:58:48 -07:00
George Kulakowski
87b7a7de63 Update DEPS to reflect garnet changes (flutter/engine#4087) 2017-09-11 15:45:04 -07:00
Jason Simmons
8f1190bf56 Enable the Skia subpixel text flag in libtxt (flutter/engine#4086)
This flag was set in the Blink renderer (see FontPlatformData::setupPaint)
2017-09-11 15:06:47 -07:00
Michael Goderbauer
3589d495f8 a11y improvements for iOS (flutter/engine#4079)
* Various iOS a11y fixes

* undo

* review comments

* review comments
2017-09-11 14:44:17 -07:00
Adam Barth
9bceaa9981 Update paths for //application move (flutter/engine#4085) 2017-09-11 14:40:03 -07:00
Jason Simmons
a8c7dcec2d Log instead of asserting when sending a reply message to a defunct engine (flutter/engine#4084)
Fixes https://github.com/flutter/flutter/issues/12037
2017-09-11 14:05:14 -07:00