410 Commits

Author SHA1 Message Date
Jason Simmons
a0fd858c22 Remove the intents for controlling tracing on Android (#2639)
The flutter tool is now using the observatory's HTTP-based interface
2016-05-02 16:00:59 -07:00
Adam Barth
6740388a4a Remove legacy interfaces from activity.mojom (#2638)
These are now offerred by the Flutter platform services (e.g., SystemChrome,
SystemSound, HapticFeedback).
2016-05-02 14:24:40 -07:00
Adam Barth
76d5cf230a Don't spin hot in MessagePumpGLFW (#2636)
When there are no pending timers, we should sit in glfwWaitEvents instead of
continuously calling glfwPollEvents. This reduces CPU utilization
significantly.
2016-05-02 10:37:52 -07:00
Adam Barth
6e3228cf81 Revert "Record layer tree to an SkPicture before rasterization (#2628)"
This reverts commit 5bc5c7b5246d62af70780ec7ba0203ac3f318226.

This commit appears to have caused
https://github.com/flutter/flutter/issues/3658
2016-05-01 14:23:13 -07:00
Adam Barth
716cbd24ff Remove FNL build configuration (#2635)
These build definitions no longer work with the current version of FNL. Once
FNL is ready, we'll add new build definitions that work for it again.
2016-04-29 12:15:15 -07:00
Adam Barth
d980ee5d6f Clarify which source files are part of Flutter.framework (#2630)
All the headers for Flutter.framework are now in framework/Headers and all the
source files for Flutter.framework are now in framework/Source. Previously it
was unclear that FlutterAppDelegate and main_ios.mm weren't part of
Flutter.framework. (They still build as part of the framework, but that's
something I'll fix in a later patch.)
2016-04-28 12:33:19 -07:00
Adam Barth
5bc5c7b524 Record layer tree to an SkPicture before rasterization (#2628)
This lets Skia run an optimization pass over the SkPicture before actually
issuing GL commands.
2016-04-28 10:15:38 -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
Adam Barth
625e937442 Update Skia (#2626) 2016-04-27 14:59:06 -07:00
Todd Volkert
a6b99b82dc Merge pull request #2594 from tvolkert/work
Report Flutter widgets to iOS accessibility API
2016-04-25 17:00:28 -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
6974f7794a libdart_precompiled_runtime is gone; fix ios build (#2613) 2016-04-22 16:31:32 -07:00
Yegor
7a919c0f58 record startup timestamp in Android; pass it to Dart timeline (#2612) 2016-04-22 13:41:38 -07:00
James Robinson
24adf9dbdc Merge pull request #2611 from jamesr/better_tracing
Improve tracing in graphics stack, esp on Mojo
2016-04-22 12:38:55 -07:00
Adam Barth
b9ff394182 Break dependency from Layer to PaintContext (#2609)
Instead, make Layer::Paint take a new PaintContext that has just exactly
the state that it needs, mirroring PrerollContext. Also, rename
PaintContext to CompositorContext because it holds the context for the
whole compositor.
2016-04-21 23:05:41 -07:00
Adam Barth
dda79d0312 Fix style in //flow/instrumentation (#2608)
This patch makes these files better match Google C++ style.

Also, add the engine lap time when running on Mojo.
2016-04-21 22:36:46 -07:00
Tony Gentilcore
4062813e70 Set GLContext before calling MGLEcho. 2016-04-21 15:57:21 -07:00
Adam Barth
70d40c91d3 Use MGLEcho to provide back pressure for Mozart (#2606)
Related to https://github.com/domokit/mojo/issues/684
2016-04-21 14:25:00 -07:00
Adam Barth
d813b3d58c Update to mojo a37b8c21cedc3d1b94f7be276e513cdea88e09ac 2016-04-21 14:12:34 -07:00
Adam Barth
622afbb75c window.render should render immediately (#2603)
Previously we would hold the layer tree until the we returned from Dart. Now we
send the layer tree to the rasterizer thread immediately.

Fixes #212
2016-04-20 13:37:40 -07:00
Adam Barth
30e4e58720 Add raw keyboard support to glfw (#2601)
This patch maps glfw's keyboard input to the raw keyboard Mojo interface.
2016-04-20 12:20:40 -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
Ian Hickson
68cc67f2ec Merge pull request #2597 from Hixie/3177
Fix crashes with LastPass, Now-on-Tap, DashLane
2016-04-14 18:08:05 -07:00
Jason Simmons
c53ddc5c5f Allow detach of an Android PlatformView that still holds a window (#2591)
The PlatformView may not receive the surfaceDestroy notification before its
activity is destroyed (this was happening on the Android emulator).

If this happens, allow the PlatformView to be detached and have it release
its window during destruction.
2016-04-11 11:08:14 -07:00
Chinmay Garde
cc3801a431 Leak the embedder message loop on Mac. (#2585)
Dart has the tendency to call `exit()` on arbitrary threads. This causes
the assertion to trip. Since this should only happen when Dart is
running the shell in non-interactive mode, we leak the message loop
without proper shutdown.

We should never hit this path on iOS.
2016-04-08 11:00:07 -07:00
Adam Barth
a299d69f6c Rename PlatformViewAndroid to io.flutter.view.FlutterView (#2586)
This patch cleans up the public Java interface to the Flutter engine. The code
that we intend to be re-usable is now in the io.flutter.view package. The two
public classes are:

 * FlutterMain, which controls initialization of the system, and
 * FlutterView, which is an Android view that hosts a Flutter app.

We'll need to interate on these interface over time, but at least these names
are more reasonable.
2016-04-08 09:39:14 -07:00
Jason Simmons
30548c0ea7 Return the content-length header in the diagnostic server 2016-04-06 17:21:18 -07:00
Chinmay Garde
520a563545 Dont destroy the platform message loop on the Mac because the message pump is still not collected when the embedder state goes away. 2016-04-06 17:13:24 -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
Adam Barth
0edb28b1a7 Fix Mozart crash
Fixes #3095
2016-04-05 12:02:37 -07:00
John McCutchan
48d4d99f9e Merge pull request #2574 from johnmccutchan/fix_canonicalization
Fix uri canonicalization in DartLibraryProviderFiles
2016-04-05 10:24:08 -07:00
Adam Barth
2123899cc6 Jank insted of flicker in Mozart
Currently there's no good way of synchronizing layout changes with children in

Mozart. Previously we flickered when we were out of sync with our child. Now we

jank instead because that's a more acceptable artifact while we work on

improving Mozart.



Fixes https://github.com/flutter/flutter/issues/3024
2016-04-04 12:17:39 -07:00
Chinmay Garde
37847ca4c4 Merge pull request #2571 from chinmaygarde/timeline
Update thread names in the Dart timeline.
2016-04-04 11:43:17 -07:00
Collin Jackson
348c6f24a4 Allow third-party services to listen to openURL on iOS and support Google Sign-In 2016-03-31 18:15:18 -07:00
Chinmay Garde
f470aad74b Merge pull request #2567 from chinmaygarde/master
Update Dart revision to pull in changes related to tracing and add more trace types to TracingController
2016-03-30 18:07:17 -07:00
Chinmay Garde
0378099f02 Update Dart revision to pull in changes related to tracing and add more trace types to TracingController 2016-03-30 17:33:02 -07:00
Adam Barth
4e6fd739d1 Merge pull request #2566 from abarth/roll_mojo
Update Mojo
2016-03-30 15:27:57 -07:00
Chinmay Garde
d43bae3eeb Don't crash if the scene has no root layer set. 2016-03-30 15:14:17 -07:00
Adam Barth
3f7d5ef6f8 Update code to account for Mozart changes
The layout protocol in Mozart changed. Now we need to pipe a scene version
through the system to the compositor.
2016-03-30 15:13:58 -07:00
Adam Barth
6c43bd904f Fix Mac build 2016-03-28 15:55:05 -07:00
Adam Barth
c4e182743e Teach SkyShell about .packages files
SkyShell now supports --packages instead of --package-root.
2016-03-28 12:51:56 -07:00
Adam Barth
e46fca1446 Add a --use-glfw flag to //sky/tools/gn
This flag makes it easier to enable the glfw configuration.

Also, fix an unrelated build error in loader.cc.
2016-03-28 09:58:53 -07:00
Chinmay Garde
5c285787c8 Merge pull request #2551 from chinmaygarde/master
Directly load the bundle at a known path instead of doing a search by identifier.
2016-03-25 13:28:00 -07:00
Chinmay Garde
10f23121e3 Directly load the bundle at a known path instead of doing a search by identifier.
Also fixes an issue where a error would get logged even though loading from the precompiled application bundle was successful.
2016-03-25 12:33:22 -07:00
Adam Barth
a68209fe83 Merge pull request #2549 from abarth/glfw_32
Update to GLFW 3.2
2016-03-25 12:26:20 -07:00
Adam Barth
dfaf91821d Add support for mouse events
The Material Gallery is now fully interactive.
2016-03-25 12:16:11 -07:00
Chinmay Garde
3d9aaf5a85 Explicitly load and unload the precompiled code bundle.
If called via `bundleWithIdentifier:` the bundle may not have been loaded. This makes it explicit.
2016-03-25 12:11:50 -07:00
Adam Barth
0ef388f53f Adds MessagePumpGLFW
This patch teaches //sky/shell how to integrate with the GLFW runloop. After
this patch, we can correctly resize the GLFW window.
2016-03-25 10:17:38 -07:00
Adam Barth
287d187e22 Add GLFW platform to //sky/shell 2016-03-24 17:15:33 -07:00
Adam Barth
3187dd13e2 Update to mojo 891577b0517de5aeca538d99669787c6dc72412a 2016-03-23 09:36:02 -07:00