139 Commits

Author SHA1 Message Date
Adam Barth
11dbbd0b24 Remove more //base dependencies from //sky/engine (#2887) 2016-08-08 14:52:52 -07:00
John McCutchan
dedab3e6e7 Add an association between FlutterViews and Dart Isolates to the PlatformView service protocol support (#2886) 2016-08-08 13:04:15 -07:00
Adam Barth
13af58bfc4 Remove //base dependency from asset system (#2885)
This patch centralizes the asset bundle processing in //flutter/assets and
removes the //base dependency from the code.
2016-08-08 12:56:13 -07:00
Adam Barth
aa81407796 Attempt to fix build 2016-08-07 13:49:40 -07:00
Adam Barth
6c69724859 Remove data_pipe_utils from //flutter/tonic 2016-08-07 12:35:25 -07:00
Adam Barth
9668ba422f Remove //base from DartController 2016-08-07 12:35:25 -07:00
Adam Barth
dfd6f99240 Remove //base depedency from DartDebugger 2016-08-07 12:35:25 -07:00
Adam Barth
33da97b1f6 Remove more //base dependencies (#2880) 2016-08-05 20:31:30 -07:00
Adam Barth
1c9c7aa826 Switch to using //lib/tonic's DartWrappable (#2878)
This removes most (all?) of our dependency on base::RefCountedThreadSafe.
2016-08-05 16:43:35 -07:00
Adam Barth
b2c296c52b Fix build 2016-08-05 09:20:07 -07:00
Adam Barth
f0967c24e5 Remove more //base dependencies (#2870)
WTF is now //base clean.
2016-08-05 00:00:24 -07:00
Adam Barth
5feb8266f8 Switch //sky/engine to ftl::TaskRunner (#2866)
The ftl::TaskRunner is still based on a base::MessageLoop, but this patch paves
the way to replace the message loop on Fuchsia.
2016-08-04 19:25:04 -07:00
John McCutchan
b13b79b331 Implement RunInView service protocol extension (#2862) 2016-08-04 14:10:27 -07:00
John McCutchan
c1dbf57395 Add DirectoryAssetBundleService to engine (#2827) 2016-08-03 18:01:10 -07:00
John McCutchan
3ed2fb026e Add collection of PlatformViews to the Shell and allow them to be queried over the service protocol (#2861) 2016-08-03 15:55:31 -07:00
Adam Barth
1e250cfc5f Migrate more code to //lib/tonic (#2860)
* Adopt //lib/tonic/logging

* Adopt //lib/tonic/scopes

* Adopt //lib/tonic/parsers
2016-08-03 14:43:24 -07:00
Adam Barth
bc19388819 Switch to //lib/tonic's DartConverter (#2858)
Also, switch over to //lib/tonic's typed data classes.
2016-08-03 14:09:07 -07:00
Adam Barth
1c68b123c6 Reland "Remove more //base dependencies" (#2857)"
Hopefully this will build this time.
2016-08-03 12:58:35 -07:00
Ian Hickson
abb9c78d57 Revert "Remove more //base dependencies" (#2857) 2016-08-03 11:29:20 -07:00
Adam Barth
bce0d690a4 Remove more //base dependencies (#2856) 2016-08-03 10:35:14 -07:00
John McCutchan
b23f07e5c7 Initial modified libraries support (#2845) 2016-08-01 12:30:44 -07:00
Chinmay Garde
b164edaea8 Revert "Only suppress the sampling profiler on Mac/iOS when the engine is in …" (#2814) 2016-07-21 14:18:05 -07:00
Ryan Macnak
3a4e0a0c80 Only suppress the sampling profiler on Mac/iOS when the engine is in debug mode. Makes the profiler available when using 'flutter run --profile' for iOS. (#2804)
Don't pass the --background-compilation vm flag as it has been enabled by default for quite awhile now.
2016-07-19 10:59:49 -07:00
John McCutchan
0b1986a5c1 Fix DevFS on Android devices (#2801) 2016-07-18 12:16:57 -07:00
John McCutchan
b0d50e4860 Fix service isolate startup (#2788) 2016-07-11 10:47:26 -07:00
John McCutchan
a757125bae Avoid re-entering the message loop while reloading. Fixes on stack reloading in Flutter embedder. (#2775) 2016-06-30 07:44:54 -07:00
Chinmay Garde
78af411d47 Fix leaky descriptor in dart_init and use the correct macro to handle EINTRs on close syscall wrappers. (#2765)
* Use IGNORE_EINTR instead of HANDLE_EINTR when using the `close` syscall wrapper.
* Don't leak the file descriptor used to memory map Dart related artifacts.
2016-06-17 12:04:30 -07:00
Adam Barth
12fab2f28a Move dart:jni to //flutter/lib/jni (#2744)
This patch disentangles dart:jni from //sky/engine and moves it into
//flutter/lib/jni. Eventually dart:ui will move into a peer directory.
2016-06-11 09:15:39 -07:00
Adam Barth
633d674c48 Move tonic to //flutter/tonic (#2742)
Now that tonic doesn't depend on anything in //sky/engine anymore, we
can move the code to a location where its dependencies are clearer.
2016-06-10 22:36:38 -07:00
Todd Volkert
d289a3180c Rename app.so -> app.dylib (#2738) 2016-06-10 15:00:00 -07:00
Jason Simmons
7a49b37a74 Implement a protocol for discovering active Flutter instances on Android (#2720)
Tools can send a broadcast intent that will cause Flutter processes to
write their names and observatory ports to the log in JSON format.
2016-05-27 17:11:34 -07:00
Adam Barth
e1dacd833f Switch sdk_xcode_harness to use flutter build aot (#2706)
Switch sdk_xcode_harness to use flutter build aot

This patch moves a bunch of complexity out of FlutterApplication.xcodeproj and
into `flutter build aot`, which will make it easier for developers to create
their own FlutterApplication.xcodeproj.
2016-05-24 16:22:33 -07:00
Ryan Macnak
1b936794aa Use a duration event for "FlutterEngineMainEnter" so about:tracing will use it as time 0. (#2703) 2016-05-19 16:14:07 -07:00
Chinmay Garde
ef8c8ca497 Don't include the observatory data blob in the binary in product modes. (#2686) 2016-05-13 21:34:15 -07:00
Jason Simmons
678409b8a1 Revert "Plumb dart timeline events to mojo:tracing. (#2595)" (#2670)
This needs to be updated for the latest Mojo APIs
2016-05-10 12:05:17 -07:00
Przemysław Pietrzkiewicz
ef589f99bc Plumb dart timeline events to mojo:tracing. (#2595)
This patch:

 - makes dart traces (coming from the VM and the timeline API)
   available to mojo:tracing
 - adds --vm-complete-timeline parameter, which makes the Dart VM enable all
   categories of timeline traces from the beginning, allowing to do startup
   tracing

This is based on the equivalent support in dart content handler.

Fixes https://github.com/flutter/flutter/issues/3162.
2016-05-10 11:08:36 -07:00
Chinmay Garde
7b3ca935d5 In case the Dart VM cannot be initialized, log the reason before terminating the process. (#2668) 2016-05-09 17:30:55 -07:00
Chinmay Garde
d52d3a4448 Wire up the interpreter on iOS devices. (#2648) 2016-05-06 15:37:59 -07:00
Jason Simmons
f1a8c5468d Load the precompiled snapshot from a group of asset files on Android (#2621)
Previously the AOT snapshot was packaged as a dynamic library (similar to the
scheme used on iOS).  This change eliminates the need for a native code
toolchain when building for AOT.
2016-04-27 15:35:25 -07:00
Jason Simmons
9d19f93386 Do not create the service isolate when Dart is built in product mode (#2618) 2016-04-25 17:05:21 -07:00
Jason Simmons
b478563ea6 Support ahead-of-time compilation on Android in the engine (#2614)
This include build system changes for selecting Dart's precompiler mode
plus a way to locate and load the precompiled snapshot library from an
Android application
2016-04-25 10:45:23 -07:00
Yegor
7a919c0f58 record startup timestamp in Android; pass it to Dart timeline (#2612) 2016-04-22 13:41:38 -07:00
Jason Simmons
e6ce967fce Roll Dart and set dart_runtime_mode in the GN script (#2610) 2016-04-22 11:02:41 -07:00
Jason Simmons
48de25e19b Do not modify the set of active streams within the embedder tracing callbacks (#2600)
Dart invokes Start/StopTracing callbacks within the _setVMTimelineFlags service
method whenever the embedder timeline stream toggles on or off.  Flutter's
implementation of these callbacks was modifying the set of enabled streams,
which could override the intended behavior of _setVMTimelineFlags.

Start/StopTracing will now only control Flutter's embedder-specific log.

Also needed to change the Flutter engine's --trace-startup flag to set the
corresponding timeline stream flag on the Dart VM.
2016-04-19 10:38:22 -07:00
Jason Simmons
5704322798 Add a --deploy build option that enables Dart product mode (#2598) 2016-04-15 12:18:57 -07:00
Jason Simmons
7182341f85 Merge pull request #2579 from jason-simmons/skia_skp_capture
Add an HTTP server for exporting Flutter debug info and a request han…
2016-04-06 10:22:46 -07:00
Jason Simmons
b93e9419bd Support the JNI bridge in secondary isolates
This requires detaching from the JVM at thread shutdown using a callback
that was recently added to the Dart VM.
2016-03-28 10:03:18 -07:00
Chinmay Garde
2bde94c703 Merge pull request #2525 from chinmaygarde/master
Update Dart dependency
2016-03-18 11:29:50 -07:00
Adam Barth
410aac589b Flutter apps in Mozart should have reasonable Uri.base
Previously this value was the temp directory that we used to store the FLX
bundle. Now it's the URL given to us by MojoShell.
2016-03-18 09:53:44 -07:00
Chinmay Garde
0616669659 Update Dart dependency 2016-03-17 17:51:02 -07:00