3476 Commits

Author SHA1 Message Date
Jim Graham
ce11db413a Implement a DisplayList mechanism similar to the Skia SkLiteDL mechanism (flutter/engine#26928) 2021-06-30 17:31:02 -07:00
David Worsham
5e5fe01dd2 Reland "fuchsia: Delete all the legacy code! (#26422)" (flutter/engine#27075)
This reverts commit bb3c49a9c3edf931a5601f0245faa85f5e077cb4.
2021-06-30 15:43:21 -07:00
Matej Knopp
09345c76b4 Windows: Resize synchronization shouldn't wait for vsync if window is hidden (flutter/engine#26857)
* Resize synchronization shouldn't wait for vsync if window is hidden
2021-06-30 12:56:14 +02:00
Emmanuel Garcia
277ee46c46 Give FlutterView a view ID (flutter/engine#27052) 2021-06-29 21:02:06 -07:00
Darren Chan
19e8b949e4 Fix use-after-free. (flutter/engine#27053)
Switch from `fml::NonOwnedMapping` to `fml::DataMapping`.

All other uses of `fml::NonOwnedMapping` are not in `PlatformView` and do not access data after references are out of scope.

This fixes https://fxbug.dev/77924.
2021-06-29 19:42:52 -04:00
Chinmay Garde
8867a5c405 Temporarily opt out of reduced shaders variants till roll issues are resolved. (flutter/engine#27048) 2021-06-29 15:11:02 -07:00
Hrishikesh Kadam
be091e0d43 Minor correction of hyperlinks in FlutterFragment.java (flutter/engine#26993) 2021-06-29 13:21:14 -07:00
LongCatIsLooong
fe8267a049 [iOS TextInput] Disables system keyboard for TextInputType.none (flutter/engine#26979) 2021-06-29 09:56:02 -07:00
J-P Nurmi
ab0e02d988 Android: add support for TextInputType.none (flutter/engine#26585) 2021-06-29 09:51:01 -07:00
Darren Chan
9e3b487842 [refactor] Migrate to View.focus.*. (flutter/engine#27005) 2021-06-29 09:41:01 -07:00
Darren Chan
a554250813 Always complete platform message requests. (flutter/engine#26994)
Functions/methods registered in `platform_message_handlers_` should return true or false, indicating whether the response was handled by them.
This makes it more explicit whether a platform message handler will asynchronously complete a response, versus if there was malformed/invalid request.

If the response was not handled, `CompleteEmpty` in `PlatformView::HandlePlatformMessage` to avoid hanging `Future`s in dart.

This fixes https://fxbug.dev/79056.
2021-06-29 09:58:31 -04:00
Kate Lovett
ae993b94fe Re-land Android fullscreen support (flutter/engine#27018) 2021-06-28 18:31:02 -07:00
Chinmay Garde
7cfb375a5e Configure contexts to reduce shader variations. (flutter/engine#27016)
Context creation options for each backend were spread across multiple
translation units. This makes setting options common across all backends hard to
configure. I have moved the creation of such common options into a separate
translation unit.

Fixes https://github.com/flutter/flutter/issues/84213
2021-06-28 15:37:14 -07:00
Chase Latta
38cc5181d8 Allow fuchsia_archive to accept a cml file and cmx file (flutter/engine#27012)
This adds support for adding a cml file to a fuchsia package. The
cml file will be compiled to a cm file and included in the archive.
2021-06-28 13:48:21 -07:00
Angjie Li
242a5501d8 Revert "[Engine] Support for Android Fullscreen Modes (#25785)" (flutter/engine#27014)
This reverts commit ea1ff8ab3b1b15b6dd4497dccd0afd081bfa09db.
2021-06-28 13:00:03 -07:00
Dan Field
844fa85973 Fix Fuchsia build on Mac (flutter/engine#27007) 2021-06-28 10:36:01 -07:00
Jonah Williams
ccae44ffd0 Surface frame number identifier through window (flutter/engine#26785) 2021-06-28 10:16:01 -07:00
Kaushik Iska
465361fb7f Record raster end as soon as frame is submitted (flutter/engine#26970) 2021-06-28 09:59:52 -07:00
Dan Field
3bc015dc10 Remove tech debt related to image disposal and layer GC (flutter/engine#26870)
* remove tech debt

* Fix test
2021-06-25 15:33:08 -07:00
George Wright
f4aa3aad88 Add unit tests for Dart entrypoint arguments on Linux (flutter/engine#26951) 2021-06-25 11:05:24 -07:00
Jason Simmons
d7bc71a47c Log an error in DoMakeRasterSnapshot if Skia can not create a GPU render target (flutter/engine#26772) 2021-06-24 13:26:01 -07:00
Arjunsinh Jadeja
3cbfde36c2 Fix splash screen with theme references crash on Android API 21 (flutter/engine#26083) 2021-06-24 13:21:02 -07:00
Ben Hagen
e6966a545d Remove invalid texture error message (flutter/engine#26816)
This unifies the behaviour with other embedders.

Fixes flutter/flutter#84855
2021-06-24 13:08:37 -07:00
Rafal Walczyna
6024e186a2 Initialize EventChannel state (flutter/engine#26761)
OnCancel was firing randomly on event channel registering
because of uninitialized is_listening_ variable.

This PR fixes: flutter/flutter#84632
2021-06-24 13:07:56 -07:00
Robert Ancell
3fa5f09847 Re-enable non-smooth scrolling. (flutter/engine#26549)
Since 0561c75b4d events are now handled in a GtkEventBox and the duplicate
scroll events no longer occur.

Fixes https://github.com/flutter/flutter/issues/73823
2021-06-24 13:06:05 -07:00
Darren Chan
7a203330e1 Emit viewRefFocused events in the flutter runner. (flutter/engine#26791)
Fulfill HostView.getCurrentFocusState and HostView.getNextFocusState platform message requests to deliver focus-related events to dart code.

Consolidate focus functionality (including requestFocus handling) to a new "FocusDelegate" class.

See https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.views/view_ref_focused.fidl for details about focus state transitions and their meanings.

See https://fxbug.dev/77481.
2021-06-24 14:48:10 -04:00
Kate Lovett
ea1ff8ab3b [Engine] Support for Android Fullscreen Modes (flutter/engine#25785) 2021-06-24 10:56:01 -07:00
chunhtai
9cca57abef Reland ios accessibility scrolling support (flutter/engine#26860) 2021-06-23 13:36:16 -07:00
Martin Kustermann
fde57f1f1d Remove usages of --no-causal-async-stacks (flutter/engine#26877)
Passing the --causal-async-stacks flag to the VM will cause it to error
on VM startup. The VM will remove the flag entirely, but before doing so
we'll have to remove usages of the negated version of the flag, namely
--no-causal-async-stacks.
2021-06-23 14:30:26 +02:00
Dan Field
42ef4abc81 fix javadoc (flutter/engine#26892) 2021-06-22 23:01:01 -07:00
chunhtai
2a526b317d Revert "Issues/80711 reland (#26813)" (flutter/engine#26859)
This reverts commit d03313b7b3f97d2083e3977d9e62974687760a33.
2021-06-21 10:21:04 -07:00
Matej Knopp
fddf12de3f Rasterizer: Add missing context switches (flutter/engine#26847)
Fixes https://github.com/flutter/flutter/issues/84930
2021-06-20 13:45:28 +02:00
Dan Field
e6a9345f19 Remove outdated annotations from fixtures (flutter/engine#26828) 2021-06-19 10:09:02 -07:00
chunhtai
d03313b7b3 Issues/80711 reland (flutter/engine#26813) 2021-06-18 12:34:02 -07:00
Adlai Holler
3aaa10d762 Disable Skia reduceOpsTaskSplitting option (flutter/engine#26568)
This option will be the default in Skia soon. Per discussion in #26067, let’s be explicit about disabling it for the time being, and we can revisit the flag in the future if desirable.
2021-06-17 13:11:40 -07:00
chunhtai
29ea8111ac Revert "Support scrolling in iOS accessibility (#26671)" (flutter/engine#26803)
This reverts commit e933c9ab3e24dfa9e19da5d764edecec45ad19b4.
2021-06-17 10:59:46 -07:00
Jason Simmons
f3254b3a60 Fix a leak of the resource EGL context on Android (flutter/engine#26789) 2021-06-17 08:59:01 -07:00
Tong Mu
6fc70b340b Fix windows keyboard: Extended key, delegate order (flutter/engine#26757)
* Adjust order

* Update code

* Fix Extended

* Add tests

* Better constants

* Format

* Comment

* Link
2021-06-17 04:59:58 -07:00
J-P Nurmi
98097883e7 FlTextInputType enum 2021-06-16 15:16:00 +12:00
J-P Nurmi
765ce54192 Linux: add support for TextInputType.none
TextInputType.none makes it possible to disable the virtual keyboard
for certain TextFields, and lays the foundations for custom in-app
virtual keyboards (flutter/flutter#76072).

Ref: flutter/flutter#83567
2021-06-16 15:16:00 +12:00
LongCatIsLooong
d2b8e10379 [iOS TextInputPlugin] fix autofill assert (flutter/engine#26711) 2021-06-14 15:34:02 -07:00
chunhtai
e933c9ab3e Support scrolling in iOS accessibility (flutter/engine#26671) 2021-06-14 15:29:02 -07:00
Ren You
7d14b58d2d Revert "Replace flutter_runner::Thread with fml::Thread. (#26193)" (flutter/engine#26717) 2021-06-11 15:09:02 -07:00
George Wright
5f83d341b0 Add support for native callbacks to the macOS embedder test harness (flutter/engine#26694) 2021-06-11 09:49:54 -07:00
Emmanuel Garcia
b98627e958 Allow Flutter focus to interop with Android view hierarchies (flutter/engine#26602) 2021-06-10 16:04:01 -07:00
LongCatIsLooong
7070b47e1a [Android TextInput] clean up nested batch edits in closeConnection() (flutter/engine#26628) 2021-06-10 13:29:02 -07:00
George Wright
48c4a4cb16 Revert "Add support for native callbacks to the macOS embedder test harness (#26623)" (flutter/engine#26693)
This reverts commit a877ccf4ee73c8e7cb992a80ff35b08b8c6dad5b.
2021-06-10 13:01:05 -07:00
Jason Simmons
c8f45a13a4 Enable Skia shader trace events by default (flutter/engine#26617) 2021-06-09 17:59:01 -07:00
Jason Simmons
02ce01fd73 Add a tag argument to Skia shader trace events for use by DevTools (flutter/engine#26590) 2021-06-09 17:54:02 -07:00
George Wright
a877ccf4ee Add support for native callbacks to the macOS embedder test harness (flutter/engine#26623) 2021-06-09 17:28:13 -07:00