20087 Commits

Author SHA1 Message Date
Chinmay Garde
5757991fe9 Remove fml::ThreadChecker and use the one in ftl. (#3623) 2017-04-24 12:22:10 -07:00
P.Y. Laligand
f0694bbc01 Added missing dependencies for the sky_engine package on Fuchsia. (#3619)
This was exposed by minimal builds which do not build //flutter.
2017-04-22 08:36:45 -07:00
Mikkel Nygaard Ravn
c7e19fc3fd travis analyze script to accept more general output (#3622) 2017-04-22 15:50:56 +02:00
Mikkel Nygaard Ravn
5fa1fcedaf Revert "Remove unused import (#3620)" (#3621)
This reverts commit cc931fe3f71539d3baacf1dd0e3b8a4444711996.
2017-04-22 14:26:08 +02:00
Mikkel Nygaard Ravn
cc931fe3f7 Remove unused import (#3620) 2017-04-22 14:16:13 +02:00
Mikkel Nygaard Ravn
264b7a6dd5 Add hasArgument convenience to MethodCall (#3612) 2017-04-22 14:04:03 +02:00
Chinmay Garde
0cf10efe31 Add the ‘vulkan’ suffix to the out directory when the —enable-vulkan flag is specified. (#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
ff941a4c12 Fix benign warning about adding a Skia GN arg that has deprecated. (#3617) 2017-04-21 15:39:13 -07:00
Chinmay Garde
9740093f67 Account for updated GrVkFormatToPixelConfig signature. (#3615)
Fixes Vulkan backend.
2017-04-21 15:15:36 -07:00
Chinmay Garde
c4474133a9 Update Skia revision to 1be0db86. (#3613)
This includes fixes for SkPicture::cullRect and SkShadowUtils updates.
2017-04-21 14:40:37 -07:00
Chinmay Garde
eabc1b9217 Hack the bodge in analyze.sh to account for dartanalyzer update. (#3614) 2017-04-21 14:10:51 -07:00
P.Y. Laligand
d55ba61170 Updated label for Fuchsia flx builder. (#3605) 2017-04-20 14:18:47 -07:00
Colin Cross
f938933830 Convert frameworks/minikin to Android.bp
See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: I71d3406054b35dd4e8ae30f46eec6cef77eef160
2017-04-20 12:44:52 -07:00
xster
a5b64899c9 Keep resident runner connected on iOS when screen locks in debug mode (#3610)
* Add debug mode background

* Review notes
2017-04-19 18:00:06 -07:00
Chinmay Garde
414491b94d Update buildtools to c8db819853bcf8ce1635a8b7a395820f39b5a9fc and restrict downloaded artifacts. (#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
fd286ae445 Make dart:ui more consistent with other built in libraries (#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
4eed7d2732 Clarify semantics of channel-related errors (#3607)
Mainly improvements to javadoc and error logging. A bit of refactoring.
2017-04-19 21:53:46 +02:00
Adam Barth
3ed4684a09 Rename library to dart.ui (#3608)
This name is consistent with how the other `dart:` libraries are named now.
2017-04-19 09:56:22 -07:00
Chinmay Garde
6b2bc8cf2b Fix Android Vulkan build. (#3606) 2017-04-18 16:26:37 -07:00
Chinmay Garde
ad64948112 Account for GrVkBackendContext assuming ownership of the VkInstance and VkDevice. (#3604) 2017-04-18 14:21:42 -07:00
Ryan Macnak
ab189d7e53 Print gen_snapshot invocation on failure. (#3603)
Makes it much easier to get it running under gdb.
2017-04-18 12:14:07 -07:00
xster
66d42ed669 Link to lldb page in tip (#3593) 2017-04-18 10:48:46 -07:00
Mikkel Nygaard Ravn
2a4434a058 Make naming consistent across channel APIs (#3574) 2017-04-18 14:30:31 +02:00
Chinmay Garde
b4a02debaa Update Skia to 30229ac6282981c28ced8f513c8d09684d9d0581 and fix build. (#3602)
* Update Skia to 30229ac6282981c28ced8f513c8d09684d9d0581 and fix build.
* Update licenses.
2017-04-17 17:27:26 -07:00
freiling
82501f7b1e [fuchsia] enable Vulkan in content handler based on fuchsia_use_vulkan build arg (#3598) 2017-04-17 15:56:29 -07:00
Chinmay Garde
c92f5508d3 Only log about resource context setup failures on debug builds. (#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
306a4772f5 Add support for scaling the GPUSurfaceSoftware. (#3600) 2017-04-17 14:07:22 -07:00
Chinmay Garde
eebda8ff96 Avoid creating a CGContextRef when generating a CGImageRef from a Skia pixmap. (#3599)
Also, adds trace events so profiling the software backend is easier.
2017-04-17 13:00:58 -07:00
freiling
3950f0f267 [fuchsia] change VulkanRasterizer member ordering to avoid crashes during teardown on device shell logout (#3597) 2017-04-17 11:55:13 -07:00
P.Y. Laligand
51adf04b22 Generate flx files in the gen directory. (#3595)
This allows tools to locate them more easily.
2017-04-16 18:15:38 -07:00
Seigo Nonaka
d612c57d3b Reduce heap memory in minikin. am: 818fbee83a
am: c2e7357cd6

Change-Id: I0d3c390915f9eef90afd2c655295929e5de0534c
2017-04-15 01:36:15 +00:00
Seigo Nonaka
c2e7357cd6 Reduce heap memory in minikin.
am: 818fbee83a

Change-Id: Ifb5bbba4ce7d452d844693409ac0ecad3168ed29
2017-04-15 00:59:39 +00:00
Chinmay Garde
35a0813dce Revert "Update buildtools to cdf612890f1eb65b06d5cc1df229dd44c13ee507 and restrict downloaded artifacts. (#3594)" (#3596)
This reverts commit 17da4ebc8efc3e16b98b139fba5aa4c351d1d6c0.
2017-04-14 16:26:49 -07:00
Chinmay Garde
17da4ebc8e Update buildtools to cdf612890f1eb65b06d5cc1df229dd44c13ee507 and restrict downloaded artifacts. (#3594)
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.
2017-04-14 16:01:52 -07:00
Seigo Nonaka
818fbee83a Reduce heap memory in minikin.
This patch reduces about 73 kB memory.
The original SparseBitSet could contain full 32bit integers, but all of
that is not necessary for Unicode code points. By reducing the supported
range to up to Unicode maximum, U+10FFFF, we can save extra memory.

SparseBitSet holds 256-bit sliced pages and indices of them.
Previously, we needed to hold up to 2^24-1 pages for keeping 32-bit
integers.

This CL limits the number of pages to 2^16-1 (65535), so that
SparseBitSet only supports 24-bit integers now, but this is sufficient
for keeping all Unicode code points. With this change, we can change the
index integer type from uint32_t to uint16_t.

Bug: 37357593
Test: minikin_tests passes
Change-Id: I462cc27927752c942ac5da0bf303a5afb81b87a3
2017-04-14 22:54:27 +00:00
freiling
c24a0e5175 [Issue #9357] Fix crash in software fallback path (#3591)
Keep the VulkanProcTable around long enough to use it from the destructor of the VulkanApplication
2017-04-13 16:50:21 -07:00
Jason Simmons
ee0e98c012 Exclude Vm/IsolateSnapshotData in AOT modes on both Android and iOS (#3592)
Fixes https://github.com/flutter/flutter/issues/9339
2017-04-13 15:14:25 -07:00
Chris Bracken
5c4e20c4c5 Correct handling for composed character ranges at text.length (#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
5ecaec5fd9 Allow Flutter shell to be built for a Linux host. (#3589) 2017-04-12 20:03:40 -07:00
freiling
5d4f274fcc Add buffer recycling to vulkan_rasterizer (#3588) 2017-04-12 15:42:38 -07:00
Ian Hickson
bcc8779cb8 Remove the Point class. (#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
059ab3a471 Eliminate UITextInput.textContentType (#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
a94c7d6bd3 Initial implementation of UITextInput protocol (#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
f5a7a086ec Update Objective-C column limit to 100 (#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
1084a83f11 AOT for Fuchsia. (#3570) 2017-04-11 14:53:14 -07:00
Ryan Macnak
1fed16fb25 Adjust GN for removal of libdart, take two. (#3584)
Update targets only included in host_debug_unopt.
2017-04-11 09:52:54 -07:00
Ryan Macnak
6d4b153ba8 Revert "Adjust GN for removal of libdart. (#3583)"
This reverts commit f5d0004ebd0db95c4019ca27fde2aceb0b3fe3e3.
2017-04-10 17:07:28 -07:00
Ryan Macnak
f5d0004ebd Adjust GN for removal of libdart. (#3583) 2017-04-10 16:42:27 -07:00
Chinmay Garde
73299f42f4 Package test fonts on the debug runtime mode. (#3582) 2017-04-10 15:41:09 -07:00
Jason Simmons
4e2c3da24d Roll Dart (#3581) 2017-04-10 11:02:43 -07:00