135 Commits

Author SHA1 Message Date
Sarah Zakarias
0fc35ac4f9 Add missing include (flutter/engine#4454) 2017-12-13 14:29:14 +01:00
Sarah Zakarias
88f345d1d3 Add #define's in dart_init.cc (flutter/engine#4453) 2017-12-13 14:13:02 +01:00
Sarah Zakarias
5b8c89eaf0 Handle Flutter assets outside FLX (flutter/engine#4343) 2017-12-13 10:55:24 +01:00
Zachary Anderson
e2bb119248 Fix Platform.localeName by setting _Platform._localeClosure (flutter/engine#4450) 2017-12-12 15:01:13 -08:00
Michael Goderbauer
9e95f34064 Roll forward: Parameters for SemanticActions; a11y text selection (flutter/engine#4452)
Reverts the revert in #4448 with fixes to pass on the bot.

This change will require framework changes in flutter/flutter#13490.
2017-12-12 14:25:45 -08:00
Michael Goderbauer
4cc04bfe16 Revert " Add parameters to SemanticActions; implement extend selection for a11y (#4444)" (flutter/engine#4448)
This reverts commit 4fc00d4735d43ef0ab9504111541928a3c2167ea.
2017-12-12 10:53:15 -08:00
Michael Goderbauer
4fc00d4735 Add parameters to SemanticActions; implement extend selection for a11y (flutter/engine#4444) 2017-12-12 10:06:04 -08:00
Vyacheslav Egorov
95058cefa9 Update VM entry points list to include some previous omitted entries. (flutter/engine#4440)
This fixes obfuscated snapshot mode.
2017-12-11 11:27:23 -08:00
Ben Konyi
31f0a6055c Changes to assets/ build/ flow/ runtime/ and shell/ to allow for compilation on Windows (flutter/engine#4407)
Made changes to assets/ build/ flow/ runtime/ and shell/ to allow for
compilation on Windows.
2017-11-30 19:47:20 -05:00
Zachary Anderson
2db5ec9775 Roll Dart to 3ee0a4284203ebc6991c78054583a7c02dc8faf9 (flutter/engine#4378) 2017-11-21 12:16:34 -08:00
amirh
6f728c4150 add ui.Codec and ui.FrameInfo constructors to the dart_vm_entry_points.txt (flutter/engine#4371) 2017-11-16 16:49:20 -08:00
Zachary Anderson
3d346b67fc Roll Dart back to 4dd4fd745e588eef64b8d85811d847ab72633cb7 (flutter/engine#4370) 2017-11-16 09:24:13 -08:00
Ian McKellar
ce4849d743 Allow Flutter apps on Fuchsia to shut down cleanly (flutter/engine#4366)
The UIDartState is now always owned by the isolate and always freed in
the isolate cleanup callback.

In the isolate shutdown callback, if the isolate being shut down is the
main isolate, the RuntimeController is informed which in turn notifies
the RuntimeHolder and thus the ApplicationControllerImpl. The
ApplicationControllerImpl tears down the whole Flutter application.

This fixes Fuchsia bug: MI4-328
2017-11-15 13:28:21 -08:00
Zachary Anderson
cb46299d06 Roll Dart forward (flutter/engine#4363) 2017-11-15 13:17:10 -08:00
Alexander Markov
ec821c2367 Revert "Enable Dart 2.0 fixed-size integers in Flutter (#4337)" (flutter/engine#4344)
This reverts commit d0d48f63299f9e29d558b17111974adf9ad4f3f6.
2017-11-10 11:08:42 -08:00
Alexander Markov
d0d48f6329 Enable Dart 2.0 fixed-size integers in Flutter (flutter/engine#4337) 2017-11-09 09:42:40 -08:00
Chinmay Garde
d0ec6228a5 Add texture support (eg video, camera) (flutter/engine#4159) 2017-11-02 10:57:29 +01:00
Alexander Aprelev
2fa0c790d1 Initialize service isolate from kernel file, rather than from embedded sources. (flutter/engine#4263)
* Read core platform kernel file during Dart initialization.

Currently service isolate is initialized from the source code parsed by VM.
This CL changes it so service isolate created during Dart initialization
is created from the kernel platform.dill file if it is present in the application
bundle. Then this platform kernel file is kept in dart_init module and reused
for application sciprt isolates.

* Reformat and merge

* Use accessor method

* Avoid passing running_from_kernel param. Add TODO for cleanup. Rename param.
2017-10-24 19:37:24 -07:00
Jason Simmons
506f2285e0 Add _updateUserSettingsData to the Dart entry points (flutter/engine#4261) 2017-10-23 09:40:35 -07:00
P.Y. Laligand
0768d0714e Move //dart to //third_party/dart. (flutter/engine#4245) 2017-10-19 01:20:38 -07:00
Yegor
db7ec2ce7e Add alwaysUse24HourFormat and textScaleFactor (flutter/engine#4202)
* systems/settings channel split

* merge textScaleFactor and alwaysUse24HourFormat into flutter/settings channel

* add debugOverrideAlwaysUse24HourFormat

* implement textScaleFactor on iOS

* address comments

* remove debugOverrideAlwaysUse24HourFormat

* clang-format
2017-10-18 16:13:43 -07:00
Zachary Anderson
268fa25fff Allow a non-main entrypoint (flutter/engine#4238) 2017-10-18 14:19:28 -07:00
Siva
a07fffd551 Fix for issue 12526 (flutter/engine#4218)
* Fix for issue 12526

Ensure that child isolates do not clear the dart_ui_state_ field present in the dart controller.

The commit 093a8a4dfd implemented code to reset the dart_ui_state_ back to null when an isolate was being shutdown to ensure there was no use after free issues when the main isolate exeutes Isolate.current.kill() it however it was also clearning the field when a child isolate was shutdown causing SEGVs later.

* Address code format issues.
2017-10-17 14:47:09 -07:00
Zachary Anderson
b4193daaf9 Make Engine::RunBundle* reuse an existing RuntimeController (flutter/engine#4229) 2017-10-17 13:44:09 -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
Jason Simmons
fc6cd2ae23 libtxt: support the use_test_font flag required by framework tests (flutter/engine#4216)
This registers a test font manager that maps all fonts to the Ahem font
2017-10-13 11:31:35 -07:00
Zachary Anderson
95b0e0bc7f Remove daed --assert_initializer flag (flutter/engine#4181) 2017-10-06 14:54:08 -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
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
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
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
P.Y. Laligand
f7307b60cb Adjust to new location of lib/tonic. (flutter/engine#4132) 2017-09-21 14:30:28 -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
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 ba1577ac9b10734cdfd4d047dc8c7da88045c15e.

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

This reverts commit b8e222f45c183a76a8c4a3f3971ba471a1a139c0.
2017-09-14 12:10:11 -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
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
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
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
Zachary Anderson
d2668207f8 [Fuchsia] Disable dart:io exit() (flutter/engine#4080) 2017-09-11 11:25:38 -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
Ian McKellar
6ea4f8e327 Updates for the dart:fidl.internal rename and split. (flutter/engine#4070)
Now it references dart:zircon and dart:fuchsia.
2017-09-06 15:33:43 -07:00
Zachary Anderson
814847ec3c [Fuchsia] Pass namespaces to Isolates (flutter/engine#4047) 2017-09-01 13:17:20 -07:00
Chinmay Garde
7d184eb710 Wire up support for multiple font managers in txt::FontCollection. (flutter/engine#4042) 2017-09-01 11:56:38 -07:00
Ryan Macnak
d6e340346d Initial implementation of idle notification. (flutter/engine#4012)
- Assumes only the Dart VM is interested in idle notification.
 - Gives the VM the time remaining in each frame.
 - Gives the VM 100ms if there is no pending frame.

Issue flutter/flutter#9594
2017-09-01 11:11:25 -07:00
Adam Barth
2cf3cffd3f Add //garnet (flutter/engine#4043)
This repository contains FTL now in the Fuchsia build.
2017-08-31 16:47:13 -07:00
Ian McKellar
00c64afc52 Add new entry points for dart:fidl.internal (flutter/engine#4039) 2017-08-29 15:53:37 -07:00
Jason Simmons
e4cc8f5e41 Rebase the libtxt integration by @GaryQian onto the current engine head (flutter/engine#4022)
See https://github.com/flutter/engine/pull/3964
2017-08-28 13:01:15 -07:00