2229 Commits

Author SHA1 Message Date
Ian McKellar
756341be6e Revert "Initial integration of libtxt with Flutter alongside Blink." (flutter/engine#3785)
* Revert "Enable line join styles and miter limit. (#3777)"

This reverts commit cafd4b93a06b6d327f1bc59e296bf2c618eb34e4.

* Revert "Revert "Update switches to use StringView." (#3784)"

This reverts commit 5ffa5ef3a6b2c8689c7d12cd67b6823ba25783a5.

* Revert "Initial integration of libtxt with Flutter alongside Blink. (#3771)"

This reverts commit b4a9f9c6d5008f677400826dfa3a0ab30de3db23.
2017-06-16 15:15:48 -07:00
gspencergoog
cafd4b93a0 Enable line join styles and miter limit. (flutter/engine#3777)
* Add support for join types and miter limits.

* Fix miter limit data type.

* Adding some clearer documentation to painting.dart

* Clarifying more documentation.

* Code review changes

* Fixed debug printing of stroke width and miter limit

* Adding missing periods at the ends of sentences.
2017-06-16 14:48:16 -07:00
P.Y. Laligand
5ffa5ef3a6 Revert "Update switches to use StringView." (flutter/engine#3784)
* Revert "Initial integration of libtxt with Flutter alongside Blink. (#3771)"

This reverts commit b4a9f9c6d5008f677400826dfa3a0ab30de3db23.

* Revert "Call Selection.removeSelection if the framework has cleared the selection (#3782)"

This reverts commit 2a34ee9a676b0049a18fc9e131ad1b311e1ea848.

* Revert "Update switches to use StringView. (#3781)"

This reverts commit 6adf58135e16dfb0ff04b00672abe6f0876c91b4.
2017-06-16 14:32:09 -07:00
Gary Qian
b4a9f9c6d5 Initial integration of libtxt with Flutter alongside Blink. (flutter/engine#3771) 2017-06-16 14:15:53 -07:00
Jason Simmons
2a34ee9a67 Call Selection.removeSelection if the framework has cleared the selection (flutter/engine#3782)
Fixes https://github.com/flutter/flutter/issues/10748
2017-06-16 14:01:45 -07:00
P.Y. Laligand
6adf58135e Update switches to use StringView. (flutter/engine#3781)
See https://fuchsia-review.googlesource.com/#/c/31931/.
2017-06-16 12:51:26 -07:00
Mikkel Nygaard Ravn
da3ae8fc95 Add alignment padding to floats in std codec (flutter/engine#3780) 2017-06-15 21:22:18 -07:00
Jason Simmons
156f123b12 Align doubles to 8 bytes in the StandardMessageCodec (flutter/engine#3779)
See https://github.com/flutter/flutter/issues/10701
2017-06-15 21:15:25 -07:00
gspencergoog
1b33b0f50b Removed 'pub get' from the instructions (flutter/engine#3774)
* Removed 'pub get' from the instructions

According to Hixie, 'pub get' is abstracted into flutter packages upgrade, and so there shouldn't be a need to run pub get directly.

* Removed pub get lines entirely.
2017-06-14 16:28:21 -07:00
Michael Goderbauer
c49f348d7c Revert "Run Flutter on iOS and Android with color correct Skia (#3743)" (flutter/engine#3775)
This reverts commit bac6502d62a3ab3157147b3d53776c3f16000a31.
2017-06-14 16:26:20 -07:00
Jason Simmons
f77a01eaca Simplify state management in the Android text editing plugin (flutter/engine#3769)
In particular, this avoids some unnecessary calls to InputMethodManager.restartInput
that caused noticeable lag when moving the cursor.

Fixes https://github.com/flutter/flutter/issues/9928
2017-06-14 10:24:41 -07:00
Todd Volkert
e69672b40a Add support for application:openURL:options: in FlutterPlugin (flutter/engine#3766)
Both the following, which we also support, are deprecated in UIKit:

* `application:handleOpenURL:`
* `application:openURL:sourceApplication:annotation:`
2017-06-12 20:57:12 -07:00
Mehmet Fidanboylu
f38ab73dab Expose performActionForShortcutItem call to all registered plugins so we can handle quick actions (flutter/engine#3763)
* Expose performActionForShortcutItem call to all registered plugins so we can handle quick actions

* Should return BOOL not void

* clang-formatted
2017-06-09 17:55:48 -07:00
Michael Goderbauer
89ab65beea Adding SemanticsFlag.isSelected (flutter/engine#3764)
* Adding SemanticsFlag.isSelected

* typo
2017-06-09 15:58:30 -07:00
Todd Volkert
923bb8cc3b Fix some minor issues with Javadocs (flutter/engine#3761) 2017-06-09 07:35:50 -07:00
mattsarett
bac6502d62 Run Flutter on iOS and Android with color correct Skia (flutter/engine#3743)
* Run Flutter on iOS and Android with color correct Skia (#3716)

***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-09 08:39:21 -04:00
Sarah Zakarias
4c97eefa3d Add setInitialRoute on FlutterViewController (flutter/engine#3754) 2017-06-09 10:37:53 +02:00
Todd Volkert
6461f544bb Add android v4 support lib to classpath when generating docs (flutter/engine#3760) 2017-06-08 18:58:08 -07:00
Todd Volkert
9685ff633a Create FlutterFragmentActivity (flutter/engine#3757)
This creates a `FlutterFragmentActivity` class that extends
the Android v4 Support librray's `FragmentActivity` class.
However, we intentionally do not bundle the support library
with our engine, so apps that wish to use this class are
responsible for including the support library .jar file in
their runtime deps when creating the final app.

flutter/flutter#10072
2017-06-08 16:40:37 -07:00
Jason Simmons
d6d464164f Call the superclass onConfigurationChanged in FlutterActivity (flutter/engine#3758) 2017-06-08 14:58:22 -07:00
Zachary Anderson
e17349b426 [Fuchsia] For profiling, export symbols, profile the VM (flutter/engine#3756) 2017-06-08 13:57:31 -07:00
Todd Volkert
17c9a56d2e Only handle refresh intent when the app is marked as debuggable. (flutter/engine#3752) 2017-06-08 08:13:52 -07:00
Chris Bracken
a7a3027d76 Don't override ios deployment target in gn (flutter/engine#3751)
Use the value specified in build/config/ios/ios_sdk.gni in the buildroot
repo.

Updates buildroot to 4d1c1fd7103d6daba559e456a6a68e4385bb28f1
2017-06-07 13:47:13 -07:00
Todd Volkert
397b37065a Refactor FlutterActivity to be more composable (flutter/engine#3748)
This factors the functionality that was in `FlutterActivity`
to live in `FlutterActivityDelegate`. This will allow the creation of a
`FlutterFragmentActivity` that has the same core functionality, which in
turn unlocks certain Android plugins that choose to require the v4
support library (like Google Sign-In).

https://github.com/flutter/flutter/issues/10072
2017-06-07 12:28:41 -07:00
Chris Bracken
899581c3a1 Exclude ios_tools from license script (flutter/engine#3750)
ios_tools exists to provide find_xcode.py, which is used only on the Mac
Engine bot to select the correct version of Xcode to build with.
2017-06-07 10:01:44 -07:00
Ryan Macnak
aa1c5cb32f Plumbing for a core snapshot with code (currently empty). (flutter/engine#3749) 2017-06-07 09:57:24 -07:00
Jason Simmons
953037697f AndroidSurfaceSoftware renderer based on NDK native window APIs (flutter/engine#3745) 2017-06-06 16:58:43 -07:00
Zachary Anderson
f3b697cb8a [Fuchsia] AOT fixes, CPU profiling (flutter/engine#3744) 2017-06-06 12:20:39 -07:00
Sarah Zakarias
0dd69f7b07 Add setInitialRoute on FlutterView. (flutter/engine#3727) 2017-06-06 10:59:41 +02:00
Ian Hickson
d4248e2e6c Add breadcrumbs from dart:ui to other docs. (flutter/engine#3741) 2017-06-05 20:06:40 -07:00
Michael Goderbauer
83516478af Retain the parent of a SemanticsObject and implement proper dealloc (flutter/engine#3740)
* Retain the parent of a SemanticsObject

This fixes the last known crash in iOS accessibility.

* rework memory management

* review comments
2017-06-05 17:35:44 -07:00
Chinmay Garde
a6b7c8c7c2 Rework raster cache to fix numerous issues. (flutter/engine#3717)
* Fix pixel rounding error in the picture layer by first ensuring that
  the texture for the image is at least as big as the next integer size
  along each dimension and using kStrict_SrcRectConstraint while
  drawing the same image. We already select the source subset by
  looking at the cull rect of the picture.
* Decompose the transformation matrix into a series of operations that
  generated the same to calculate the scale at which to rasterize the
  picture. This make the rasterization scale resilient to
  transformations that introduce a perspective component to the
  resultant matrix.
* The scale in the decomposed matrix is now part of the key in the
  cache.
* Raster cache images that could never be rasterized were still taking
  part in the cache. Now, those entries are rejected early on. This
  leads to the sweep after the frame iterating over fewer items.
* Added a unit test target.
2017-06-05 15:57:05 -07:00
Chris Bracken
72b41db25f Log to stdout on all platforms except Android (flutter/engine#3739)
Fixes a Fuchsia breakage introduced in
710df81249922f6270a9ef078348d2492480794c.
2017-06-05 14:27:41 -07:00
Chinmay Garde
e61bff016b Revert "Run Flutter on iOS and Android with color correct Skia" (flutter/engine#3738) 2017-06-05 14:08:22 -07:00
Jason Simmons
0907015201 Render software rasterizer bitmaps through the SurfaceHolder (flutter/engine#3736) 2017-06-05 12:21:14 -07:00
mattsarett
73f8e1988e Run Flutter on iOS and Android with color correct Skia (flutter/engine#3716)
***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-05 14:59:04 -04:00
Chris Bracken
0549c74529 Set autocapitalizationType on iOS (flutter/engine#3735)
Disables auto-capitalization on iOS text fields for TextInputTypes other
than text.
2017-06-05 11:33:08 -07:00
Chris Bracken
4f3220eebc Improve auto-correct disabling on Android when obscureText is true (flutter/engine#3731)
Some keyboards (e.g., on some Samsung devices, SwiftKey) ignore
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS and require
InputType.TYPE_TEXT_VARIATION_PASSWORD.
2017-06-02 15:50:23 -07:00
Michael Goderbauer
4ac92f5b50 Fix crash when iOS accessibility is turned off and then on again (flutter/engine#3732) 2017-06-02 15:50:12 -07:00
Chris Bracken
621d051cfa Add support for TextInputType.url (flutter/engine#3730)
Adds support for requesting a platform keyboard optimised for entering
URLs.
2017-06-02 15:13:37 -07:00
Chris Bracken
0d10984a47 Add support for TextInputType.emailAddress (flutter/engine#3729)
Adds support for requesting a platform keyboard optimised for entering
email addresses.
2017-06-02 15:04:35 -07:00
Chris Bracken
3d69c9e24a Log to stdout in flutter_tester (flutter/engine#3728)
Fixes a regression introduced in
710df81249922f6270a9ef078348d2492480794c in flutter_tester on Linux.
2017-06-02 10:25:15 -07:00
Chris Bracken
710df81249 Simplify log forwarding on iOS, Android (flutter/engine#3726)
Eliminates logging to stdout on Android -- now using __android_log_print
only.

Eliminates logging to syslog on iOS -- now writing to stdout with the
existing ASL redirection (from platform_mac.mm) only. syslog() wasn't
ever picked up in logs.

This patch is a pre-factoring change before swapping out iOS engine
logging to a flutter-specific mechanism.
2017-06-02 09:32:08 -07:00
Gary Qian
f6a2810841 Add software as fallback if Vulkan and OpenGL fails (flutter/engine#3725) 2017-06-01 17:50:03 -07:00
Gary Qian
d77f805ffe Add flags for enabling software rendering in FlutterActivity (flutter/engine#3724) 2017-06-01 13:53:12 -07:00
Chinmay Garde
8844a2f33b Ensure that gradient tile mode enum values in Dart match SkShader::TileMode. (flutter/engine#3721) 2017-06-01 12:18:13 -07:00
Zachary Anderson
a978b57e9e Stop passing ignored argument to snapshot script (flutter/engine#3723) 2017-06-01 12:09:14 -07:00
Gary Qian
49440f6e14 Allow switching to the software rendering backend on Android. (flutter/engine#3719)
* Enable software rendering backend on android. Add "enable-software-rendering" flag.

* Fix variable naming and threading.
2017-05-31 17:27:47 -07:00
Ryan Macnak
a14c3c4f80 [fuchsia] Ensure flutter_apps in the same BUILD.gn have separate scratch directories for building the FLX. (flutter/engine#3720) 2017-05-31 12:41:25 -07:00
Michael Goderbauer
e00a271112 [iOS accessibility] Dispatch taps to selected element (flutter/engine#3718)
Previously, taps were sent to the topmost tap handler in the center of the accessibility frame of the selected element nd therefore might have been handled by a different element than the desired one.
2017-05-30 16:53:10 -07:00