2135 Commits

Author SHA1 Message Date
Todd Volkert
855f18ecc1 Add ipv6 flag to shell. (flutter/engine#3646)
It controls whether the observatory and diagnostic server will
bind to the IPv6 loopback address rather than the IPv4.

Fixes https://github.com/flutter/flutter/issues/9813
2017-05-04 19:35:59 -07:00
Adam Barth
52247beb87 Make microtask queue be per thread (flutter/engine#3644)
Previously, it was a static. Doesn't have much effect in practice because we
only use this microtask queue for main isolates, which exist on a single
thread.
2017-05-04 15:06:43 -07:00
P.Y. Laligand
456c1066eb Add missing dependency. (flutter/engine#3643) 2017-05-02 15:30:48 -07:00
Florin Malita
f96707733a Add missing Skia includes (flutter/engine#3642)
We are removing some indirect includes from SkCanvas.h.

Updating clients to pull required headers explicitly.
2017-05-02 10:17:11 -07:00
Chinmay Garde
e9fc94b879 When pasting an item of type kTextPlainFormat from the pasteboard, ensure there actually is a string in the pasteboard. (flutter/engine#3638) 2017-04-28 15:02:22 -07:00
Mikkel Nygaard Ravn
77454f6ebf Document channel message value conversions (flutter/engine#3633) 2017-04-28 23:31:11 +02:00
Chris Bracken
f0f09665d3 Clamp iOS selection to 0 < pos < length (flutter/engine#3636) 2017-04-27 16:04:30 -07:00
Jason Simmons
15e0d127bd Change the shadow elevation parameter to floating point (flutter/engine#3637) 2017-04-27 10:52:13 -07:00
Jason Simmons
11b6cb10f7 Add a second per-frame callback that is invoked after the microtask queue is drained (flutter/engine#3632)
See https://github.com/flutter/flutter/issues/7626
2017-04-27 10:23:46 -07:00
Jason Simmons
2f0485a91e Improved parameters for Skia shadows (flutter/engine#3635) 2017-04-27 10:13:28 -07:00
Mikkel Nygaard Ravn
a20aac4525 Fix corner case errors in platform channels (flutter/engine#3631) 2017-04-27 07:52:56 +02:00
P.Y. Laligand
47e891cc1d Don't build the full FlutterTester bundle on Fuchsia. (flutter/engine#3629)
The flutter_tester executable works just fine.
2017-04-26 10:37:28 -07:00
Chinmay Garde
b313dac389 Call SkGraphics::Init on shell initialization. (flutter/engine#3628)
This ensures SkOpts are initialized before we start using Skia.
2017-04-25 21:47:09 -07:00
Ian Hickson
a626626f61 Remove the Android NDK and SDK from the license file. (flutter/engine#3627)
As advised.
2017-04-25 17:22:25 -07:00
Ryan Macnak
c549fc12ce Fuchsia AOT: (flutter/engine#3626)
- Fix flutter_aot_app template for moved Flutter tool GN label.
 - Add missing dart:io tree-shaking roots.
 - Add example AOT app to catch future breakage.
2017-04-25 13:28:52 -07:00
P.Y. Laligand
8e74a31abd Allow Flutter shell to build for a Mac Fuchsia host. (flutter/engine#3625) 2017-04-25 07:38:08 -07:00
P.Y. Laligand
3e74263ff6 Fix -Wmissing-field-initializer warning on Fuchsia. (flutter/engine#3624) 2017-04-24 14:06:37 -07:00
Chinmay Garde
b1c35cc789 Remove fml::ThreadChecker and use the one in ftl. (flutter/engine#3623) 2017-04-24 12:22:10 -07:00
P.Y. Laligand
9c662cf05a Added missing dependencies for the sky_engine package on Fuchsia. (flutter/engine#3619)
This was exposed by minimal builds which do not build //flutter.
2017-04-22 08:36:45 -07:00
Mikkel Nygaard Ravn
39b70c07cd Revert "Remove unused import (#3620)" (flutter/engine#3621)
This reverts commit f99f9f749acc3dde33ac3cefdbae09ecb19f2204.
2017-04-22 14:26:08 +02:00
Mikkel Nygaard Ravn
f99f9f749a Remove unused import (flutter/engine#3620) 2017-04-22 14:16:13 +02:00
Mikkel Nygaard Ravn
9d88b0af24 Add hasArgument convenience to MethodCall (flutter/engine#3612) 2017-04-22 14:04:03 +02:00
Chinmay Garde
f6ab3cd553 Add the ‘vulkan’ suffix to the out directory when the —enable-vulkan flag is specified. (flutter/engine#3618)
Earlier, when the —enable-vulkan flag was specified, the out directory name was determined by the other flags specified to `flutter/tools/gn`. But, the build itself was Vulkan enabled. Now that we are going to add the vulkan target to buildbot, we want to clearly delineate a Vulkan enabled build from a non-Vulkan enabled one.
2017-04-21 17:05:35 -07:00
Chinmay Garde
fdc849827a Fix benign warning about adding a Skia GN arg that has deprecated. (flutter/engine#3617) 2017-04-21 15:39:13 -07:00
Chinmay Garde
b90200a5bb Account for updated GrVkFormatToPixelConfig signature. (flutter/engine#3615)
Fixes Vulkan backend.
2017-04-21 15:15:36 -07:00
P.Y. Laligand
5e414da0b4 Updated label for Fuchsia flx builder. (flutter/engine#3605) 2017-04-20 14:18:47 -07:00
xster
7900afc2fa Keep resident runner connected on iOS when screen locks in debug mode (flutter/engine#3610)
* Add debug mode background

* Review notes
2017-04-19 18:00:06 -07:00
Chinmay Garde
0e9ba7f5e7 Update buildtools to c8db819853bcf8ce1635a8b7a395820f39b5a9fc and restrict downloaded artifacts. (flutter/engine#3611)
This updates our compilers, gn and ninja. Also, we now explicitly specify the buildtools artifacts we actually use instead of downloading everything from the catalog.

The build error was due to unused lambda captures being reported as warnings (which we turn into errors).
2017-04-19 16:14:52 -07:00
Adam Barth
3abcf3c24f Make dart:ui more consistent with other built in libraries (flutter/engine#3609)
The other libraries don't repeat the "dart" name in their path inside the
package.
2017-04-19 13:20:30 -07:00
Mikkel Nygaard Ravn
ffa3154595 Clarify semantics of channel-related errors (flutter/engine#3607)
Mainly improvements to javadoc and error logging. A bit of refactoring.
2017-04-19 21:53:46 +02:00
Adam Barth
6debd47af2 Rename library to dart.ui (flutter/engine#3608)
This name is consistent with how the other `dart:` libraries are named now.
2017-04-19 09:56:22 -07:00
Chinmay Garde
18bfdff87e Fix Android Vulkan build. (flutter/engine#3606) 2017-04-18 16:26:37 -07:00
Chinmay Garde
f05379f248 Account for GrVkBackendContext assuming ownership of the VkInstance and VkDevice. (flutter/engine#3604) 2017-04-18 14:21:42 -07:00
Ryan Macnak
975cebb327 Print gen_snapshot invocation on failure. (flutter/engine#3603)
Makes it much easier to get it running under gdb.
2017-04-18 12:14:07 -07:00
xster
7b2e3b2609 Link to lldb page in tip (flutter/engine#3593) 2017-04-18 10:48:46 -07:00
Mikkel Nygaard Ravn
4c457165be Make naming consistent across channel APIs (flutter/engine#3574) 2017-04-18 14:30:31 +02:00
Chinmay Garde
926c6c3794 Update Skia to 30229ac6282981c28ced8f513c8d09684d9d0581 and fix build. (flutter/engine#3602)
* Update Skia to 30229ac6282981c28ced8f513c8d09684d9d0581 and fix build.
* Update licenses.
2017-04-17 17:27:26 -07:00
Chinmay Garde
54d846b871 Only log about resource context setup failures on debug builds. (flutter/engine#3601)
We were unnecessarily alarming users when they used the software backend. Fixes https://github.com/flutter/flutter/issues/9394
2017-04-17 14:26:51 -07:00
Chinmay Garde
97af2def3e Add support for scaling the GPUSurfaceSoftware. (flutter/engine#3600) 2017-04-17 14:07:22 -07:00
Chinmay Garde
6ca8610bc4 Avoid creating a CGContextRef when generating a CGImageRef from a Skia pixmap. (flutter/engine#3599)
Also, adds trace events so profiling the software backend is easier.
2017-04-17 13:00:58 -07:00
P.Y. Laligand
85d7e93e95 Generate flx files in the gen directory. (flutter/engine#3595)
This allows tools to locate them more easily.
2017-04-16 18:15:38 -07:00
Jason Simmons
712b870cfb Exclude Vm/IsolateSnapshotData in AOT modes on both Android and iOS (flutter/engine#3592)
Fixes https://github.com/flutter/flutter/issues/9339
2017-04-13 15:14:25 -07:00
Chris Bracken
cb02ed2518 Correct handling for composed character ranges at text.length (flutter/engine#3590)
Ensure that both self.text and self.selectedTextRange are updated before
triggering textDidChange: or selectionDidChange: on the input delegate
(which then re-computes positions). This prevents inconsistencies in
selection vs text position/offset lookups triggered by didChange
notifications.

Ensure that rangeOfComposedCharacterSequenceAtIndex: is only ever called
for index values > 0 && < self.text.length. This prevents such calls for
position with index == self.text.length.

Also reduces unnecessary textDidChange/selectionDidChange notifications:
replaceRange:withText: and setMarkedText:selectedRange: are only ever
called by UIKit and methods called by UIKit (insertText,
deleteBackward), so notification is unnecessary.
2017-04-13 11:48:59 -07:00
P.Y. Laligand
dfb2c7f8c4 Allow Flutter shell to be built for a Linux host. (flutter/engine#3589) 2017-04-12 20:03:40 -07:00
Ian Hickson
74b56314ea Remove the Point class. (flutter/engine#3567)
* Remove the Point class.

* Add Size.contains and Rect.translate for consistency

* Make Offset and Size compare == with subclasses.

Without this we would break the _DebugSize hack.

* Fix copy/pasta

* Fix the examples in the engine repo
2017-04-12 13:45:46 -07:00
Chris Bracken
fc2bbd7124 Eliminate UITextInput.textContentType (flutter/engine#3587)
textContentType was added in iOS 10, and we target iOS 8. Either way the
framework doesn't (yet) include support for this; keyboard type covers
most bases.
2017-04-12 11:37:54 -07:00
Chris Bracken
e0d4f1305b Initial implementation of UITextInput protocol (flutter/engine#3586)
Supports:
* autocorrect, suggestions view/selection.
* Support for Chinese, Japanese, Korean and other languages using
  multi-stage input with candidate selection.
* styling the composing (mark) region for multi-stage input
* key-repeat when backspace held down
* physical and soft keyboard support for arrow key cursor movement and
  selection.
* improved third-party keyboard support

Does not yet support:
* force-touch drag cursor positioning
* auto-positioning the candidates view for multi-stage input methods
  when used with a physical keyboard (e.g., iPad Pro) currently
  positioned at 0,0.
* voice dictation
2017-04-12 11:04:26 -07:00
Chris Bracken
409824cedc Update Objective-C column limit to 100 (flutter/engine#3585)
The Google style guide specifies a limit of 100 columns.
https://google.github.io/styleguide/objcguide.xml?showone=Line_Length#Line_Length

The Chromium style guide specifies 80.
https://chromium.googlesource.com/chromium/src/+/master/styleguide/objective-c/objective-c.md
2017-04-11 15:14:00 -07:00
Ryan Macnak
32cd986649 AOT for Fuchsia. (flutter/engine#3570) 2017-04-11 14:53:14 -07:00
Ryan Macnak
ec2be075b2 Adjust GN for removal of libdart, take two. (flutter/engine#3584)
Update targets only included in host_debug_unopt.
2017-04-11 09:52:54 -07:00