4135 Commits

Author SHA1 Message Date
Renzo Olivares
47fcfe0b21 Fix entering newline on deltas for windows (flutter/engine#32195)
* Fix entering newline

* utf8toutf16

* formatting

* Address reviews

* send *model“

* capture oldtext and selection before newline is added to model

* use model vs _active_model_ for consistency

* Formatting

* updates

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-23 12:02:13 -07:00
Camille Simon
5b4339f41a Revert "Remove usages of Android's OnSystemUiVisibilityChangeListener (#30931)" (flutter/engine#32217)
This reverts commit b077eda4caae4f5efa402af88632cea6e7aaa0fe.
2022-03-23 10:47:15 -07:00
Chinmay Garde
3088a62e29 Allow surface implementations to control when the raster cache may be enabled. (flutter/engine#32213) 2022-03-23 10:23:14 -07:00
Emmanuel Garcia
eb5ac3144d Support software rendering when textures are used (flutter/engine#32178) 2022-03-22 14:10:10 -07:00
Camille Simon
b077eda4ca Remove usages of Android's OnSystemUiVisibilityChangeListener (flutter/engine#30931) 2022-03-22 14:00:11 -07:00
Renzo Olivares
0d9b02f227 Linux deltas double free and newline fix (flutter/engine#32168)
* Fix double free

* Fix entering a newline

* Formatting

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-22 12:13:13 -07:00
ColdPaleLight
9af8b0bf05 Fix crash about 'SkiaUnrefQueue::Drain' is called after 'IOManager' reset (flutter/engine#32106) 2022-03-21 14:45:10 -07:00
Dan Field
f396ea98b7 Enable MSAA behind a flag for Android GL, add TODOs for other platforms (flutter/engine#32128) 2022-03-21 11:10:05 -07:00
Chris Yang
840af99590 Make Get GetVsyncWaiter return weak_ptr to prevent dangling pointer crash (flutter/engine#32121) 2022-03-21 11:05:05 -07:00
Zachary Anderson
1f2acee85b Adds a plist flag for Impeller (flutter/engine#32157) 2022-03-21 09:35:26 -07:00
ColdPaleLight
05bb17d606 Always update the latest frame target time when the 'Animator::Render' method is called (flutter/engine#31973) 2022-03-21 09:35:02 -07:00
Emmanuel Garcia
77ddaf3f09 Handle case where platform view getView() returns null (flutter/engine#32131) 2022-03-19 10:05:11 -07:00
LongCatIsLooong
ddadbbc372 [macOS TextInputPlugin] Reactivate input context on key event (flutter/engine#32117) 2022-03-18 15:10:10 -07:00
xiaoxiaowesley
24fd333ce6 Fix iOS keyboard physical keyboard doesn't work in add to app (flutter/engine#32098) 2022-03-18 07:10:09 -07:00
Wu Zhong
6b27162f6a [iOS] Fixes state restoration not work (flutter/engine#31511) 2022-03-17 21:55:07 -07:00
gaaclarke
eb45cf1c9d Fixed image generator registry usage with spawn. (flutter/engine#31622) 2022-03-17 13:10:11 -07:00
ColdPaleLight
4ea096162f Disable several tests due to flakiness (flutter/engine#32059) 2022-03-17 03:55:09 -07:00
LongCatIsLooong
8e2d6777d1 [macOS] Forward key events to NSTextInputContext when there's composing text (flutter/engine#32051) 2022-03-15 21:15:09 -07:00
Dan Field
57f4b8e838 Make tracing safe (flutter/engine#32042) 2022-03-15 21:10:11 -07:00
eggfly
f3efac3388 [windows] Support win_debug_x86 compilation target in engine (flutter/engine#30417) 2022-03-15 20:10:10 -07:00
Dan Field
3a0d0b6e36 Support stencil buffers on OpenGL for Windows and Android (flutter/engine#31967) 2022-03-15 16:50:07 -07:00
Chinmay Garde
34f3581a3c Switch the renderer to impeller based on the presence of a command line flag. (flutter/engine#31959)
Specifying the `--enable-impeller` flag will switch the renderer to using
Impeller instead of Skia. On platforms where Impeller is not supported, this
flag is ignored.

The notion of the `flutter::SurfaceFrame` has been augmented. Now, in the
absence of a Skia surface to render to, the surface frame will render into a
display list instead.

Impeller variants of the context and surface variants have been added to
`shell/gpu` and `shell/platform`. The variants prepare surface frames that
don’t/can’t specify a Skia surface thus forcing the surface frame to render to a
display list instead. Then, in the submit callback, they forward the display
list ops to the Impeller display list dispatcher.

This scheme has been chosen as it requires the fewest updates to engine
internals which all depend on Skia data structures. Instead of updating all
call-sites to be Skia neutral, the display list interface itself is being made
graphics package agnostic.
2022-03-15 14:12:53 -07:00
LongCatIsLooong
8762ed9c33 [macOS] fix text selection when there's composing text (flutter/engine#31936) 2022-03-15 14:00:02 -07:00
Renzo Olivares
a96a314d63 Fix local text value and selection not updating when delta is sent to… (flutter/engine#31966)
* Fix local text value and selection not updating when delta is sent to framework

* readd new line

* Add test

* whitespace

* whitespace

* formatting

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-15 13:16:19 -07:00
Emircan Uysaler
adb2b2e83c [fuchsia] Remove kFlatlandDefaultViewportSize (flutter/engine#31964) 2022-03-15 08:20:47 -07:00
ColdPaleLight
aa63b8f801 Migrate the API of GrDirectContext about resource memory limit (flutter/engine#31977) 2022-03-14 16:50:10 -07:00
Emmanuel Garcia
539b72705c Revert: Partially remove setSystemUiVisibility() usages (flutter/engine#32007) 2022-03-14 11:15:06 -07:00
wangying
6a04696e6f Fix timestamp of touch events should use system startup time (flutter/engine#30422) 2022-03-13 11:07:09 -07:00
ColdPaleLight
94ecaf782b Animator stopped notifying delegate to render when pipeline is not empty (flutter/engine#31727) 2022-03-10 23:00:07 -08:00
Robert Ancell
8aa424bd89 Changed the default a11y node role from ATK_ROLE_FRAME to ATK_ROLE_PANEL (flutter/engine#31602) 2022-03-10 22:55:11 -08:00
Robert Ancell
6f6f57f38f Fix signals adding/removing a11y nodes in Linux. (flutter/engine#31601) 2022-03-10 22:50:06 -08:00
Robert Ancell
b58e7be9b6 Set a11y roles for checks, toggles and sliders. (flutter/engine#31600) 2022-03-10 22:40:05 -08:00
Tong Mu
f6f38145a4 [macOS, Keyboard] Refactor: Clean up keyboard initialization, connection, and unit test framework (flutter/engine#31940) 2022-03-10 22:35:13 -08:00
Robert Ancell
d3517e43a9 Generate a11y events for widgets that use kFlutterSemanticsFlagIsToggled (flutter/engine#31582) 2022-03-10 22:35:10 -08:00
ColdPaleLight
fc5766639a Make sure the secondary vsync callback is called after the vsync callback (flutter/engine#31513) 2022-03-10 17:45:05 -08:00
Zachary Anderson
7a40b3a70d Revert "Add a message when a key response takes too long. (#31945)" (flutter/engine#31962)
This reverts commit 0aa006102ecbaf23b49d96014e7996e4d3ce7d84.
2022-03-10 12:34:36 -08:00
Greg Spencer
0aa006102e Add a message when a key response takes too long. (flutter/engine#31945)
This splits the nested event loop in the keyboard manager on iOS into two parts: The first times out after 2 seconds, and if that happens, prints an NSLog indicating that the framework took a long time to respond, and then it enters the event loop again, waiting forever this time. This means the behavior doesn't change from what it is now, but will log when things take a long time.
2022-03-10 09:59:24 -08:00
Tong Mu
16d5aa1e7d [macOS, Keyboard] Convert abrupt repeat events to down events (flutter/engine#31941)
* Impl and test

* Format
2022-03-09 23:13:12 -08:00
Justin McCandless
53425594be Bugfix: linux deltas should use selection here, not composing (flutter/engine#31906)
Fix for TextEditingDeltas composing case.
2022-03-09 13:25:02 -08:00
godofredoc
517844bc57 Generate MacOS framework with GN + Ninja. (flutter/engine#31903) 2022-03-09 12:45:04 -08:00
utzcoz
7db830289d Use config to set land qualifiers (flutter/engine#31853)
Signed-off-by: utzcoz <utzcoz@outlook.com>
2022-03-09 08:00:49 -08:00
ColdPaleLight
611a350575 Use AChoreographer methods to await vsync when available (flutter/engine#31859) 2022-03-08 21:15:08 -08:00
Tong Mu
809d01034b [Win32, Keyboard] Fix AltGr's forged ControlLeft (flutter/engine#31848) 2022-03-08 18:20:03 -08:00
Rutger Vromans
8c42b89cdf Access on/off labels accessibility setting for switches on iOS (flutter/engine#30764) 2022-03-07 14:51:10 -08:00
Jonah Williams
257234a32a Allow providing max_cache_entry flag to Dart (flutter/engine#31881) 2022-03-07 14:21:02 -08:00
Chris Bracken
76d4487cc9 [macOS] Clear IME mark text on clear input client (flutter/engine#31849)
When the embedder receives a TextInput.clearClient message from the
framework (typically when a text field loses focus), if the user is
currently inputting composing text using an IME, commit the composing
text, end composing, and clear the IME's composing state.

This also exposes a public `editingState` getter on
FlutterTextInputPlugin as part of the TestMethods informal protocol.
This allows us to get at the text editing state as a dictionary in
tests.

Issue: https://github.com/flutter/flutter/issues/92060
2022-03-07 10:30:46 -08:00
Jonah Williams
4f31c558bc [windows] use angle fast path on d3d11 backend (flutter/engine#31830) 2022-03-07 10:06:09 -08:00
Rulong Chen(陈汝龙)
4f6f461dac Fix compatibility issues with SurfaceTexture on Android Q. (flutter/engine#31698) 2022-03-07 10:01:26 -08:00
Chris Bracken
4f4fcb224e [macos] Register log handler (flutter/engine#31861)
Previously, the macOS embedder relied on the deprecated built-in log
handling in lib/ui/ui_dart_state.cc. Instead, we now register a
dedicated log handler for the macOS embedder. This is used, for example,
to output Dart 'print' calls.

While unlikely that we'll break the internal generic fallback logging,
it's preferable to keep platform-specific functionality in the embedder.

Issue: https://github.com/flutter/flutter/issues/99636
2022-03-06 12:31:29 -08:00
Justin McCandless
b7f187c7d2 TextEditingDelta Windows (flutter/engine#30329)
Support for TextEditingDeltas (useful for rich text editors) on Windows.
2022-03-04 13:31:06 -08:00