10575 Commits

Author SHA1 Message Date
James D. Lin
4ff4a5cc99
Fix potential null pointer dereference in FlutterDartProject (#6035)
If `FlutterDartProject` found an `FLTLibraryPath` entry in an iOS
application's `Info.plist`, it assumed that values that were valid
filesystem paths were paths to bundles.  If the attempt to retrieve
the `NSBundle` fails, `FlutterDartProject` ignored the failure and
then would assign `nil` to a C++ `std::string`, resulting in a null
pointer dereference.

Add some failure checks to prevent this.
2018-08-16 17:40:33 -07:00
skia-flutter-autoroll
9e26174597
Roll src/third_party/skia 8d77d1d85e2f..e21f0ec04e98 (5 commits) (#6036)
Auto-roller completed checks. Merging.
2018-08-16 20:31:46 -04:00
skia-flutter-autoroll
9ec11b8d24
Roll src/third_party/skia cbb7d572aaa1..8d77d1d85e2f (12 commits) (#6034)
Auto-roller completed checks. Merging.
2018-08-16 17:07:46 -04:00
skia-flutter-autoroll
16922dd412
Roll src/third_party/skia cbd83bbd77d1..cbb7d572aaa1 (5 commits) (#6033)
Auto-roller completed checks. Merging.
2018-08-16 13:43:46 -04:00
skia-flutter-autoroll
4ee648914f
Roll src/third_party/skia 767fddfcce61..cbd83bbd77d1 (1 commits) (#6032)
Auto-roller completed checks. Merging.
2018-08-16 10:20:46 -04:00
skia-flutter-autoroll
a5204c9e7f
Roll src/third_party/skia 64703d11a92a..767fddfcce61 (1 commits) (#6031)
Auto-roller completed checks. Merging.
2018-08-16 03:10:46 -04:00
skia-flutter-autoroll
3280fc3284
Roll src/third_party/skia 77af386c13cb..64703d11a92a (1 commits) (#6030)
Auto-roller completed checks. Merging.
2018-08-15 23:47:46 -04:00
skia-flutter-autoroll
36aa0ed526
Roll src/third_party/skia e49966c983ec..77af386c13cb (3 commits) (#6029)
Auto-roller completed checks. Merging.
2018-08-15 20:24:08 -04:00
Chinmay Garde
2f19645a76
Wait for Dart VM initialization before the letting the service isolate constructor access the VM object. (#6028)
The service isolate creation callback may occur on a background thread before
the call the Dart_Initialize within the DartVM construtor can finish. We store
pointers to various snapshots within the DartVM object. These snapshots are
necessary for to successfully create the service isolate. The isolate creation
callback access the global object within the ForProcessIfInitialized method.
This method can return null if the VM object has not been initialized. This
leads to the service protocol failing to start in a non-deterministic manner.
This patch moves the creation and access of the DartVM object within a critical
section.
2018-08-15 15:26:22 -07:00
Chinmay Garde
9c0c62016d
Re-apply "Log Tonic errors with FML_LOG" (#6026)
This reverts commit d03897011aa6a88d2c95c0b7f3f47291db8eb2da and updates the tonic SHA.
2018-08-15 14:28:24 -07:00
skia-flutter-autoroll
c09116aeda
Roll src/third_party/skia 31a0944bb30b..e49966c983ec (8 commits) (#6027)
Auto-roller completed checks. Merging.
2018-08-15 17:00:46 -04:00
liyuqian
829e4756b7
Update docker image tag and README (#5995) 2018-08-15 12:37:32 -07:00
Chinmay Garde
7e39999187
Add message encoding/decoding utility to FML. (#6017) 2018-08-15 12:30:02 -07:00
skia-flutter-autoroll
e3687f70c7
Roll src/third_party/skia 916c498c04fa..31a0944bb30b (3 commits) (#6025)
Auto-roller completed checks. Merging.
2018-08-15 13:37:46 -04:00
Martin Kustermann
81baff97c2
Switch all embedders to use platform_strong.dill instead of platform.dill (the flutter_tester binary already does this) (#6024) 2018-08-15 17:45:11 +02:00
skia-flutter-autoroll
ad5af2fc08
Roll src/third_party/skia 49bb9c17d713..916c498c04fa (1 commits) (#6023)
Auto-roller completed checks. Merging.
2018-08-15 10:14:46 -04:00
skia-flutter-autoroll
69510ab63f
Roll src/third_party/skia 572eee09ef71..49bb9c17d713 (1 commits) (#6022)
Auto-roller completed checks. Merging.
2018-08-15 03:00:46 -04:00
Chinmay Garde
d03897011a
Revert "Log Tonic errors with FML_LOG" (#6021)
Reverts flutter/engine#6015

This is causing the Windows bots to fail.
2018-08-14 22:22:28 -07:00
Chinmay Garde
82c79f85e1
Fix Android Vulkan builds to account for resource context management API updates. (#6020) 2018-08-14 22:20:05 -07:00
skia-flutter-autoroll
5e3a55fa24
Roll src/third_party/skia 0d4a18321160..572eee09ef71 (3 commits) (#6019)
Auto-roller completed checks. Merging.
2018-08-14 23:36:54 -04:00
Jason Simmons
f22dfa2d21
Log Tonic errors with FML_LOG (#6015) 2018-08-14 17:04:38 -07:00
skia-flutter-autoroll
e4f257d9b0
Roll src/third_party/skia cdbb076bf577..0d4a18321160 (5 commits) (#6016)
Auto-roller completed checks. Merging.
2018-08-14 19:34:54 -04:00
Jason Simmons
ea07f27997
Detach the resource context before shutting down the IO thread (#6009) 2018-08-14 13:15:42 -07:00
skia-flutter-autoroll
3ac46bcf47
Roll src/third_party/skia 32c7d4dfcdca..cdbb076bf577 (5 commits) (#6014)
Auto-roller completed checks. Merging.
2018-08-14 16:10:54 -04:00
Niko Yuwono
6e780fdc67 Add NSNull check in setSystemChromeSystemUIOverlayStyle (#6011) 2018-08-14 11:45:45 -07:00
James D. Lin
7ec5f8ada4
Don't require FLTLibraryPath and FLTAssetsPath from the main NSBundle (#5986)
We'd like the ability to add Flutter to existing iOS applications
without requiring that they set `FLTLibraryPath` and `FLTAssetsPath`
in the main bundle's `Info.plist`.

1. Modify `-[FlutterDartProject initWithPrecompiledDartBundle:]` to
   support setting the library and assets path from the specified
   `NSBundle` instead.

2. If no `NSBundle` is explicitly specified, look for one with a
   default bundle identifier ("io.flutter.flutter.app") before
   falling back to the main NSBundle.

Also remove `+[FlutterDartProject pathForFlutterAssetsFromBundle:]`
because we don't use it internally, and it isn't exposed in the
header file.
2018-08-14 10:45:05 -07:00
skia-flutter-autoroll
73e52baf0e
Roll src/third_party/skia d4322a8630bc..32c7d4dfcdca (2 commits) (#6013)
Auto-roller completed checks. Merging.
2018-08-14 12:48:54 -04:00
Martin Kustermann
b148e628ec
Widen sdk version constraint of package:{flutter_services,sky_engine,sky_services} to allow ^2.0.0 (#6012) 2018-08-14 13:47:01 +02:00
skia-flutter-autoroll
35ab2a7a4a
Roll src/third_party/skia 1b95ef9f9912..d4322a8630bc (1 commits) (#6010)
Auto-roller completed checks. Merging.
2018-08-13 22:16:54 -04:00
Jason Simmons
9d471063cb
Do not log unwind errors during isolate shutdown (#6008) 2018-08-13 16:31:54 -07:00
Chinmay Garde
89176ee006
Remove unused argument on Animator, Engine and PlatformView delegates. (#6007)
When these delegate methods were initially added, it was expected that a single
shell would be able to own mutliple platform views, engines and animators. This
plan was abandoned in favor of creating multiple shells with their own platform
views, engines, etc.. The arguments were meant to ease the disambiguate the
instances of the variaous objects managed by the shell. This is no longer
necessary.
2018-08-13 16:16:10 -07:00
skia-flutter-autoroll
cfa8dcc617
Roll src/third_party/skia beac4195ccb7..1b95ef9f9912 (1 commits) (#6006)
Auto-roller completed checks. Merging.
2018-08-13 18:52:54 -04:00
skia-flutter-autoroll
e10eecdcf0
Roll src/third_party/skia b35c655378ee..beac4195ccb7 (6 commits) (#6005)
Auto-roller completed checks. Merging.
2018-08-13 15:29:54 -04:00
skia-flutter-autoroll
9cfe8a938b
Roll src/third_party/skia 87a737292804..b35c655378ee (1 commits) (#6004)
Auto-roller completed checks. Merging.
2018-08-13 12:06:15 -04:00
skia-flutter-autoroll
1bff649eb4
Roll src/third_party/skia f1a25c06cd15..87a737292804 (1 commits) (#6003)
Auto-roller completed checks. Merging.
2018-08-13 03:36:54 -04:00
skia-flutter-autoroll
768aa0b361
Roll src/third_party/skia 02d174687cc9..f1a25c06cd15 (1 commits) (#6002)
Auto-roller completed checks. Merging.
2018-08-12 05:07:54 -04:00
skia-flutter-autoroll
6047e17d8b
Roll src/third_party/skia 5fb1b7e0ffe1..02d174687cc9 (1 commits) (#6001)
Auto-roller completed checks. Merging.
2018-08-11 08:01:54 -04:00
skia-flutter-autoroll
4bef15c41b
Roll src/third_party/skia 609fbe34de01..5fb1b7e0ffe1 (3 commits) (#6000)
Auto-roller completed checks. Merging.
2018-08-10 21:48:54 -04:00
Stanislav Baranov
0c0034323d
Make 'gn --debug' and 'gn --debug --dynamic' identical. (#5999) 2018-08-10 15:34:41 -07:00
John Bauman
e80bc1003b
Enable VK_KHR_get_physical_device_properties2 (#5982) 2018-08-10 15:33:21 -07:00
John Bauman
aee78c8c2e
Add VK_ERROR_FRAGMENTATION_EXT (#5981) 2018-08-10 15:33:03 -07:00
skia-flutter-autoroll
6077c0e0f4
Roll src/third_party/skia a9660ec89bc7..609fbe34de01 (7 commits) (#5998)
Auto-roller completed checks. Merging.
2018-08-10 18:24:54 -04:00
Chinmay Garde
1eefcabe36
Check the kernel header magic to determine if a mapping may be a valid kernel blob. (#5997) 2018-08-10 15:12:48 -07:00
nathanrogersgoogle
149ea7b74c
Add a delay to Animator::BeginFrame's NotifyIdle call (#5972)
This change adds a delay before Animator::BeginFrame calls its
delegate's OnAnimatorNotifyIdle.  This is because under certain
workloads, such as our parent view resizing us, which is communicated
via viewport change events, we won't have a frame scheduled yet in the
animator, despite the fact that we will go on to schedule a frame once
the viewport event arrives.

In Fuchsia's resizing performance test, on our reference high end x86-64
hardware, the previous logic was resulting in a ~45ms garbage collection
right after the first frame of an animation.
2018-08-10 13:28:09 -07:00
Stanislav Baranov
74373462e4
Fix codepush breakage caused by #5954. (#5996) 2018-08-10 13:23:51 -07:00
amirh
a389dc595f
Cast MotionEvent timestamps to Number. (#5994)
Dart might choose to marshall the timestamps to a Java Long or Integer.
Casting directly to int was crashing when the timestamp wass a Long.
2018-08-10 12:46:49 -07:00
skia-flutter-autoroll
00d7069677
Roll src/third_party/skia 6ed63968a391..a9660ec89bc7 (14 commits) (#5993)
Auto-roller completed checks. Merging.
2018-08-10 15:01:54 -04:00
Todd Volkert
a84b210b3d
Reference platform_strong.dill, not platform.dill (#5992) 2018-08-10 11:55:36 -07:00
Jason Simmons
47a83a6ccf
Update to FreeType 2.9.1 (#5991)
Fixes https://github.com/flutter/flutter/issues/20303
2018-08-10 11:10:26 -07:00
skia-flutter-autoroll
060d8bfbfb
Roll src/third_party/skia 5b5d84cc1f37..6ed63968a391 (4 commits) (#5989)
Auto-roller completed checks. Merging.
2018-08-10 11:40:54 -04:00