Commit Graph

2941 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
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
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
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
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
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
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
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
Zachary Anderson
d2668207f8 [Fuchsia] Disable dart:io exit() (flutter/engine#4080) 2017-09-11 11:25:38 -07:00
Petr Hosek
4bee84e385 Add missing virtual destructors to virtual classes (flutter/engine#4083)
These were previously undetected because Wdelete-non-virtual-dtor
didn't work with std::unique_ptr, but that's no longer the case.
2017-09-09 14:01:31 -07:00
Ian McKellar
ad88f5b2aa Remove package:lib.fidl.dart/core.dart (flutter/engine#4082) 2017-09-08 16:24:48 -07:00
Adam Barth
77597e6279 Update paths for Mozart move (flutter/engine#4081) 2017-09-08 15:24:16 -07:00
Alexander Aprelev
70c9742292 Pass ownership of the kernel bytes to the Dart_LoadKernel. (flutter/engine#4078)
This is follow-up to c7faf2dc6b, which made Dart_LoadKernel responsible for the bytes.
2017-09-08 14:33:50 -07:00
Alexander Aprelev
93c9eb30ef Use MemoryByteStore for incremental compilation (flutter/engine#4077) 2017-09-08 13:06:34 -07:00
Jeff Brown
f6f0cb2161 Port to Magenta tracing system. (flutter/engine#4076) 2017-09-08 12:37:40 -07:00
Carlo Bernaschina
fac8eb5d7d Roll Dart to 7b56ef96e2cc77150738366566357912c442ff5b (flutter/engine#4075)
* Roll Dart to 7b56ef96e2cc77150738366566357912c442ff5b
* Updated license
2017-09-07 19:30:11 -07:00
Ian Hickson
a34befb82c Pass TextDirection to ParagraphBuilder. (#4001) (flutter/engine#4019) 2017-09-07 15:37:25 -07:00
Michael Goderbauer
be40ad4d84 refactor accessibility channel to use StandardMessageCodec (flutter/engine#4073) 2017-09-07 15:24:47 -07:00