Jason Simmons
42f5bc5fdf
Fixes related to usage of std::weak_ptr to hold PlatformViews ( #3949 )
...
* Call weak_ptr.lock(), which returns a null shared_ptr and does not throw
* IsViewInvalid was inverted
2017-08-03 10:53:17 -07:00
Chinmay Garde
1de56a33d2
On emulators, render onscreen (with warnings) if any of the MakeS32 based SkSurface creation calls fail. ( #3947 )
2017-08-02 14:29:29 -07:00
Jason Simmons
bab7fa77af
fix sRGB typo ( #3942 )
2017-07-31 17:12:45 -07:00
Jason Simmons
f02a30b405
Support sendKeyEvent for arrow keys ( #3940 )
...
Fixes https://github.com/flutter/flutter/issues/11352
2017-07-31 16:52:34 -07:00
Chinmay Garde
63861464df
Update buildroot to account for stricter warning flags. ( #3939 )
2017-07-31 16:22:15 -07:00
Jason Simmons
ca19ab0a99
Check for an empty selection in deleteSurroundingText ( #3938 )
...
Fixes https://github.com/flutter/flutter/issues/11437
2017-07-31 16:18:27 -07:00
Chinmay Garde
f2af347363
Always consume items from the pipeline in the null rasterizer. ( #3937 )
...
Now, frame requests past the pipeline depth will never be deferred due
to back pressure. This backend is only used in the test runner.
2017-07-31 15:16:48 -07:00
xster
cafbd9b0b5
Extend iOS's drawing time to viewWillAppear <-> viewDidDisappear ( #3934 )
...
* fix (with squashed debug stuff)
* clean up
2017-07-31 15:12:32 -07:00
Chinmay Garde
983c92f050
Update the Vulkan backend to account for GPUSurface API updates. ( #3933 )
2017-07-28 18:25:13 -07:00
Chinmay Garde
ddaa125ca7
When the surface does not support SRGB, render to an offscreen texture. ( #3930 )
2017-07-28 12:48:32 -07:00
Jason Simmons
232f4636e5
Do not send messages if the platform view has been detached ( #3927 )
2017-07-26 20:04:31 -07:00
Alexander Aprelev
ba9a525bdc
Update Flutter engine kernel-loading logic. ( #3886 )
...
* Fix Flutter loading from dill files.
* Remove disable of causal async stacks.
* Include mirrors patch files as they are needed for release/profile gen_snapshot
* Free the bytes
* Add FTL_DCHECK
2017-07-24 09:47:23 -07:00
xster
aeaefbaddf
Always schedule a frame on app did become active ( #3910 )
2017-07-20 10:54:08 -07:00
Chinmay Garde
5fcfb995bb
Reduce layer tree pipeline depth to 2. ( #3909 )
2017-07-19 17:47:44 -07:00
Carlo Bernaschina
53c9a70282
Add waitUIThreadIdle service RPC ( #3898 )
...
In https://github.com/flutter/engine/pull/3833 the `_flutter.listViews` RPC moved from thread based to lock based synchronization.
The thread based synchronization side effect was used by flutter benchmarks in https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/vmservice.dart#L1223 and
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/run_hot.dart#L156 to ensure the completeness of the restart/reload and so correct timing.
A new RPC `_flutter.flushUIThreadTasks` is introduced to allow the flutter benchmarks to reintroduce thread based synchronization.
Related https://github.com/flutter/flutter/issues/11241
2017-07-19 15:48:32 -07:00
Todd Volkert
488584f8b7
Add PluginRegistry.Registrar#view() ( #3900 )
...
Sometimes, plugin instances need access to the `FlutterView`.
They can currently cast the `messenger()`, but that's fragile.
This adds API support for getting the view from the registry.
2017-07-18 19:16:15 -07:00
Chinmay Garde
777bb82851
Enable the “Highlight Vsync” option in the timeline viewer on Android. ( #3901 )
2017-07-18 18:11:35 -07:00
Chinmay Garde
d098b358b4
Fix Mac desktop platform for use with std::weak_ptr in the PlatformView. ( #3897 )
2017-07-18 14:29:36 -07:00
Brian Osman
de00757ddb
Revert "Revert "Reland "Run Flutter on iOS and Android with color correct Skia ( #3826 )" ( #3878 )" ( #3895 )
...
This reverts commit 1db18a40da855b102e391cb11189e73f9c2ec40d.
2017-07-18 15:58:35 -04:00
Brian Osman
569de1e6d5
Revert "Revert "Switch to new encode API on SkPixelSerializer"" ( #3896 )
...
* Revert "Accumulate a batch of Skia objects that will be destructed later on the IO thread (#3888 )"
This reverts commit dd2fb3c04bb090915b698266ace8680d2747c9db.
* Revert "Revert "Switch to new encode API on SkPixelSerializer (#3892 )" (#3894 )"
This reverts commit bd2294381078dddb12cd95a6b0bd681c6c5de54a.
2017-07-18 15:44:13 -04:00
Brian Osman
bd22943810
Revert "Switch to new encode API on SkPixelSerializer ( #3892 )" ( #3894 )
...
This reverts commit aabc95df8c93625be74c8413816f54d6f71bae94.
2017-07-18 13:58:56 -04:00
Brian Osman
aabc95df8c
Switch to new encode API on SkPixelSerializer ( #3892 )
...
Previous API is deprecated, soon to be deleted.
2017-07-18 13:04:51 -04:00
Michael Goderbauer
1a4bffc4ba
Wire up SemanticsAction Increase and Decrease on Android ( #3876 )
2017-07-17 16:48:50 -07:00
Chris Bracken
0a99358d20
Set iOS text field autocorrection type ( #3880 )
...
Adds handling for the autocorrect field on TextField on iOS devices.
2017-07-14 12:43:45 -07:00
Jason Simmons
f56da86f98
Invert the autocorrect flag ( #3875 )
...
See https://github.com/flutter/engine/pull/3866
2017-07-13 15:33:08 -07:00
Collin Jackson
1db18a40da
Revert "Reland "Run Flutter on iOS and Android with color correct Skia ( #3826 )" ( #3878 )
...
This reverts commit 2d9155e174d83e9646c951dbbc85fe1eda8b20e9.
Fixes a regression with semitransparent images (flutter/flutter#11169 )
2017-07-13 14:22:25 -07:00
Michael Goderbauer
79d008ffc9
Fix engine on iOS ( #3871 )
...
Related to https://github.com/flutter/engine/pull/3870 .
2017-07-12 16:45:45 -07:00
Jason Simmons
a64921e380
Hold the TestRunner's platform view through a shared_ptr ( #3870 )
...
flutter_tester was throwing a bad_weak_ptr while setting up the engine
because the PlatformViewTest was held in a unique_ptr
2017-07-12 16:37:47 -07:00
Michael Goderbauer
63bf1d282f
a11y: Add SemanticsAction "showOnScreen" ( #3856 )
...
This action is triggered when the user swipes (in accessibility mode) to the last visible item of a scrollable list to bring that item fully on screen.
iOS implementation to follow.
2017-07-12 15:52:30 -07:00
Jason Simmons
74d6f60558
Enable text autocorrect on Android with a flag to disable it ( #3866 )
...
See https://github.com/flutter/flutter/issues/11168
2017-07-12 14:44:20 -07:00
Carlo Bernaschina
354d90a957
Add missing virtual methods in PlatformView ( #3867 )
2017-07-12 13:06:02 -07:00
Carlo Bernaschina
8ba522eeae
Avoid to freeze the system if hot reloading during debug ( #3833 )
2017-07-12 10:25:42 -07:00
Jason Simmons
456d746eb0
Do not enter text for key events that are not associated with a character ( #3860 )
...
Fixes https://github.com/flutter/flutter/issues/10723
2017-07-10 17:41:14 -07:00
Jason Simmons
8d5372a82a
Do not try to apply selections outside the length of the text ( #3845 )
...
See https://github.com/flutter/flutter/issues/11041
2017-06-30 14:50:01 -07:00
Michael Goderbauer
d2d152f201
Fix a11y scroll direction ( #3841 )
...
See also https://github.com/flutter/engine/pull/3701
2017-06-29 15:56:17 -07:00
Jason Simmons
1009e9c097
Remove warning about a deprecated accessibility API ( #3837 )
2017-06-28 12:47:15 -07:00
Brian Osman
2d9155e174
Reland "Run Flutter on iOS and Android with color correct Skia ( #3826 )
...
* Revert "Revert "Reland "Run Flutter on iOS and Android with color correct Skia" (#3818 )" (#3823 )"
This reverts commit db8d8a9979901d05b011368226ad5bf61b1da13f.
* Fix test code to match internal API change
2017-06-27 13:30:10 -04:00
Brian Osman
db8d8a9979
Revert "Reland "Run Flutter on iOS and Android with color correct Skia" ( #3818 )" ( #3823 )
...
This reverts commit 2650f529a138de9cc9116bb9194dbe22f8e0df25.
2017-06-23 20:28:24 -04:00
Brian Osman
2650f529a1
Reland "Run Flutter on iOS and Android with color correct Skia" ( #3818 )
...
* Revert "Revert "Run Flutter on iOS and Android with color correct Skia (#3743 )" (#3775 )"
This reverts commit cfe70e07d386d6052267fe3772bbd641c8413a54.
* Enable sRGB on IO thread, too
* Add 4444 as a fallback rendering mode
* Use bare ptr to SkColorSpace (not sk_sp) in PrerollContext
2017-06-23 20:21:29 -04:00
Jason Simmons
538e103b2c
Catch exceptions during invocations of updateSemantics from native code ( #3813 )
2017-06-22 11:19:32 -07:00
Jason Simmons
b0dee695ec
Revert to API level 16 compatible variant of AccessibilityNodeInfo.addAction ( #3810 )
...
Fixes https://github.com/flutter/flutter/issues/10855
2017-06-21 12:31:08 -07:00
Jason Simmons
4d1f1f6d8a
Do not call restartInput twice when setting a new text input client. ( #3808 )
...
If restartInput is called twice in quick succession, then the IME may output
warnings related to usage of the obsolete connection resulting from the first
call.
Fixes https://github.com/flutter/flutter/issues/10730
2017-06-21 10:47:02 -07:00
Todd Volkert
fa2726cda0
Remove FlutterActivity#onFlutterReady() ( #3806 )
...
Fixes https://github.com/flutter/flutter/issues/10571
2017-06-21 10:03:04 -07:00
Sarah Zakarias
b8c47e90e6
Fix compile error in FlutterViewController ( #3807 )
2017-06-21 15:20:52 +02:00
Sarah Zakarias
a87d15d62e
Send AppLifecycleState notifications on FlutterViewController lifecycle events. ( #3801 )
2017-06-21 14:39:05 +02:00
P.Y. Laligand
76397e98b4
Update to newer version of the FTL. ( #3804 )
2017-06-20 16:53:14 -07:00
Chris Bracken
fffe502d43
Revert libtxt integration ( #3802 )
...
* Revert "Fix licenses_lib golden file (#3798 )"
This reverts commit d8ac43c3c9123fead15af3004d1e445834115bbd.
* Revert "Remove ParagraphConstriants (#3796 )"
This reverts commit 8ccf767ff71c781588fb1e79cf3369604099a7cc.
* Revert "Reland "Initial integration of libtxt with Flutter alongside Blink." (#3793 )"
This reverts commit 3c049219e1429c8e08632889b6c9e7b070bba534.
2017-06-20 09:59:56 -07:00
Chris Bracken
25c7a86a53
Eliminate ASL stdout forwarding on iOS ( #3797 )
...
ASL was deprecated in iOS 10 and started causing SIGPIPE issues in iOS
10.3. Under the iOS 8 SDK, syslog() stopped working as of iOS 10.3
devices, with the result that ASL stdout/stderr forwarding was the only
means of logging. The engine now builds against the iOS 10 SDK, with
deployment target of iOS 8. Under this SDK, syslog() works correctly
across all supported OS versions.
NOTE: This is a temporary fix to get developers unblocked. While this
does fix the SIGPIPE issue and put iOS logging on par with the Android
solution, the intent is to move to a dedicated communication channel
with flutter_tools that isn't log-based.
2017-06-19 18:10:30 -07:00
Jason Simmons
979f8a63ea
Set the initial route before launching the Dart app ( #3795 )
...
See https://github.com/flutter/flutter/issues/10813
2017-06-19 15:25:47 -07:00
Gary Qian
3c049219e1
Reland "Initial integration of libtxt with Flutter alongside Blink." ( #3793 )
...
* Transition to Hybrid lib/txt and blink text system.
2017-06-19 15:21:41 -07:00