49 Commits

Author SHA1 Message Date
Todd Volkert
2cf8b14487 Add config properties to specify snapshot blob file names. (#2943)
* Add config properties to specify snapshot blob file names.

This adds the ability of the shell to override the default
dart aot snapshot blob file names, and it wires up Android's
FlutterMain to recognize the properties in the app's manifest.

This will be used for flutter applications that build their
binary snapshots into files other than the default ones
that the engine uses.
2016-08-18 16:27:16 -07:00
John McCutchan
b8c1fe7e46 Fix Android keyboard in hot mode (#2944) 2016-08-18 14:00:25 -07:00
John McCutchan
1c59ddef0e Send richer service protocol respones from the Shell (#2929) 2016-08-16 12:16:41 -07:00
Adam Barth
4cab94e949 Invert the relationship between lib/ui and sky/engine (#2920)
Now lib/ui depends on sky/engine rather than the reverse.
2016-08-12 16:12:07 -07:00
Todd Volkert
46e06cd91a Pass runtime_mode gn arg through to ShouldEnableCheckedMode() (#2919)
https://github.com/flutter/flutter/issues/4866
2016-08-12 14:45:25 -07:00
Adam Barth
f8d80c4617 Finish removing //flutter/tonic (#2917)
This pulled a refactoring of how we keep track of the primary threads.
2016-08-12 12:05:48 -07:00
Adam Barth
9c09565712 Update paths to account for buildroot 2016-08-09 13:52:15 -07:00
Adam Barth
5f75e0bf30 Remove more //base dependencies from //sky/shell (#2889)
This patch hides the base::SingleThreadedTaskRunner, which pulls a big
switchover to ftl::WeakPtr and std::function.
2016-08-08 20:00:37 -07:00
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
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
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
Chinmay Garde
ace8307aab Asynchronous texture upload. (#2837) 2016-08-01 16:05:45 -07:00
Jason Simmons
f12f9b448e Restore "Capture Skia trace events" (#2834) 2016-07-27 11:31:31 -07:00
Ian Hickson
4f78a67dd4 Revert "Capture Skia trace events" (#2831) 2016-07-27 08:51:03 -07:00
Jason Simmons
eae38aef3a Capture Skia trace events (#2830) 2016-07-26 17:06:06 -07:00
John McCutchan
0b1986a5c1 Fix DevFS on Android devices (#2801) 2016-07-18 12:16:57 -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
211f2d4afb Revert base roll and its fallout.
Updating base turns out to be more complicated than I thought.

This reverts commit daa822aae70a8ab860ed8f085cdadf6987c28d03.
This reverts commit c38428c7b98951e2cccf6b38881eabd87786da49.
This reverts commit 4b73a8a0486d45081c5dde4e2c51c32d1376250b.
2016-06-15 17:30:27 -07:00
Adam Barth
4b73a8a048 Roll base (#2761)
Update base, gn, and their clients.
2016-06-15 14:52:53 -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
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
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
John McCutchan
4d7272446d Auto select Observatory port on Android and iOS simulators 2016-03-17 11:43:41 -07:00
yjbanov
7e2a05427b [shell] fix missing header in shell.cc 2016-03-09 17:26:10 -08:00
Chinmay Garde
274f98ef0d If a custom ICU data file path is specified, attempt loading from that instead of loading from the default path. 2016-03-09 11:27:52 -08:00
Adam Barth
09e87f5865 Enable background compilation by default
We've been enabling it in the flutter tool for a while. This patch enables by
default in general.
2016-02-24 14:55:58 -08:00
Adam Barth
b09cd543bd Add an off-by-default flag for background compilation 2016-02-12 16:01:18 -08:00
Chinmay Garde
b8457c90f8 Log to the console in case the manually specified observatory port is malformed. 2016-02-08 15:48:28 -08:00
Chinmay Garde
930bfee5dc Wire in the device observatory port while initializing the Dart VM 2016-02-08 15:43:12 -08:00
Devon Carew
3c83f895ed some work towards a --start-paused flag 2016-02-02 11:44:01 -08:00
Adam Barth
142c5dc5ec Remove almost all uses of base::scoped_ptr
We now use std::unique_ptr more consistently.
2016-01-27 01:05:47 -08:00
Adam Barth
b4377c93dd Remove RuntimeEnabledFeatures
This complex machinery made sense for Blink, which has hundreds of
developers. In our case, we're just moving around two bools. We can do
that in a much simpler way.
2015-12-29 22:27:18 -08:00
Chinmay Garde
ee55c83609 Add startup trace events 2015-12-04 14:40:12 -08:00
Chinmay Garde
0bc34f0394 Allow tracing during startup 2015-12-03 11:01:45 -08:00
George Kulakowski
e60e50386a Add fnl build configuration 2015-11-18 13:07:19 -08:00
Adam Barth
4e0ec4c23b Fix the units for Pointer events
The time_stamp is supposed to be in microseconds. Previously we were using
milliseconds.
2015-11-17 11:21:58 -08:00
Adam Barth
ae58ba7c8c Bring sky_shell.mojo up to feature parity with sky_viewer.mojo
I believe this patch implements all the remaining features from
sky_viewer.mojo.
2015-11-16 17:19:35 -08:00
Adam Barth
9dc71cb51f Refactor how we wire up platform services
Now the control flow for wiring up platform services starts in the
platform-specific code. Previously we started in shared code, which was
imposing constraints on the startup sequence for all platforms. Now that we
start in platform-specific code, we'll be able to add better support for Mojo
in a future patch.
2015-11-16 12:24:28 -08:00
Adam Barth
96b847cd43 Wire sky_shell.mojo up to native_viewport
After this patch, we can execute Dart code an create an X window. There's a
sketch of some graphics code, but it's not wired up yet.
2015-11-13 14:00:34 -08:00
Adam Barth
04391cf941 Add a basic sky_shell.mojo
Currently sky_shell.mojo can't load any Flutter apps or draw to the screen, but
that will come in later patches.
2015-11-11 14:06:55 -08:00
Adam Barth
1946924b16 Introduce IO thread for background tasks
Currently we run some tasks on the UI thread that shouldn't block the frame,
such as decoding images. This patch introduces a background thread on which we
can run these tasks.
2015-10-09 06:37:57 -07:00
James Robinson
5bb2480bcd Update to Mojo 4e4d51ce28a8edcb32b9c7f555e38e2ae84a825e, update deps
This updates to mojo 4e4d51ce28a and mojo sdk 711a0bcfb141b4 and updates the sky
package's pubspec.yaml dependency to '>=0.1.0 <0.2.0' to be compatible with
the current mojo package. This includes an update to the Mojo Dart generator to
produce real classes for enums and the corresponding updates for users of the
KeyboardType enum in Sky as well as one scoped_ptr->std::unique_ptr in shell
corresponding to a change in the Mojo EDK.

When a new version of the sky and sky_services package are pushed this will fix
domokit/mojo#440.
2015-09-23 17:26:46 -07:00
James Robinson
c8eff5e44f Update to mojo d259eb58aa59e14a13d5e0dc3984b855b475ba09
This updates to mojo commit d259eb58aa59 and limits the roll script to
only pull in the parts of //mojo that are currently being used. More
stuff will be dropped in the future.
2015-08-25 14:56:25 -07:00
Chinmay Garde
cfec10d80d Make |TracingController| platform agnostic and enable collecting
traces from base and the shell view dart isolate simultaneously.
Trace files contain samples from multiple sources and must be merged
separately
2015-08-13 12:51:24 -07:00
Adam Barth
693dd4822f Call DiscardableMemoryAllocator::SetInstance()
Apparently this can cause a crash when when we try to render an emoji at a
different size than the emoji font's native bitmap size. I'm not sure how to
reproduce the issue. I'll ask Hixie when he gets back.

Currently we just use regular memory. In the future, we should actually use
discarable memory.

Fixes #203
2015-07-30 12:55:20 -07:00
Adam Barth
f4e359f19d Refactor common startup code into shell.cc
Also, make the initialization order the same on every platform.
2015-07-30 10:53:23 -07:00
Collin Jackson
a64559ab70 After running filter-branch, move root directory into sky/ 2015-07-16 11:54:25 -07:00