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
Chinmay Garde
d81634b70d
Remove the unused gpu_mojo GN target and associated source files. ( #2945 )
2016-08-18 11:39:55 -07:00
Chinmay Garde
ace7ce8c01
Make the engine provide layer trees to the rasterizer via a pipeline. ( #2942 )
2016-08-18 11:23:15 -07:00
Chinmay Garde
2b2c70501e
Completely remove the platform/mojo shell. ( #2940 )
2016-08-17 15:13:05 -07:00
Chinmay Garde
44a77da98a
Depending on the type of bundle path specified, initialize either the zip or directory asset bundle. ( #2933 )
2016-08-16 13:10:33 -07:00
Chinmay Garde
5515d3e272
Don't initialize the ZIP asset bundle as a directory. ( #2932 )
...
Regression introduced in https://github.com/flutter/engine/commit/cee7fef7
2016-08-16 12:40:23 -07:00
John McCutchan
1c59ddef0e
Send richer service protocol respones from the Shell ( #2929 )
2016-08-16 12:16:41 -07:00
Adam Barth
b2058f8b3d
Rename SkyView to RuntimeController ( #2924 )
...
Also, rename SkyViewClient to RuntimeDelegate. These names are more
sensible.
This patch also cleans up the RuntimeDelegate a bit, for example by
removing support for flushing real-time events, which aren't used.
2016-08-13 00:18:58 -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
855e471c1f
Almost remove //flutter/tonic ( #2916 )
...
All that's left is two task runners, which should be statics somewhere.
2016-08-12 09:42:32 -07:00
Adam Barth
cee7fef78c
Simplify Dart application startup ( #2910 )
...
There are now three ways to start Dart applications:
1) From a precompiled snapshot
2) From a snapshot
3) From source
When loading from source, we no longer use the complex data pipe /
dependency catcher mechanism. Instead, we just load the source
synchronously from the file system. This is appropriate because running
from source is used only during development and not during production.
The previous design was built assuming we would want to run from source
over the network, which meant we needed to be able to load source
asynchronously over a high latency channel.
2016-08-11 10:23:17 -07:00
Jason Simmons
d90657feb1
Do not delete the JNI local reference to the surface passed to SurfaceCreated ( #2902 )
2016-08-10 14:33:34 -07:00
Chinmay Garde
a413ef0bb0
If GrGLContext setup fails, log OpenGL platform specific information. ( #2897 )
2016-08-10 11:26:26 -07:00
Adam Barth
78d70176a3
Fix iOS build
2016-08-09 16:39:09 -07:00
Adam Barth
9c09565712
Update paths to account for buildroot
2016-08-09 13:52:15 -07:00
Adam Barth
5f65a121ad
Remove //base dependency from engine.cc ( #2891 )
...
We now just call stat directly to test whether a file exists.
2016-08-09 11:21:02 -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
4fa03ded48
Remove //base dependencies from //sky/shell ( #2888 )
2016-08-08 14:58:25 -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
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
mikejurka
cb40b67f55
Roll mojo ( #2881 )
...
* Update to mojo ba13534f2b2af27a1d73e176f7406dbab25f8e14
* Fix build for updated mojo
* Fix android build. Undo some of the mojo roll.
* Fix iOS build.
2016-08-08 12:00:35 -07:00
Adam Barth
c65c32f602
Enable gn --check for more directories ( #2884 )
...
This required us to fix a backwards dependency from flutter/lib/ui to
sky/shell.
2016-08-07 13:52:24 -07:00
Adam Barth
d5232635f9
Remove //base from //flutter/tonic
2016-08-07 12:35:25 -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
Chinmay Garde
cebfd92d5b
Give the mac desktop its own VSync provider. ( #2877 )
2016-08-05 16:37:12 -07:00
Adam Barth
31cd9361ff
Remove more //base dependencies ( #2871 )
2016-08-05 10:14:32 -07:00
Adam Barth
f0967c24e5
Remove more //base dependencies ( #2870 )
...
WTF is now //base clean.
2016-08-05 00:00:24 -07:00
Jason Simmons
6394e04973
On Android, create a global resource context that is shared with all PlatformViews ( #2867 )
...
Previously we had created a resource context for each PlatformView which would
be destroyed when the PlatformView lost its surface.
Fixes https://github.com/flutter/flutter/issues/5200
2016-08-04 19:48:27 -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
Jason Simmons
d4b9ce9797
Unblock the Mojo main thread during rasterizer setup ( #2868 )
...
Fixes https://github.com/flutter/flutter/issues/4957
2016-08-04 16:52:54 -07:00
John McCutchan
b13b79b331
Implement RunInView service protocol extension ( #2862 )
2016-08-04 14:10:27 -07:00
Jason Simmons
603b0701a6
Do not pass a PlatformView weak pointer to the IO thread ( #2864 )
...
PlatformViews are owned by the UI thread
2016-08-04 11:14:17 -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
2629d5e73b
Remove a pile of dead code ( #2855 )
...
* Remove time
* Remove rand
* Remove array buffers
* Remove more code
* Remove more image decoding code
* Remove more code
* Remove old public API
* Remove more old public headers
* Remove layout test support
* Remove WebPrivateOwnPtr
* Remove WebString
* Remove worker pool
2016-08-03 09:14:34 -07:00
Chinmay Garde
1f03d60a27
Delay setting up the accessibility bridge till after the flutter view has appeared. ( #2854 )
2016-08-02 12:39:55 -07:00
Adam Barth
410bc4c313
Remove skia::RefPtr ( #2851 )
...
Also, remove the hacks that integrate Skia ref counting with WTF. Now we
just use sk_sp everywhere for managing Skia ref counts.
2016-08-01 22:21:37 -07:00
Adam Barth
a415e0e748
Fix Linux build
2016-08-01 16:35:08 -07:00
Chinmay Garde
ace8307aab
Asynchronous texture upload. ( #2837 )
2016-08-01 16:05:45 -07:00
Adam Barth
d6476a65c3
Port //flow to //lib/ftl ( #2847 )
...
This patch removes almost all //base dependency of //flow. The only dependency
left is on tracing.
2016-08-01 15:11:56 -07:00
John McCutchan
b23f07e5c7
Initial modified libraries support ( #2845 )
2016-08-01 12:30:44 -07:00
Jason Simmons
349cf38ba2
Another OpenGL library build system fix ( #2842 )
2016-07-28 12:02:42 -07:00
Jason Simmons
62772bbf66
Link to the OpenGL library to fix the host_debug_unopt build ( #2841 )
2016-07-28 11:24:08 -07:00
Jason Simmons
3dac5a71ea
Drop the last layer tree when tearing down the rasterizer ( #2836 )
...
The LayerTree may be holding references to obsolete Skia/GPU resources,
notably the GrGLGpu. The old GrGLGpu should be deleted before a new
GrGLGpu is created during the next rasterizer setup.
Fixes https://github.com/flutter/flutter/issues/5074
2016-07-27 15:31:50 -07:00