2113 Commits

Author SHA1 Message Date
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
Ryan Macnak
e869784502 Revert "Adjust GN for removal of libdart. (#3583)"
This reverts commit bb091fd4558c3807e86fe518d036504ebc37bb72.
2017-04-10 17:07:28 -07:00
Ryan Macnak
bb091fd455 Adjust GN for removal of libdart. (flutter/engine#3583) 2017-04-10 16:42:27 -07:00
Chinmay Garde
d73e56bff3 Package test fonts on the debug runtime mode. (flutter/engine#3582) 2017-04-10 15:41:09 -07:00
Mikkel Nygaard Ravn
f3459f540e Add convenience accessors to get arguments from MethodCall w/o unchecked warnings (flutter/engine#3559) 2017-04-09 17:36:05 +02:00
Mikkel Nygaard Ravn
eb4cc7f8e9 Update unit test to also handle null and zero-byte message differently (flutter/engine#3579) 2017-04-09 00:34:43 +02:00
Mikkel Nygaard Ravn
12745a7b02 Distinguish between null platform message and one with zero-byte payload (flutter/engine#3577) 2017-04-09 00:07:28 +02:00
Chris Bracken
250cd40ba9 Use Foundation MIN,MAX in place of C++ std::min,max (flutter/engine#3578)
Maintains consistency with other Objective-C code in the engine and
allows us to eliminate a #include.
2017-04-08 12:58:27 -07:00
Jason Simmons
a5dc4868ac Cache the typeface instead of the font data in the test font selector (flutter/engine#3576)
The font data includes attributes such as the font size and will be
different for each font description.

Fixes https://github.com/flutter/flutter/issues/9289
2017-04-07 18:13:07 -07:00
freiling
22838a8ebe Back Vulkan Rasterizer with Mozart View (flutter/engine#3568)
This version does not recycle buffers. It is meant only as an initial solution,
and the proper buffer recycling logic has been broken out into a separate change
2017-04-07 17:22:53 -07:00
Seth Ladd
a01fe0728c link to image in github (flutter/engine#3572) 2017-04-07 11:14:57 -07:00
P.Y. Laligand
e16e632f67 Update the layout of framework sources in sky_engine to match the Dart SDK's layout. (flutter/engine#3575)
This allows the analyzer service to properly locate these files.
2017-04-07 10:04:32 -07:00
Chinmay Garde
e09b1a579c Roll Skia to 45a00cee88c0ea8ea175694cb94b26748713fe36 and update licenses. (flutter/engine#3569) 2017-04-06 11:49:36 -07:00
Jason Simmons
b3ce239c83 Backport JSONObject.wrap in order to support Jellybean (flutter/engine#3566) 2017-04-06 10:15:06 -07:00
mikejurka
2933cfa76f Add private Skia methods needed to support Vulkan (flutter/engine#3564) 2017-04-05 11:48:56 -07:00
Jakob Andersen
b352804f69 Copy Flutter.podspec to engine out directory. (flutter/engine#3560)
So `flutter run --local-engine=...` will work out of the box.

Fixes flutter/flutter#9154.
2017-04-05 09:16:53 +02:00
Michael Goderbauer
4de155b1e3 add paths_win.cc to FML (flutter/engine#3563)
* add paths_win.cc to FML

* update licenses
2017-04-04 14:00:51 -07:00
Michael Goderbauer
1132f031d9 Partially port FML to Windows. (flutter/engine#3562)
* Partially port FML to Windows.

* Adds a message loop impl for Windows
* Ports `thread.cc` to Windows

All FML unittests are now passing on Windows.

FML as a whole does not compile on windows yet because `mapping.cc` imports `sys/mman.h`, which is not available on Windows and the replacement API for memory-mapped files is very different on Windows, see https://msdn.microsoft.com/en-us/library/windows/desktop/aa366556%28v=vs.85%29.aspx.

* update licenses

* review comments
2017-04-04 12:48:11 -07:00
Chris Bracken
71806383c1 Update selection base when deleting surrogates (flutter/engine#3558)
Ensure selection base is updated when deleting surrogates

This fixes a bug in which the selection base was not updated when
deleting at index of the trailing char of a Unicode surrogate,
introduced in d3149a5875404a4dacc7e4dde9c96045e2cbe6e5.

Minor refactor to consolidate logic around NSRange.
2017-04-03 23:12:02 -07:00
Chris Bracken
1d0e7a6a9a Handle Unicode surrogates in FlutterTextInputView (flutter/engine#3557)
* Handle Unicode surrogates in FlutterTextInputView

Fixes a bug introduced in d3149a5875404a4dacc7e4dde9c96045e2cbe6e5.
2017-04-03 21:49:30 -07:00
Chris Bracken
d3149a5875 Maintain FlutterTextInputView text in NSMutableString (flutter/engine#3554)
* Maintain FlutterTextInputView text in NSMutableString

We were converting from/to NSString at the interface of
FlutterTextInputView; instead use NSMutableString to maintain the
internal buffer.

Eliminates nsstring_utils.{h,mm} which no longer has any users.
2017-04-03 17:23:07 -07:00
Michael Goderbauer
a388875b24 Roll FTL to 77f430179ddc1ad82e9ad3c056b708f583804151 (flutter/engine#3553)
* Roll FTL to 77f430179ddc1ad82e9ad3c056b708f583804151

This makes FTL compilable on Windows.

* fix license
2017-04-03 15:05:13 -07:00
Jason Simmons
4f778d2ea7 Add a flag for the path to the adb tool in the flutter_gdb script (flutter/engine#3551) 2017-04-03 12:22:26 -07:00