405 Commits

Author SHA1 Message Date
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
Hixie
389bc4b456 Performance Overlay fixes
- fix dartdocs for addPerformanceOverlay
- make PerformanceOverlayLayer honour its x, y, and height.
- fix the y axis of PerformanceOverlayLayer to only show 3x16ms, since
  if it's more than 16ms it really doesn't matter what it is.
- make the label on the PerformanceOverlayLayer show the worst time on
  record not the instantaneous time.
- pin the fps to a maximum of 60Hz
2016-03-17 17:14:04 -07:00
John McCutchan
a8ea37b714 Merge pull request #2515 from johnmccutchan/observatory_auto_port
Auto select Observatory port on Android and iOS simulators
2016-03-17 14:24:19 -07:00
Adam Barth
1e55e997de Add Canvas#drawParagraph
Fixes #2694
2016-03-17 12:38:09 -07:00
John McCutchan
4d7272446d Auto select Observatory port on Android and iOS simulators 2016-03-17 11:43:41 -07:00
Hixie
c650a0ba9b Flesh out docs for addPerformanceOverlay 2016-03-17 11:05:22 -07:00
Chinmay Garde
f5f8636cc6 Merge pull request #2502 from chinmaygarde/master
Wire up the TracingController to the the Dart embedder timeline API
2016-03-16 18:17:30 -07:00
Chinmay Garde
09972ad11c Wire up the TracingController to the the Dart embedder timeline API 2016-03-16 16:08:47 -07:00
Ian Hickson
4681428475 Merge pull request #2513 from Hixie/Path-docs
Path dartdocs
2016-03-16 12:43:42 -07:00
Hixie
610916bb51 Some Paint dartdocs (and style tweaks) 2016-03-16 11:23:02 -07:00
Hixie
59597a1550 Path dartdocs 2016-03-16 11:09:09 -07:00
Ian Hickson
3a48f5b18a Merge pull request #2509 from Hixie/paragraph-docs
Improve Paragraph dartdocs
2016-03-15 17:36:11 -07:00
Adam Barth
10294a70fb Mozart embedding can see crazy width/height
We should initialize the width and height of the display to something
reasonable.
2016-03-15 16:46:43 -07:00
Hixie
0d3bac9af8 Improve Paragraph dartdocs 2016-03-15 14:41:07 -07:00
Adam Barth
693935c169 Don't dump core on startup exceptions
Instead, log the exception to the console and exit with an error code.

Fixes #2362
2016-03-15 14:06:20 -07:00
Eric Seidel
76a090d00a Update ASSERTS in flutter engine to use flutter
Fixes https://github.com/flutter/flutter/issues/2692

@Hixie
2016-03-14 16:23:19 -07:00
Adam Barth
2653005461 Flutter embedded in Flutter via Mozart is double scaled
We weren't correctly dividing by the device pixel ratio when asking Mozart to
present our child scene.
2016-03-11 13:36:59 -08:00
Chinmay Garde
26d5aeb2e2 Avoid importing the internal lib into the builtin since its disallowed after Dart_Precompile.
Import the library directly in dart_ui.dart.
2016-03-10 14:40:26 -08:00
Jason Simmons
0ce96c8a55 Delete DartState during isolate shutdown
This solves two problems:
* UIDartState was being deleted during destruction of DartController after the
  isolate had been shut down.  The UIDartState held persistent handles to Dart
  objects, and deleting them when the isolate no longer exists caused an
  assertion failure.
* DartStates created for secondary isolates were never being deleted

Fixes https://github.com/flutter/flutter/issues/2549
2016-03-10 10:47:46 -08:00
Adam Barth
15435a5b23 Fix iOS build
We don't have _getCreateTimerClosure, which means we need to remove it from the
dart_vm_entry_points.txt list.

Fixes https://github.com/flutter/flutter/issues/2569
2016-03-10 08:20:21 -08:00
Hixie
87f38fa63d Remove Picture.playback, and other clarifications 2016-03-09 13:54:02 -08:00
Ian Hickson
8514a14911 Merge pull request #2474 from Hixie/AppLifecycleState-docs
Hide implementation comment we leaked into docs
2016-03-08 15:16:09 -08:00
Hixie
da4f9c54f7 Fix ImageShader crash, and add dartdocs
Adds or augments the documentation of various objects in dart:ui.

Removes the ignored argument to SceneBuilder.

Hide the default constructor on Gradient.

Add a call to the ImageShader constructor.

Reorder some members so that private versions come after public versions
so that docs will come before both.
2016-03-08 14:47:00 -08:00
Hixie
7709e78311 Hide implementation comment we leaked into docs
Also, add some dartdocs for AppLifecycleState values.
2016-03-08 12:15:15 -08:00
Chinmay Garde
446984ec33 Conditional directives are a snapshotter option. Remove the same from the embedder VM and add the flag to the precomp snapshotter. 2016-03-07 17:17:02 -08:00
Chinmay Garde
9b2e93a06b iOS: Only add the kDartConditionalDirectivesArgs flags when not using precompilation 2016-03-07 16:53:32 -08:00
Jason Simmons
58adea7f33 Merge pull request #2466 from jason-simmons/scene_builder_ctor
Update the expected argument count in the SceneBuilder constructor
2016-03-07 12:46:58 -08:00
Collin Jackson
d167f5b83f Merge pull request #2464 from collinjackson/enable_conditional_directives
Enable conditional directives
2016-03-07 12:05:27 -08:00
Jason Simmons
1e4c46aade Update the expected argument count in the SceneBuilder constructor 2016-03-07 10:52:16 -08:00
Adam Barth
f27d044e7c Fix typo 2016-03-06 22:48:40 -08:00
Adam Barth
ad3fa9f472 Add more dartdoc to dart:ui 2016-03-06 20:37:25 -08:00
Collin Jackson
22d7bc4a3a Enable conditional directives 2016-03-06 17:29:42 -08:00
John McCutchan
59877ee4fd Merge pull request #2454 from johnmccutchan/use_handle_watcher_timers
Unify timer implementation between Flutter and Mojo embedders
2016-03-04 12:35:12 -08:00
John McCutchan
4d09067ace Unify timer implementation between Flutter and Mojo embedders 2016-03-04 12:20:26 -08:00
Adam Barth
34f81b18da Merge pull request #2458 from abarth/rm_draw_looper
Remove DrawLooper
2016-03-04 10:35:21 -08:00
Jason Simmons
545f9000f2 Merge pull request #2456 from jason-simmons/dart_zero_native_fields
Raise an exception when converting a DartWrappable with empty native …
2016-03-04 09:29:43 -08:00
Eric Seidel
ae6c5427e2 Merge pull request #2455 from eseidelGoogle/android_x86
Support Android x86.
2016-03-04 09:25:27 -08:00
Ian Hickson
ad5e8783b3 more dart:ui dartdocs 2016-03-03 22:01:12 -08:00
Eric Seidel
49b457f623 Support Android x86.
Also rolls Dart to include their Android x86 fixes.

@jason-simmons @chinmaygarde @abarth
2016-03-03 19:32:05 -08:00
Adam Barth
c266534d60 Remove DrawLooper
We used to use DrawLooper for drawing shadows, but we don't use it anymore.
2016-03-03 17:27:22 -08:00
Adam Barth
9255c950fd Merge pull request #2457 from abarth/fix_crash
Fix crash when running widget example
2016-03-03 17:26:03 -08:00
Adam Barth
dc5ed0995e Fixup dartdoc 2016-03-03 17:21:16 -08:00