446 Commits

Author SHA1 Message Date
Chinmay Garde
d52d3a4448 Wire up the interpreter on iOS devices. (#2648) 2016-05-06 15:37:59 -07:00
Jason Simmons
c0a5c08cd5 Roll Skia (#2658) 2016-05-06 12:04:57 -07:00
Jason Simmons
5d523cd94a Fixes for Dart/native conversion of some painting objects (#2656) 2016-05-06 10:40:17 -07:00
Adam Barth
c081845efc Remove Dart_GetField from Canvas interface (#2653)
These Dart_GetField calls show up on traces. This patch removes almost all of
them from the Canvas interface. We still have a few in drawAltas and
drawVertices, which will be removed in a later patch.
2016-05-05 19:56:41 -07:00
Adam Barth
8559ffe868 Remove GetField calls from compositing upload (#2647)
Now we grab the underlying primative values before exiting the VM.
2016-05-04 17:14:09 -07:00
Ian Hickson
d85ead8ec2 Add Path.contains, an API to hit test a Path (#2642) 2016-05-03 13:04:43 -07: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
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
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
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
9d19f93386 Do not create the service isolate when Dart is built in product mode (#2618) 2016-04-25 17:05:21 -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
7a919c0f58 record startup timestamp in Android; pass it to Dart timeline (#2612) 2016-04-22 13:41:38 -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
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
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
5704322798 Add a --deploy build option that enables Dart product mode (#2598) 2016-04-15 12:18:57 -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
Chinmay Garde
6a08207369 When looking for the host snapshotter, use the correct Dart toolchain. (#2588)
This matters when building for armv7 where we need the 32-bit snapshotter on the host.
2016-04-08 12:31:15 -07:00
Chinmay Garde
bac3af48a4 Remove SkyHeadless (#2587) 2016-04-08 11:20:28 -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
Chinmay Garde
31eae91cc2 Add dart:ui color to VM embedder entry points. 2016-04-05 12:42:17 -07:00
Devon Carew
4f39fd2169 Merge pull request #2575 from flutter/devoncarew-patch-1
Update jni.dart
2016-04-05 10:09:52 -07:00
Adam Barth
13f67343d0 Add support for backdrop filters in the compositor
Particularly, add support for blur filters to implement backdrop blur effects.
2016-04-01 17:15:36 -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
516c096d98 Fix encoded paragraph size 2016-03-30 09:38:39 -07:00
Adam Barth
5124a68e8e Merge pull request #2563 from abarth/paragraph_font
Add font styles to ParagraphStyle
2016-03-30 09:21:56 -07:00
Adam Barth
3ad1ea7b4b Fix build 2016-03-30 09:07:17 -07:00
Chinmay Garde
3a5dd866b2 Add static assert to check that all Dart wrappable instances are thread-safe reference-countable. 2016-03-29 16:30:26 -07:00
Adam Barth
d3d3e47b0a Add font styles to ParagraphStyle
Also, rename TextStyle#lineHeight to height.
2016-03-29 15:28:28 -07:00
Jason Simmons
6a5533ca05 Merge pull request #2562 from jason-simmons/css_word_wrap
Set the CSS overflow-wrap property to enable line breaks within a word
2016-03-29 10:08:37 -07:00
Jason Simmons
e161e912e1 Set the CSS overflow-wrap property to enable line breaks within a word
Fixes https://github.com/flutter/flutter/issues/162
2016-03-28 16:56:47 -07:00
Adam Barth
9ecc54fb7e Don't crash on Dart compile errors
Instead, just unwind as usual.

Fixes #2890
2016-03-28 12:58:47 -07:00
Jason Simmons
b93e9419bd Support the JNI bridge in secondary isolates
This requires detaching from the JVM at thread shutdown using a callback
that was recently added to the Dart VM.
2016-03-28 10:03:18 -07:00
Adam Barth
2ca9e3317e Teach sky_snapshot about .packages
The sky_snapshot tool now understands the --packages command-line flag.

Progress on https://github.com/flutter/flutter/issues/1351
2016-03-28 00:43:42 -07:00
Adam Barth
baaceb79a9 Update Skia
Fixes https://github.com/flutter/flutter/issues/2670
2016-03-22 09:28:46 -07:00
Adam Barth
e301cef648 Update Skia
This required a bunch of changes because of the new sk_sp type Skia has
introduced into their API.
2016-03-21 14:59:49 -07:00
Hixie
9fbe031676 Better documentation for [Picture]. 2016-03-18 14:24:51 -07:00
Chinmay Garde
2bde94c703 Merge pull request #2525 from chinmaygarde/master
Update Dart dependency
2016-03-18 11:29:50 -07:00
Adam Barth
678d5f9bac Cleanup MojoServices in dart:ui
This patch cleans up the way we expose Mojo services into Dart. It also adds a
service provider for "view services," which will evetually contain the raw
keyboard service.
2016-03-18 10:52:13 -07:00
Adam Barth
410aac589b Flutter apps in Mozart should have reasonable Uri.base
Previously this value was the temp directory that we used to store the FLX
bundle. Now it's the URL given to us by MojoShell.
2016-03-18 09:53:44 -07:00
Chinmay Garde
0616669659 Update Dart dependency 2016-03-17 17:51:02 -07:00
Ian Hickson
138fae117a Merge pull request #2520 from Hixie/addPerformanceOverlay-docs
Performance Overlay fixes
2016-03-17 17:21:26 -07:00
Adam Barth
2838055627 Remove Paragraph#paint
We now use Canvas#drawParagraph.
2016-03-17 17:20:26 -07:00