956 Commits

Author SHA1 Message Date
Gary Qian
d298a08c85 [Android] Prevent FlutterRenderer listener from calling JNI after detach (flutter/engine#19558) 2020-07-13 06:29:30 -07:00
Kaushik Iska
a292cb8d21 [android] Pass synthesized eventType to VirtualDisplay platform views and fix memory leak (flutter/engine#19620) 2020-07-09 18:06:02 -07:00
Justin McCandless
e52d9ab7fc Make DPAD movement consider grapheme clusters (flutter/engine#17420)
Moving the caret with the software Dpad now correctly considers complex characters.
2020-07-08 13:59:58 -07:00
Kaushik Iska
3239b704c3 Propoagate Tap events on Android hybrid views (flutter/engine#19608)
Translate the coordinate from global flutterview to the specific embedded sub-view.
2020-07-08 13:19:17 -07:00
Kaushik Iska
8818677dfd Track motion events for reuse post gesture disambiguation (flutter/engine#19484)
This change makes it so that we track all the motion events encountered by `FlutterView` and all of its subviews in the `MotionEventTracker` class, indexed by a unique `MotionEventId`. This identifier is then passed to the Flutter framework as seen in https://github.com/flutter/flutter/pull/60930. Once the gestures take part in gesture disambiguation and are sent back to the engine, we look-up the original motion event using the `MotionEventId` and dispatch it to the platform.

Bug: https://github.com/flutter/flutter/issues/58837
2020-07-06 22:22:37 -07:00
Emmanuel Garcia
f9ad019129 Resubmit frame when the surface is switched (flutter/engine#19555) 2020-07-06 21:55:52 -07:00
Emmanuel Garcia
ea1c94ff13 Add @Keep annotation to FlutterMutatorsStack (flutter/engine#19560) 2020-07-06 18:23:47 -07:00
Emmanuel Garcia
ecc2f07d06 Switch to FlutterSurfaceView if no Android view is in the frame (flutter/engine#19487) 2020-07-06 14:51:46 -07:00
Chris Yang
cf4d2e25d9 Implement mutator stack on Android hybrid composition platform view (flutter/engine#19426) 2020-07-04 13:03:04 -07:00
Kaushik Iska
0c152b8320 Synthesize touch events for hybrid views (flutter/engine#19427)
Co-authored-by: Kaushik Iska <kaushikiska@google.com>
2020-07-02 12:31:30 -07:00
Kaushik Iska
8b90d16e3c FlutterView will hadle dispatching all touch events to sub-views (flutter/engine#19482) 2020-07-02 12:31:10 -07:00
Emmanuel Garcia
af66026f31 Revert unintended change (flutter/engine#19435) 2020-06-30 19:48:01 -07:00
Emmanuel Garcia
59e05c0376 Update scenario UI screenshoots (flutter/engine#19421) 2020-06-30 18:38:06 -07:00
Jason Simmons
8a0511cd25 Basic support for resizing overlay surfaces in hybrid composition (flutter/engine#19402) 2020-06-30 14:08:04 -07:00
Emmanuel Garcia
23b8e92c47 Implement onDisplayPlatformView (flutter/engine#19344) 2020-06-26 21:08:02 -07:00
David Worsham
919f8e6a42 Move fuchsia/scenic integration behind #define (flutter/engine#19003)
Additionally create "_next" permutations for all of the test binaries
on Fuchsia, in order to test both code-paths.

Using the #define follow-up CLs can also create a flutter_runner_next
binary that does not contain any legacy integration code.

BUG: 53847
2020-06-26 14:03:18 -07:00
Emmanuel Garcia
a8aa7dd524 Fix hybrid composition bugs (flutter/engine#19325) 2020-06-26 12:33:02 -07:00
Jason Simmons
d720766b64 Fix ImageReader "unable to acquire a buffer item" warnings in FlutterImageView (flutter/engine#19319) 2020-06-26 11:18:03 -07:00
Gary Qian
fa5dca45d5 Android native locale resolution algorithm (flutter/engine#19266) 2020-06-26 02:48:33 -07:00
Jason Simmons
e00aa84aac Position overlay layer views in PlatformViewsController.onDisplayOverlaySurface (flutter/engine#19295) 2020-06-24 20:48:38 -07:00
Jason Simmons
5b8a1cb82e Initial work toward converting the FlutterView to use a FlutterImageView on demand (flutter/engine#19279) 2020-06-24 16:26:03 -07:00
Chris Yang
27e0962427 Android platform view static thread merging (flutter/engine#19242) 2020-06-24 15:13:02 -07:00
Emmanuel Garcia
910b7ed0df EndFrame should be always called by rasterizer (flutter/engine#19257) 2020-06-24 14:02:48 -07:00
Emmanuel Garcia
b8b9272f77 Move OnDisplayPlatformView JNI call (flutter/engine#19258) 2020-06-24 11:01:30 -07:00
Emmanuel Garcia
f1139e1339 Fix format (flutter/engine#19261) 2020-06-24 09:14:00 -07:00
Jason Simmons
8d13f8deb2 Reland "Implement PlatformViewsController.createOverlaySurface" (flutter/engine#19245) 2020-06-23 12:03:02 -07:00
Jason Simmons
c4d549a3e3 Fix the return type of CreateContext (flutter/engine#19223) 2020-06-23 11:53:02 -07:00
Emmanuel Garcia
ec887cba09 Use public accessor and move keep annotation (flutter/engine#19232)
Fixes an issue introduced in https://github.com/flutter/engine/pull/19221 where
accessing a private field is causing a crash in release mode.

Logs: https://console.firebase.google.com/project/flutter-infra/testlab/histories/bh.60bf482010a9daf5/matrices/8495138397166466033
2020-06-23 09:38:58 -07:00
Emmanuel Garcia
4bb086622c Revert "Implement PlatformViewsController.createOverlaySurface (#19226)" (flutter/engine#19228)
This reverts commit 5f53fb4fbf6fefd7732107a14cb16b00beb298ea.
2020-06-22 20:30:32 -07:00
Jason Simmons
5f53fb4fbf Implement PlatformViewsController.createOverlaySurface (flutter/engine#19226) 2020-06-22 19:21:26 -07:00
Jason Simmons
10bcaede62 JNI glue for calling PlatformViewsController.createOverlaySurface (flutter/engine#19221) 2020-06-22 16:28:04 -07:00
Chris Yang
b64c39e512 Reland "Add GetBoundingRectAfterMutations to EmbeddedViewParams to calculate the final bounding rect for platform view #19170" (flutter/engine#19212) 2020-06-22 15:10:02 -07:00
Maurice Parrish
a51b5b22d6 Creates a new RenderMode for FlutterView (flutter/engine#19143) 2020-06-22 14:40:00 -07:00
Emmanuel Garcia
202c1af268 Implement external view embedder on Android (flutter/engine#19033)
The external view embedder allows to embed Android views in a Flutter app.
2020-06-20 12:51:55 -07:00
Gary Qian
855fa8fde8 Revert method channel platform resolved locale (flutter/engine#19136) 2020-06-19 17:40:22 -07:00
Michael Goderbauer
0b0c2c68d0 Word substitutions (flutter/engine#19111) 2020-06-18 11:05:24 -07:00
cg021
ef2b08d5b6 createOverlaySurface JNI method (flutter/engine#19076)
* createOverlaySurface JNI

* update imports

* remove unused method

* license

* deleted unused file

* remove wrong function call

* removed duplicate createOverlaySurface
2020-06-17 15:21:41 -05:00
zljj0818
1fd49da298 Poor video scaling quality #53080 (flutter/engine#18814)
Use bilinear instead of nearest filter to draw surface texture

Related Issues:
https://github.com/flutter/flutter/issues/53080

Tests:
- TextureLayerTest
2020-06-17 11:14:05 -07:00
Emmanuel Garcia
f44a132c1b Revert add createOverlaySurface JNI #19040 (flutter/engine#19075) 2020-06-16 14:06:15 -07:00
Gary Qian
c9fa545cf3 Platform resolved locale and Android localization refactor (flutter/engine#18645) 2020-06-16 04:29:50 -07:00
cg021
1e0b020dde Add createOverlaySurface JNI (flutter/engine#19040) 2020-06-15 19:49:29 -07:00
Michael Goderbauer
8b7389a9c8 Wire up channel for restoration data (flutter/engine#18042) 2020-06-12 16:31:25 -07:00
Dan Field
d5b8e0ed40 Call Shell::NotifyLowMemory when backgrounded/memory pressure occurs on Android (flutter/engine#19026)
* Reland "Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (#18979)" (#19023)"

This reverts commit c59e68bd173963801870aab396bf443d3b64be49.
2020-06-12 15:12:25 -07:00
cg021
ea31a75bd4 onEndFrame JNI (flutter/engine#18867)
* onEndFrame JNI

* beginFrame brief change
2020-06-12 16:21:25 -05:00
Emmanuel Garcia
c59e68bd17 Revert "Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (#18979)" (flutter/engine#19023)
This reverts commit 88a7c4cc690fc70c016ea9c35e9247ceee610319.
2020-06-12 12:31:12 -07:00
cg021
18b103f955 onBeginFrame JNI (flutter/engine#18866) 2020-06-11 17:15:03 -07:00
Emmanuel Garcia
00651b26ea Call destructor and fix check (flutter/engine#18985) 2020-06-10 20:29:04 -07:00
Emmanuel Garcia
edb8164038 Put JNI functions under an interface (flutter/engine#18903) 2020-06-10 18:40:58 -07:00
Emmanuel Garcia
8f08ddd5b3 Reland: Add RAII wrapper for EGLSurface (flutter/engine#18977) 2020-06-10 17:22:20 -07:00
Dan Field
88a7c4cc69 Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (flutter/engine#18979) 2020-06-10 17:18:17 -07:00