Jason Simmons
0223e293f2
Improve checks for calls into native code made after the platform view has been detached ( #3926 )
2017-08-17 10:24:12 -07:00
Carlo Bernaschina
1948fef8d5
Avoid race condition into NotifyNextFrameOnce ( #3980 )
...
If GPURasterizer::NotifyNextFrameOnce was rapidly invoked twice could
have lead to a null pointer exception.
Also ftp::WeakPtr are not thread safe and should not be dereferenced
from other threads.
2017-08-15 14:35:16 -07:00
Jason Simmons
841cd66712
Remove use of a deprecated getDrawable API ( #3979 )
2017-08-15 11:54:04 -07:00
xster
08eb72341f
Add an explicit user configurable check for whether to keep showing the splash screen. ( #3976 )
2017-08-15 11:01:12 -07:00
Zachary Anderson
23036e515a
Fixes for gypi -> gni change in Dart ( #3977 )
2017-08-15 07:44:27 -07:00
xster
f187a5c219
Create platform API for first frame callback. Use for defer hiding splash screens on Android and iOS ( #3956 )
...
* Add back launch screen view until first frame on iOS
* improvements
* Move callback plumbing from ios surfaces to the gpu rasterizer. Didn’t wire java JNI yet.
* Android JNI
* Fix ios reference count and let android engine manage a view on top with launch screen
* Hook up Android activity and view
* review notes
* review notes
* Move thread switching upstream. Use weak references for callbacks.
* Some clean up
2017-08-14 15:44:52 -07:00
Sarah Zakarias
2b7a8f1490
Add flutter-driven navigation on iOS ( #3865 )
2017-08-09 13:01:35 +02:00
Chinmay Garde
b08167ba52
Implement all known blink::PointerData fields on iOS. ( #3955 )
2017-08-07 15:04:10 -07:00
Chinmay Garde
eb33f26513
Update buildroot and opt out of LTO on unopt builds. ( #3952 )
2017-08-04 13:12:36 -07:00
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