3249 Commits

Author SHA1 Message Date
Benjamin Lerman
32270c7836 Update API to use sized vmo instead of raw vmo. 2017-11-21 10:09:20 +01:00
amirh
5afc1e2848
Enable WebP (#4359) 2017-11-15 16:49:50 -08:00
Chris Bracken
bc2acf7bdd
Revert "Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)" (#4340)
With the update to HEAD of the Fuchsia buildtools repo, the new clang
toolchain picked up caused link-time breakage in android x86_64
libFlutter.so builds.

Sample log:
https://build.chromium.org/p/client.flutter/builders/Linux%20Engine/builds/1974/steps/build%20android_debug_x64/logs/stdio

Sample failure:
FAILED: libflutter.so libflutter.so.TOC lib.stripped/libflutter.so
../../third_party/android_tools/ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: obj/flutter/shell/platform/android/libflutter/android_context_gl.o: unsupported reloc 42 against global symbol std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id

This reverts commit 8ad42f0dae3cb1267c2b9ab99db80e4696ddbc3d.
2017-11-08 16:48:00 -08:00
Chris Bracken
8ad42f0dae
Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)
* Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5

This also updates Flutter buildroot to a6e52dbb776c45cc8c57d7143b8eb8b2e762fdfb
which disables -Wtautological-constant-compare temporarily until
https://reviews.llvm.org/D39462 lands in clang. This is in line with
Fuchsia's compiler options.

* Apply clang-format diffs

No logical changes. This applies clang-format from the latest Fuchsia
buildtools to the engine codebase.
2017-11-08 11:18:17 -08:00
Jason Simmons
d6dd5b10d9
Request slight hinting when rendering glyphs with Skia (#4307)
Fixes https://github.com/flutter/flutter/issues/12820
2017-11-01 11:47:09 -07:00
Chinmay Garde
ac16530074
Ensure that public framework headers can be cleanly imported from outside the engine root. (#4303) 2017-10-31 16:25:02 -07:00
Jason Simmons
c098d82b41 Invert the error code check on madvise (#4246)
madvise returns zero on success
2017-10-19 11:49:04 -07:00
P.Y. Laligand
6fcb45991d Move //dart to //third_party/dart. (#4245) 2017-10-19 01:20:38 -07:00
Chinmay Garde
58242e046a Log the error when the madvise call fails in PageAllocator. (#4231) 2017-10-17 16:51:50 -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
Brian Osman
01ab51832a Update Fuchsia font code to new Skia API (#4179) 2017-10-06 13:17:16 -04:00
Ryan Macnak
f7685ddf16 Roll Dart to 4b64a835b9c10480063739d1e73847dcc4d8bfb6. (#4174) 2017-10-04 11:26:07 -07:00
Siva
79cb2eaf65 - Remove call to DartDebugger::InitDebugger in InitDartVM (#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
Michael Goderbauer
8f1c0e97a2 Revert "Revert "Revert engine Dart roll. (#4158)"" (#4168)
* Revert "libtxt: handle characters encoded as multiple UTF-16 code units (#4165)"

This reverts commit 414c3fe3dfdd3e3d575d192b492ce429ddcc9736.

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

This reverts commit 0448bf9bd7a52dc281aa18db8e08194105d6d419.

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

This reverts commit ac53d29a416385d574a71120528c161db1b05c12.

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

This reverts commit f97e974e8cd58da75c699295384cd439a7369b13.
2017-10-03 11:23:00 -07:00
Alexander Aprelev
f97e974e8c Revert "Revert engine Dart roll. (#4158)" (#4162)
This reverts commit 14aab33edd199fe453cd01b9c8a05e9dc3c6679f.

e1aa86739b84dd9f0e69d3ea5c704342397ac93a fixes issue with last dart
roll.
2017-10-02 13:26:58 -07:00
gspencergoog
14aab33edd Revert engine Dart roll. (#4158)
* Revert "Include _http into sky_engine libraries for analyzer (#4154)"

This reverts commit b930f107c3d6648423c42ed10b54f36a92edcbc8.

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

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

This reverts commit 6f1264fb3e11d25a26bc7c44246110ecb5159011.

This Dart roll breaks the engine build on Travis.
2017-09-29 14:32:15 -07:00
Alexander Aprelev
b930f107c3 Include _http into sky_engine libraries for analyzer (#4154) 2017-09-29 08:51:51 -07:00
Jason Simmons
a0313d1019 Fix an overflow in HarfBuzzShaper's resolveCandidateRuns (#4148)
See 24cf1f3562

Fixes https://github.com/flutter/flutter/issues/12280
2017-09-27 15:03:29 -07:00
Jason Simmons
e31d0f4ea1 Update the license script to include the topaz root and exclude Skia's version of libpng (#4136) 2017-09-22 14:03:14 -07:00
P.Y. Laligand
fc3cb8fb3b Adjust to new location of lib/tonic. (#4132) 2017-09-21 14:30:28 -07:00
George Kulakowski
550d0c6490 Rename Magenta to Zircon, along with associated abbreviations (#4114) 2017-09-14 22:49:46 -07:00
Michael Goderbauer
08961f8ec5 Format all c-like sources with clang-format (#4088)
* format

* license script adaptions

* updated licenses

* review comments
2017-09-12 15:36:20 -07:00
George Kulakowski
31d03de019 Rename mtl to fsl (#4094) 2017-09-11 17:56:02 -07:00
George Kulakowski
6502090278 Fix remaining ftl->fxl conversions (#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
3aa7522c11 Rename ftl to fxl in Fuchsia specific code (#4090) 2017-09-11 15:58:48 -07:00
Carlo Bernaschina
3a5bf56733 Roll Dart to 7b56ef96e2cc77150738366566357912c442ff5b (#4075)
* Roll Dart to 7b56ef96e2cc77150738366566357912c442ff5b
* Updated license
2017-09-07 19:30:11 -07:00
Ian Hickson
2d7c30033d Pass TextDirection to ParagraphBuilder. (#4001) (#4019) 2017-09-07 15:37:25 -07:00
Adam Barth
c0952db729 Update MTL path in gn (#4046) 2017-09-01 11:02:27 -07:00
Adam Barth
e5c80cef57 Update for fonts move to garnet. (#4044) 2017-09-01 09:34:50 -07:00
Adam Barth
73554a1c32 Add //garnet (#4043)
This repository contains FTL now in the Fuchsia build.
2017-08-31 16:47:13 -07:00
James Robinson
881c22cf10 Disable GN check for conditionally included headers (#4026)
GN check can't understand preprocessor defines, so we have to disable
checking for these conditionally included headers.
2017-08-28 15:06:53 -07:00
Chinmay Garde
217ba07f5d Update ICU to ToT and ensure that slimmed down versions of data files are shipped on the mobile platforms. (#4005)
This reduces the size of the ICU data files from 10.3 MB to 6.6 MB (uncompressed). Also allows us to remove version specific hacks from libTXT and dependencies.
2017-08-24 14:26:07 -07:00
Ian Hickson
49d06b3860 Revert "Pass TextDirection to ParagraphBuilder. (#4001)" (#4004)
This reverts commit 86591145a320f2978c3f4c742c972a32bb8cb02a.
2017-08-23 11:14:26 -07:00
Ian Hickson
86591145a3 Pass TextDirection to ParagraphBuilder. (#4001) 2017-08-23 10:34:57 -07:00
Alexander Aprelev
fe0e123b12 Introduce frontend_server that flutter tools will use for compilation. (#3982)
* Introduce frontend_server that allows for interactive and batch modes.

Example of batch mode:
```
$ dart $HOME/p/f/t11/flutter/engine/src/flutter/frontend_server/bin/server.dart --sdk-root=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk --platform-kernel-dill=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk/platform.dill $HOME/p/f/t11/flutter/flutter/examples/flutter_gallery/lib/main.dart

out: result 79256789-598c-4909-a9e4-0ef36d4c26ba
out: 'State&TickerProviderStateMixin^#U0^' is exported from both 'package:flutter/src/widgets/animated_cross_fade.dart' and 'package:flutter/src/widgets/animated_list.dart'.
...
out: Superclass has no method named 'hitTest'.
out: 79256789-598c-4909-a9e4-0ef36d4c26ba $HOME/p/f/t11/flutter/flutter/examples/flutter_gallery/lib/main.dart.dill
$
```

Example of interactive mode - communication via stdin/stdout:
```
$ dart $HOME/p/f/t11/flutter/engine/src/flutter/frontend_server/bin/server.dart --sdk-root=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk --platform-kernel-dill=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk/platform.dill --incremental

out: Frontend server is ready.
in: compile abc.dart
out: result fd99c0f9-12bb-4083-818e-2521d454fdc8
out: fd99c0f9-12bb-4083-818e-2521d454fdc8 abc.dart.dill
in: accept
in: recompile kuka
in: 123.dart
in: 456.dart
in: kuka
out: result d12f8d05-6c79-44f7-a775-1d3469e1be53
in: quit
$
```

* Add test. Cleanup dependencies.

* One more test with mocks

* Remove platform-kernel option. Refactored CompilerOptions. Clean up comments.

* Update license

* Use Uri.base.resolve consistently. Ensure folder path for sdk root. Fix test.

* Fix main_dart for frontend_server build target

* Reintroduce .packages file, add README.md, revert changes to licenses_flutter

* Run analyzer on frontend-server. Update .packages deps so tests can be run too.

* Add analyzer options file

* Clean up dependencies

* Add frontend_server files to license file back

* Fix comment in analysis_options.yaml

* Run frontend_server tests in travis

* Update licenses

* Change a+x permission on travis/test.sh

* pub get before pub run test

* Fix path to when

* Clarify accept/reject instructions

* Formatting, fixed docs, style

* Update license script to skip .travis.yml, when/example. Update license file.

* Update style nits

* Fix license

* Trim license extracted text. Fix licenses

* Update licenses_third_party signature

* Few more tests

* Update dart license

* Update dart license

* Style changes. Fix return value for Future<Null>
2017-08-21 12:55:17 -07:00
Jason Simmons
c80860ad1c Skip third_party/benchmark in the license source crawl (#3986)
Also regenerate sky_engine/LICENSE to include libtxt
2017-08-16 16:35:14 -07:00
Zachary Anderson
23036e515a Fixes for gypi -> gni change in Dart (#3977) 2017-08-15 07:44:27 -07:00
Jason Simmons
c826f8353f Improve support for x86 and x86_64 devices in flutter_gdb (#3953) 2017-08-07 15:15:36 -07:00
Carlo Bernaschina
64421f6717 Roll Dart to a67d798841ec6379c39c6cd20e9b867689df0e64 (#3936)
The new `dart_observatory_pub_packages_rev` dependent on the rolled `dart_revision` required the update of the licensing files
2017-07-31 16:26:06 -07:00
Alexander Aprelev
009d470d50 Generate flutter-flavoured dart patched sdk and platform.dill (#3814)
* Build Flutter patched-sdk with kernel artifacts

* Switch to new dart_host_toolchain argument mechanism to let dart patch_sdk know of host_toolchain.

* Update dart dependency

* Updated licenses

* Rename dart dependencies tag so they have just 'dart_'-prefixed dart's names.

* Fix indentation and line breaks for newly added deps.

* Add toolchain for windows host

* Update dart revision

* Licenses

* Update licenses

* Revert changes to licenses_third_party
2017-06-27 02:44:04 +00:00
Ian Hickson
ca7836108b Roll tonic to pick up my crash fixes (#3816) 2017-06-23 12:32:44 -07:00
Adam Barth
026f76d793 Depend on //lib/mtl rather than a subtarget (#3821)
This will make it easier to change mtl into a shared library.
2017-06-23 11:09:29 -07:00
Chris Bracken
fffe502d43 Revert libtxt integration (#3802)
* Revert "Fix licenses_lib golden file (#3798)"

This reverts commit d8ac43c3c9123fead15af3004d1e445834115bbd.

* Revert "Remove ParagraphConstriants (#3796)"

This reverts commit 8ccf767ff71c781588fb1e79cf3369604099a7cc.

* Revert "Reland "Initial integration of libtxt with Flutter alongside Blink." (#3793)"

This reverts commit 3c049219e1429c8e08632889b6c9e7b070bba534.
2017-06-20 09:59:56 -07:00
Gary Qian
3c049219e1 Reland "Initial integration of libtxt with Flutter alongside Blink." (#3793)
* Transition to Hybrid lib/txt and blink text system.
2017-06-19 15:21:41 -07:00
Ian McKellar
d2c77f973d Revert "Initial integration of libtxt with Flutter alongside Blink." (#3785)
* Revert "Enable line join styles and miter limit. (#3777)"

This reverts commit 5403f65bcad98bd0d434cae590e2a337a1ea218c.

* Revert "Revert "Update switches to use StringView." (#3784)"

This reverts commit 80f039ff324b827cc17567867bd17c788277b0cf.

* Revert "Initial integration of libtxt with Flutter alongside Blink. (#3771)"

This reverts commit c548c65b5020653087b63f1f156741a1f95b5117.
2017-06-16 15:15:48 -07:00
Gary Qian
c548c65b50 Initial integration of libtxt with Flutter alongside Blink. (#3771) 2017-06-16 14:15:53 -07:00
George Kulakowski
06c91ff232 Use the new MX_OK mx_ (#3768) 2017-06-13 10:12:14 -07:00
P.Y. Laligand
3ddf163063 Fixed some analysis issues. (#3656) 2017-05-05 18:37:40 -07:00
Adam Barth
da0b1f5a36 Make microtask queue be per thread (#3644)
Previously, it was a static. Doesn't have much effect in practice because we
only use this microtask queue for main isolates, which exist on a single
thread.
2017-05-04 15:06:43 -07:00
Ian Hickson
ce9251b349 Remove the Android NDK and SDK from the license file. (#3627)
As advised.
2017-04-25 17:22:25 -07:00