2977 Commits

Author SHA1 Message Date
Alexander Aprelev
ab74e6a9a3 Resubmit fix dep (flutter/engine#4194)
* Revert "Revert "Change kernel platform generation dependency name (#4189)" (#4192)"

This reverts commit 582a87b957d4171d76f1d5b0c00ab897eb886b2f.

* Remove bad change that broke the build

* Remove comma
2017-10-10 14:16:05 -07:00
Alexander Aprelev
582a87b957 Revert "Change kernel platform generation dependency name (#4189)" (flutter/engine#4192)
This reverts commit 9d4e4ace0f57f691d7bde2a3af25b115bb3d8ccb.
2017-10-10 13:34:28 -07:00
Alexander Aprelev
9d4e4ace0f Change kernel platform generation dependency name (flutter/engine#4189)
* Change kernel platform generation dependency name

* Include vmservice which is needed by gen_snapshot for Flutter release build
2017-10-10 13:24:04 -07:00
Yegor
f49775667f CONTRIBUTING.md: suggest skipping intro (flutter/engine#4188)
...if the environment is already setup
2017-10-10 10:02:21 -07:00
Alexander Aprelev
d73c211831 Add reset method to reset incremental compiler. (flutter/engine#4187)
* Add reset method to reset incremental compiler.

This is needed to support Flutter app restart request.

* Indent constructor calls
2017-10-09 14:58:27 -07:00
Alexander Aprelev
d4ab705952 Revert "Revert "Roll dart to pick up change where platform.dill was removed (#4180)" (#4185)" (flutter/engine#4186)
This reverts commit 45eaf7a0ce073d5d830c589b5df0a54ec9902072.

Doing the synchronized roll of Dart into engine as well as into Fuchsia
to prevent Fuchsia breakage.
2017-10-09 11:18:59 -07:00
Adam Barth
45eaf7a0ce Revert "Roll dart to pick up change where platform.dill was removed (#4180)" (flutter/engine#4185)
This reverts commit 1ede0f7c9f2b2e928bdaf8f2a8fd942a764fe581.
2017-10-09 09:13:13 -07:00
Alexander Aprelev
1ede0f7c9f Roll dart to pick up change where platform.dill was removed (flutter/engine#4180)
* Roll dart to pick up change where platform.dill was removed

* Fix flutter patch sdk generation

* Update license hash. No changes to license text.

* Roll dart to pick up a fix for zero-rebuild problem

* Update license hash
2017-10-09 07:29:21 -07:00
Jason Simmons
75067b5519 libtxt: refactoring of paragraph layout to improve text justification (flutter/engine#4178)
This changes Paragraph::Layout to iterate line-by-line through the text.
For each line, Layout scans for word boundaries and adds extra space between
words if the line is justified.
2017-10-06 15:46:27 -07:00
Zachary Anderson
95b0e0bc7f Remove daed --assert_initializer flag (flutter/engine#4181) 2017-10-06 14:54:08 -07:00
P.Y. Laligand
ad4b6338af Properly pass the disable_analysis parameter. (flutter/engine#4177)
Added it to a few targets.
2017-10-06 10:48:25 -07:00
Chris Bracken
79b9bdbbf4 Revert "Use iOS scale when computing render buffer size (#4171)" (flutter/engine#4175)
This reverts commit 1a7ca91e3938abd5720b3553dfb2045a6b805a3b.

Clear regression to the flutter_gallery_ios__transition_perf benchmarks:
  * average_frame_build_time_millis: 1.4x
  * missed_frame_build_budget_count: 1.2x

No regression seen for other iOS benchmarks (e.g. scrolling).
2017-10-04 17:42:46 -07:00
Alexander Markov
2b0120bc36 Roll Dart to 9ee73fe322ce3875a6b1f16ba16d64b11c680e90 (flutter/engine#4176)
* Switch from FlutterFastaTarget to FlutterTarget as FlutterFastaTarget was removed.
2017-10-04 16:28:30 -07:00
Ryan Macnak
ad47e1dbd7 Roll Dart to 4b64a835b9c10480063739d1e73847dcc4d8bfb6. (flutter/engine#4174) 2017-10-04 11:26:07 -07:00
Brian Osman
257dc7b1e1 Change to new SkFontMgr API (flutter/engine#4173)
* Change to new SkFontMgr API

These changes clarify ownership rules and work today. They will be
necessary once SK_SUPPORT_LEGACY_FONTMGR_API goes away.

* Fix spacing

* Formatting
2017-10-04 14:22:57 -04:00
Chris Bracken
1a7ca91e39 Use iOS scale when computing render buffer size (flutter/engine#4171)
When checking whether render buffer size has changed, apply the device
scale factor used to convert points to pixels to ensure we're not
needlessly re-allocating render buffer storage.

Adds trace + debug log to make this easier to detect in future.

Originally introduced in 72c28f3a01bd9e6bed256edc4629705d96a7cead, but
rolled back in d539abd7c5fe5291bab81b32e6e5697c1b6681b6 to test whether
it was responsible for regressions to
flutter_gallery_ios__transition_perf benchmarks:
  * average_frame_build_time_millis
  * missed_frame_build_budget_count
2017-10-03 19:43:36 -07:00
Siva
255bbb2a55 - Remove call to DartDebugger::InitDebugger in InitDartVM (flutter/engine#4167)
- Remove linking of dart_debugger.cc as this is not used
(all debugging is done using the service API, this debugger implementation uses the deprecated dart debugger API)
2017-10-03 16:49:43 -07:00
Alexander Aprelev
6b506e5dd2 Switch from FlutterTarget to FlutterFastaTarget (flutter/engine#4169) 2017-10-03 13:57:18 -07:00
Michael Goderbauer
4d5e6cdf2f Revert "Revert "Revert engine Dart roll. (#4158)"" (flutter/engine#4168)
* Revert "libtxt: handle characters encoded as multiple UTF-16 code units (#4165)"

This reverts commit 5f318a0aa46ae0874ca17cf41f4180412b640c34.

* Revert "Proper horizontal a11y scrolling on Android (#4163)"

This reverts commit 6a74f8721092c5ae2d5504a530768a70342aea05.

* Revert "Update Skia revision to 74a8296d7c. (#4164)"

This reverts commit 7f3c36f42c97bcf25069572f64fd068f4566fbd5.

* Revert "Revert "Revert engine Dart roll. (#4158)" (#4162)"

This reverts commit df7c8c94d729c1e921f33f49959387379ded51ed.
2017-10-03 11:23:00 -07:00
Jason Simmons
5f318a0aa4 libtxt: handle characters encoded as multiple UTF-16 code units (flutter/engine#4165) 2017-10-02 17:11:38 -07:00
Michael Goderbauer
6a74f87210 Proper horizontal a11y scrolling on Android (flutter/engine#4163) 2017-10-02 15:46:38 -07:00
Alexander Aprelev
df7c8c94d7 Revert "Revert engine Dart roll. (#4158)" (flutter/engine#4162)
This reverts commit 4549b484a225d0ee155401909988ac7053a08d52.

ca07b0046b417baaa67f3c46130a9b81ceab7c66 fixes issue with last dart
roll.
2017-10-02 13:26:58 -07:00
Jason Simmons
d0d48985e4 libtxt: implementation of GetRectsForRange that processes a line at a time (flutter/engine#4155) 2017-10-02 12:54:26 -07:00
Jason Simmons
ca07b0046b Provide an entropy source to the Dart engine (flutter/engine#4161)
This is required by the _CryptoUtils class used by the recently repackaged
Dart HTTP libraries
2017-10-02 12:40:29 -07:00
Jason Simmons
acb46290e9 libtxt: search for fallback fonts that can match emoji and CJK characters (flutter/engine#4156) 2017-10-02 12:01:40 -07:00
gspencergoog
4549b484a2 Revert engine Dart roll. (flutter/engine#4158)
* Revert "Include _http into sky_engine libraries for analyzer (#4154)"

This reverts commit 3246b5c70661a3afe19e4698c5a9739d20177bcc.

It is dependent upon the Dart roll, which breaks the engine.

* Revert "Roll dart to ade37f931e90b0fdb8fe16d6bf6f089545da55b6 (#4151)"

This reverts commit ebd5e7a88f3a44f61ded155608f015609f2ee28f.

This Dart roll breaks the engine build on Travis.
2017-09-29 14:32:15 -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
Alexander Aprelev
3246b5c706 Include _http into sky_engine libraries for analyzer (flutter/engine#4154) 2017-09-29 08:51:51 -07:00
Jason Simmons
9439d431b5 libtxt: Remove postprocess_line and improve tracking of X offsets for glyphs and PaintRecords (flutter/engine#4153) 2017-09-28 17:46:25 -07:00
Jason Simmons
7dc9b08d3c libtxt: remove redundant line_widths (flutter/engine#4152) 2017-09-28 16:01:48 -07:00
Michael Goderbauer
c1441946b1 Add overlaps method to Rect (flutter/engine#4150)
* Add overlaps method to Rect

* review comment
2017-09-27 17:42:44 -07:00
Adam Barth
80b35ebe57 Update paths to Fuchsia libraries (flutter/engine#4147)
These libraries are in Topaz now.
2017-09-27 13:45:49 -07:00
Michael Goderbauer
419022a3ba Send scroll progress with a11y event TYPE_VIEW_SCROLLED (flutter/engine#4144) 2017-09-27 11:18:50 -07:00
gspencergoog
bdc982d267 Fixing accidental paste. (flutter/engine#4145) 2017-09-26 13:44:39 -07:00
gspencergoog
3d9ced058b Support correct keyboards for multi-line text editing. (flutter/engine#4115)
This addresses part of #8028, implementing the Engine-side support for it.
2017-09-26 12:53:19 -07:00
Craig Stout
47c2e0b979 Update vulkan semaphore extension
Use fuchsia specific extension to avoid casting handles as fds.
2017-09-26 11:34:34 -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
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 72c28f3a01bd9e6bed256edc4629705d96a7cead 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