6830 Commits

Author SHA1 Message Date
Yegor
6907cdcffd provide link to instructions for building for iOS
Fixes #https://github.com/flutter/flutter/issues/3689
2016-05-03 07:32:14 -07:00
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
Matt Perry
bec2c43aeb Merge pull request #2634 from mpcomplete/backspace
Fix handling of backspace in text input.
2016-04-29 14:02:52 -04:00
Adam Barth
a25959370a Remove the old Paragraph API (#2633)
All the clients of migrated to the new ParagraphConstraints API.
2016-04-29 09:49:34 -07:00
Adam Barth
28fbcc3a38 Use LayoutUnit to normalize infinity properly (#2632)
In the new ParagraphConstraints code path, we weren't converting through
LayoutUnit, so we weren't getting the right overflow behavior for extremely
large double values. This resulted in test/rendering/block_test.dart failing.
2016-04-28 16:11:16 -07:00
Adam Barth
c0bb843311 Remove ScriptSnapshotter from precompilation SDK (#2631)
We don't need to use an explict version of the script snapshotter that is
packaged with the iOS SDK. Instead, we can rely on the flutter command having a
working snapshotter.
2016-04-28 13:30:38 -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
6829d7da5e Fix AOT build for iOS (#2629) 2016-04-28 11:23:17 -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
Adam Barth
7a186960d7 Add ParagraphConstraints (#2622)
This patch begins to update the Paragraph interface to something sensible. It
introduces a ParagraphConstraints object that is passed to layout() to control
the layout of the paragraph. Once clients are migrated over, the argument will
become required.
2016-04-28 09:38:08 -07:00
Adam Barth
fcf3a6e2ab Fix iOS build 2016-04-27 15:46: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
Adam Barth
ac1b5667a4 Use the GrGLCreateNativeInterface_glfw.cpp from Skia (#2627)
Instead of our own shadow copy.
2016-04-27 15:11:56 -07:00
Adam Barth
625e937442 Update Skia (#2626) 2016-04-27 14:59:06 -07:00
Seth Ladd
402efb9836 Explicit import instructions in the library-level docs (#2623)
Explicit import instructions in dart:jni
2016-04-27 12:40:49 -07:00
Seth Ladd
15824398bc Explicit import instructions for dart:ui (#2624) 2016-04-27 12:34:28 -07:00
Jason Simmons
1143592b1d Roll Dart to 14ec00f86bbc893f1c731ea36afb1b98d8cd77cc (#2620) 2016-04-26 12:52:25 -07:00
Jason Simmons
0fd6fce9f4 Remove a redundant line from the gn script (#2619) 2016-04-25 17:05:31 -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
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
0629d36a79 Fix the dist target when building in AOT (deploy) mode on Android (#2617) 2016-04-25 15:37:48 -07:00
Adam Barth
3d35f392c1 Remove the extra lints from _embedder.yaml (#2616)
These were forcing our customers to obey these lints, but not all of our
customers like them. We might enable some of these in the future if they have
concrete benefits (e.g., faster generated code when compiling ahead-of-time).
2016-04-25 11:31:48 -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
Adam Barth
71a211ba36 Improve docs for window.size (#2615)
This would have answered a question we received on flutter-dev.

Fixes https://github.com/flutter/flutter/issues/3517
2016-04-25 10:22:29 -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
Jason Simmons
e6ce967fce Roll Dart and set dart_runtime_mode in the GN script (#2610) 2016-04-22 11:02:41 -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
Adam Barth
ff021d7b42 Improve paint bounds computation in flow (#2607)
We now compute the bounds for all container layers, including clips, and
use those bounds to tighten down our clips and save layers.
2016-04-21 21:50:44 -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
Ryan Macnak
977484109b Merge pull request #2605 from rmacnak-google/roll-dart
Roll dart to ccfd19bfd775c7cfc400aeda2c08fd821616cc82.
2016-04-21 12:19:12 -07:00
Adam Barth
7fc65fd19f Make OpacityLayer hit SkRecordNoopSaveLayerDrawRestores (#2604)
Previously we were applying opacity in a different way than Skia
expects. Now we use the exact pattern that Skia expects so that we hit
more optimizations inside SkRecordOptimize.

After this patch, we don't actually get the optimization because we
don't yet run SkRecordOptimize over the composited tree. A later patch
will actually cause us to run SkRecordOptimize.
2016-04-21 07:55:37 -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
Devon Carew
284929b605 update _embedder.yaml (#2599) 2016-04-18 09:50:02 -07:00
Jason Simmons
5704322798 Add a --deploy build option that enables Dart product mode (#2598) 2016-04-15 12:18:57 -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
John McCutchan
c3504b519f Fix snapshotter deps file output (#2593)
- [x] Add the path not the url to the dependencies
2016-04-12 09:48:19 -07:00
Jason Simmons
9cb0aa1ac9 Enable compression when building flutter.jar (#2592)
Fixes https://github.com/flutter/flutter/issues/3234
2016-04-11 11:41:13 -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
Jason Simmons
4265c1008e Do not reuse the va_list in vprintf_stderr_common (#2590)
This is unsafe and was crashing on the Android x64 emulator
2016-04-08 15:20:13 -07:00