223 Commits

Author SHA1 Message Date
Jason Simmons
a9c22e9d8c Initial work toward exposing the Java native interface APIs in Dart 2016-01-07 15:06:35 -08:00
Collin Jackson
0d4185b4f6 Fix typo in application identifier 2016-01-04 12:21:13 -08:00
Adam Barth
241fc21055 Don't destory the engine when detaching from the window
Reading the Android docs, it sounds like an android.view.View can re-attach to
the window after detaching. Previously, we destroyed the engine when we
detached from the window. Now we wait for the activity to be destroyed.

Hopefully fixes #997
2016-01-04 10:39:09 -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
Jason Simmons
e55cf62694 Provide callbacks for activity pause and resume events 2015-12-15 18:01:36 -08:00
Adam Barth
9c3aac7c2f Remove //url
We don't use this anymore.
2015-12-11 11:20:23 -08:00
Jason Simmons
86e9b92679 Merge pull request #2168 from jason-simmons/roll_mojo_1210
Update to mojo b7c8cb12f05d3bc1351e65a4f9a84c5d1bcd1704
2015-12-11 09:43:46 -08:00
Jason Simmons
4a8402f7a1 Update to mojo b7c8cb12f05d3bc1351e65a4f9a84c5d1bcd1704 2015-12-10 16:21:45 -08:00
Chinmay Garde
4aa37e086a Load the application from the flx bundle on iOS simulator 2015-12-10 16:05:52 -08:00
Hixie
9236be1360 Fix mouse on linux. 2015-12-09 10:16:23 -08:00
Adam Barth
198094e427 Fix crash with empty rect
Don't attempt to draw with a zero-by-zero window.
2015-12-08 14:46:35 -08:00
Hixie
07aa429175 Fix pointers in mojo.
Make the mojo implementation of the pointer packet logic fake move
events when it would send ups or downs without corresponding moves.
2015-12-08 13:07:31 -08:00
Matt Perry
4b6b031130 Merge pull request #2152 from mpcomplete/updater.on
Turn on FLX updater.
2015-12-08 16:06:42 -05:00
Adam Barth
535afcb092 Improve the crash fix in rasterizer_mojo
The previous version can still crash if we try to draw between the time when we
initialize context_ and when we actually make the MGL context current.
2015-12-08 12:51:50 -08:00
Matt Perry
6a2f58091f Turn on FLX updater. 2015-12-08 14:41:32 -05:00
Adam Barth
535eb30855 Don't crash when RasterizerMojo::Draw happens without a context
If we don't have a context, we can't draw, so bail out early.
2015-12-08 11:32:30 -08:00
Jason Simmons
98427a2763 Tell Flutter about the host platform's locale 2015-12-07 14:27:22 -08:00
Chinmay Garde
4c8a138a29 Add a startup instant marker 2015-12-04 14:50:58 -08:00
Chinmay Garde
ee55c83609 Add startup trace events 2015-12-04 14:40:12 -08:00
Chinmay Garde
40bda43619 Name the main thread on mac 2015-12-04 14:25:11 -08:00
Chinmay Garde
95ba64b711 Allow enabling tracing in base without an instance of the tracing controller 2015-12-03 15:08:20 -08:00
Chinmay Garde
abe709013c Start tracing in base before a tracing controller instance is available 2015-12-03 14:56:55 -08:00
Chinmay Garde
72814b2712 Ensure GL context as soon as the accelerated widget is available 2015-12-03 14:54:32 -08:00
George Kulakowski
a371cceee1 Make RequestFrame less janky in the no vsync case
Instead of spamming the MessageLoop, guess that 16ms is a good amount of
time to wait
2015-12-03 14:36:00 -08:00
Eric Seidel
231ee08fd7 Add support on Android for --trace-startup
Now 'flutter start --trace-startup' can trigger this tracing
on Android

@chinmaygarde
2015-12-03 12:25:26 -08:00
Eric Seidel
d91d60d449 Give the java ui thread a name in trace files
@abarth
2015-12-03 11:25:04 -08:00
Chinmay Garde
0bc34f0394 Allow tracing during startup 2015-12-03 11:01:45 -08:00
Florian Loitsch
5fa49e11ad Merge pull request #2121 from floitschG/raster_pipe
Make rasterizer a mojo service.
2015-12-02 16:32:45 -08:00
Florian Loitsch
372355ad22 Make rasterizer a mojo service. 2015-12-02 16:28:39 -08:00
Eric Seidel
090d91fca9 Merge pull request #2126 from eseidelGoogle/startup_trace
Add various trace events for tracing startup
2015-12-02 12:29:47 -08:00
Eric Seidel
a92597ee07 Add various trace events for tracing startup
@abarth
2015-12-02 12:18:20 -08:00
Chinmay Garde
8b7ec29f18 Add back log statement used by Flutter tools to detect trace capture 2015-12-02 11:49:06 -08:00
Chinmay Garde
97efbef9dc Merge pull request #2122 from chinmaygarde/master
Allow capturing unified (Dart and base) traces from observatory
2015-12-01 13:27:29 -08:00
Chinmay Garde
34696334a4 Allow capturing unified (Dart and base) traces from observatory
* Start capturing via <obs_host>:<obs_port>/flutter_startTracing
* Stop capturing via <obs_host>:<obs_port>/flutter_stopTracing
2015-12-01 13:26:53 -08:00
George Kulakowski
e08bd29aba Flip y coordinate on FNL as a workaround 2015-11-30 14:10:07 -08:00
Adam Barth
68dfad8e92 Add --flx flag to load FLX files
Also, remove the --snapshot flag because using FLX files is the path we're
paving.
2015-11-27 23:14:07 -08:00
Adam Barth
97a375f096 Flutter for Modroid should use vsync
This patch teaches Flutter how to connect to the vsync service on Modroid.
Also, remove our now-redunant copy of vsync.mojom.

Fixes #589
2015-11-25 13:10:44 -08:00
krisgiesing
4dad72a7d2 Merge pull request #2109 from krisgiesing/remove_statics
Remove static data from Java keyboard-related service implementations
2015-11-24 15:38:35 -08:00
Kris Giesing
e37a1e0c38 Remove static data from Java keyboard-related service implementations
Fixes #299
2015-11-24 15:04:29 -08:00
Adam Barth
a9db805f58 Add system-level routing
We now respect the "route" field in Intents to load a route other than '/'.
Also, use popRoute rather than events to indicate that the framework has asked
us to go back.
2015-11-24 12:40:41 -08:00
Chinmay Garde
2863481966 Move all engine generated artifacts into a single FlutterResources
folder
2015-11-23 13:55:11 -08:00
Kris Giesing
d392aea9da Add support for IME on mojo/Linux 2015-11-20 15:02:56 -08:00
Adam Barth
e80be08b57 Fix Mac build 2015-11-19 14:53:05 -08:00
Collin Jackson
ca04a77540 Fix gn on iOS/Mac builds 2015-11-19 11:08:06 -08:00
Adam Barth
33288c2868 Fix Android build by adding missing dependency 2015-11-18 13:21:22 -08:00
George Kulakowski
e60e50386a Add fnl build configuration 2015-11-18 13:07:19 -08:00
Adam Barth
db2c9d43ce Remove sky_viewer.mojo
We now use flutter.mojo instead.
2015-11-17 14:32:57 -08:00
Chinmay Garde
9497a37460 Initialize the window_ ivar in PlatformView to gfx::kNullAcceleratedWidget 2015-11-17 12:04:03 -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
c9b7f2f7d4 Scrollable widgets don't fling in MojoShell
There's some confusion over the units for time_stamp. This patch works around
the issue. I've filed a bug (https://github.com/domokit/mojo/issues/541) to
figure out the right fix.

Also, rename the final target to flutter.mojo, which is a more descriptive
name.
2015-11-17 09:41:07 -08:00