3177 Commits

Author SHA1 Message Date
Nathan Rogers
2dff242e90 Fix input flow event logic (flutter/engine#24526) 2021-02-25 11:51:02 -08:00
Kaushik Iska
b8d4abfab5 [macos] Reland default metal and also check if the system supports metal before defaulting to it (flutter/engine#24601) 2021-02-25 05:49:23 -06:00
Chris Bracken
c3a0385fb5 Use common desktop TextInputModel on macOS (flutter/engine#24533)
This replaces the custom Obj-C TextInputModel implementation used on
macOS with the common C++ implementation used on Linux and Windows. Note
that as a side-effect, this change enables *some* direct IME input for
CJK input but full input will land in follow-up patches that land:

1. Add handling for TextInput.setMarkedTextRect message
2. Add handling for TextInput.setEditableSizeAndTransform message
3. Implement firstRectForCharacterRange:actualRange: using the above.
4. Add NSTextInputContext handling.
2021-02-25 00:04:54 -08:00
Lau Ching Jun
3ef9020448 Add method to obtain native string resource in localization plugin. (flutter/engine#24575) 2021-02-24 23:03:31 -08:00
gaaclarke
8d44387269 Started initializing the gpu disable syncswitch based on the app state. (flutter/engine#24503) 2021-02-24 22:24:29 -08:00
Kaushik Iska
ca6e477c10 Revert "[macos] Make metal the default rendering backend on macOS >= … (flutter/engine#24600)
This reverts commit ca5bf569977085b5730486b24a9219524fc23426.
2021-02-24 09:58:10 -08:00
LongCatIsLooong
271538aefa Passthrough movement keys when theres no selection (flutter/engine#24581) 2021-02-23 20:41:01 -08:00
Nitrogen
8c79b99623 Delete multi set intent parameter (flutter/engine#24543) 2021-02-23 15:31:01 -08:00
Kaushik Iska
d6d316c153 [macos] Make metal the default rendering backend on macOS >= 10.14 (flutter/engine#23967)
Fixes: https://github.com/flutter/flutter/issues/74058
2021-02-22 15:17:45 -08:00
Kaushik Iska
6669586560 External Texture support for macOS Metal (flutter/engine#24523) 2021-02-19 14:36:02 -08:00
Matej Knopp
a1298d0c45 Fix retain cycles in MacOS embedder (flutter/engine#24263) 2021-02-19 10:46:34 -08:00
James Clarke
d7e2d53564 Improve resize (flutter/engine#24428) 2021-02-18 14:51:03 -08:00
John Bauman
822182154d Set debug client info for sysmem allocator (flutter/engine#24384) 2021-02-18 14:46:02 -08:00
Kaushik Iska
f8955fca87 [embedder] [metal] Embedder API can support externally composited Metal textures (flutter/engine#24327) 2021-02-18 11:35:19 -08:00
LongCatIsLooong
98147bb6dc Revert "[Android Text Input] Remove Samsung restart input workaround for newer Samsung keyboards (#24288)" (flutter/engine#24486) 2021-02-18 11:26:01 -08:00
LongCatIsLooong
7694881296 [Android text input] fix android autofill on focused text field (flutter/engine#24463) 2021-02-17 23:01:02 -08:00
eggfly
7149be7fce Fix ImageReader may leak images when onDraw() not called (flutter/engine#24272) 2021-02-17 22:56:06 -08:00
Kaushik Iska
628624c014 Revert "Reland "Remove pipeline in favor of layer tree holder (#18901)" (#24387)" (flutter/engine#24456)
This reverts commit 89d58651ecab974f80345f065203178024eb9b84.
2021-02-17 10:44:39 -08:00
Kaushik Iska
89d58651ec Reland "Remove pipeline in favor of layer tree holder (#18901)" (flutter/engine#24387) 2021-02-16 13:27:09 -08:00
Matej Knopp
68bb09e4ec Unblock FlutterResizeSynchronizer on engine shutdown (flutter/engine#24264) 2021-02-16 12:56:01 -08:00
LongCatIsLooong
09da701b22 [Android Text Input] Remove Samsung restart input workaround for newer Samsung keyboards (flutter/engine#24288) 2021-02-16 09:11:01 -08:00
Chris Bracken
03946537c2 Adjust header guards for updated paths (flutter/engine#24424)
In a46f817 these files were moved from shell/platform/common/cpp to
shell/platform/common.
2021-02-15 13:27:11 -08:00
Chris Bracken
b638110ac3 Add missing header guard, namespace (flutter/engine#24423)
TextRange was missing a namespace declaration and header guards.
2021-02-15 13:26:43 -08:00
James Clarke
e9543eaf17 Windows: linker compatibility with AppContainer for winuwp target (flutter/engine#24318)
* Update Windows linker settings to be compatible with AppContainer when target==winuwp
2021-02-12 19:10:09 -08:00
David Reveman
4e916d1ff6 Fix vulkan surface leaks. (flutter/engine#24372)
This fixes 3 memory leaks:

1. Destroys local vulkan buffer collections.
2. Releases image2 resource in Scenic.
3. Deregister buffer collections from Scenic session.

Co-authored-by: David Reveman <reveman@google.com>
2021-02-12 17:15:29 -05:00
Emmanuel Garcia
5d850382d4 Replace Flutter surface only after all platform views are destroyed (flutter/engine#24363) 2021-02-12 10:02:33 -08:00
David Reveman
3d688d6424 Remove unnecessary buffer collection image constraints. (flutter/engine#24347) 2021-02-11 15:56:02 -08:00
rogeryi
86ce9cc5c2 Fix Android IO and Worker threads priority issue (flutter/engine#23911) 2021-02-11 14:46:02 -08:00
Jason Simmons
ea99328502 Remove NonNull annotation on FlutterCallbackInformation.lookupCallbackInformation (flutter/engine#24340)
Fixes https://github.com/flutter/flutter/issues/73937
2021-02-11 14:28:47 -08:00
Kaushik Iska
da6faa257c Reland "[metal] Darwin unified external metal textures (#24157)" (flutter/engine#24350) 2021-02-11 09:24:36 -08:00
Chris Yang
6a7ff47d16 Always set change type to cancel with touchesCancelled on iOS platform view (flutter/engine#24333) 2021-02-10 17:51:01 -08:00
Kaushik Iska
3523722a49 Revert "Reland "[metal] Darwin unified external metal textures (#2415… (flutter/engine#24331)
This reverts commit 1deabe1decb00efe0275b34beb540be1bd93a80c.
2021-02-10 13:06:24 -08:00
chunhtai
d2dacb33bc unhide uitextinput when focused (flutter/engine#23776) 2021-02-09 15:01:01 -08:00
Chris Yang
a1f254977b Fix FlutterPlatformViewSemanticsContainer retain cycle with SemanticsObject (flutter/engine#24308) 2021-02-09 13:31:01 -08:00
Tong Mu
7c667f5524 [Windows] Fix crash of TextInputPlugin on empty model (flutter/engine#24293) 2021-02-09 09:56:02 -08:00
Kaushik Iska
1deabe1dec Reland "[metal] Darwin unified external metal textures (#24157)" (flutter/engine#24244) 2021-02-09 08:45:16 -08:00
Kaushik Iska
709f74d757 [windows] Surface will not update when restoring (flutter/engine#24236) 2021-02-05 10:17:47 -08:00
Matej Knopp
289eba71b0 Add API to force redraw of flutter view (flutter/engine#24186)
Currently when creating hidden window and showing it later the content does not get repainted automatically (unless something else triggers the repaint). This adds public `FlutterDesktopViewControllerForceRedraw()` to trigger repaint. The current implementation triggers this via a call to `SendWindowMetrics` but this should eventually be replaced by an embedder API call.

See: https://github.com/flutter/flutter/issues/75319
See: https://github.com/flutter/flutter/issues/69716
2021-02-05 09:56:52 -08:00
Zachary Anderson
8ea4641a8c Revert "[metal] Darwin unified external metal textures (#24157)" (flutter/engine#24223)
This reverts commit c9e6fec5a2f4d906c4cd05e51d0c7d81d44df999.
2021-02-05 08:38:04 -06:00
eggfly
8c89d6757f Add buffer.rewind() (flutter/engine#23955) 2021-02-04 15:11:01 -08:00
George Wright
a46f817aee Move shell/platform/common/cpp to shell/platform/common (flutter/engine#24210) 2021-02-04 14:06:02 -08:00
Kaushik Iska
c9e6fec5a2 [metal] Darwin unified external metal textures (flutter/engine#24157) 2021-02-04 11:51:02 -08:00
xster
2c57ad10c1 Make activity/fragment leftover from an attach/detach race slightly safer (flutter/engine#24181) 2021-02-03 21:25:40 -08:00
David Worsham
3215611f74 Fix use of multiple shells w/ different snapshots (flutter/engine#24152) 2021-02-03 17:42:36 -08:00
huanghongxun
a5b9730ca5 No longer redraw window every frame to reduce CPU consumption 2021-02-04 09:30:26 +13:00
chunhtai
56c0a73e02 fixes android deeplink query paremeter null crashes (flutter/engine#24146) 2021-02-02 17:01:03 -08:00
Yuhui Huang
0561c75b4d Refactor FlRenderer to platform-independent implementation (flutter/engine#24011)
Refactor FlRenderer to platform-independent implementation
2021-02-03 11:31:51 +13:00
Michael Reed
e79a215a31 drawBitmap is deprecated, use drawImage (flutter/engine#24135)
Co-authored-by: Mike Reed <reed@google.com>
2021-02-02 08:24:42 -08:00
gaaclarke
9f222fa212 Fixed plumbing of the spawning isolate for Shell::Spawn. (flutter/engine#24112) 2021-02-01 15:32:15 -08:00
Michael Reed
7ef5d67e1b Use sampling instead of (deprecated) filter-quality (flutter/engine#24101) 2021-02-01 00:16:02 -08:00