3503 Commits

Author SHA1 Message Date
Dan Field
1872500bb0 Build the robolectric tests by default for debug armv7 (flutter/engine#27345) 2021-07-13 08:45:22 -07:00
Jason Simmons
6d0433831e Do not use the centralized graphics context options for Fuchsia Vulkan contexts (flutter/engine#27347) 2021-07-13 07:41:02 -07:00
Martin Kustermann
91ff075a74 Make dart wrappable classes use only one native field (flutter/engine#27350)
* Make dart wrappable classes use only one native field

It appears like the second native field is never really used for
anything: It is set, cleared and verified it was cleared, but that is
it.

=> The only native field that is necessary is the `this` pointer of the
   equivalent C++ object.
=> The [DartWrapperInfo] object which was stored as second native field
   is always accessible via the virtual `GetDartWrapperInfo()` method on
   `this`.
2021-07-13 16:39:22 +02:00
Dan Field
bf96d4bbc8 Fix the firebase scenario app run and assert that it does good things (flutter/engine#27295) 2021-07-12 16:56:02 -07:00
Chinmay Garde
170ad0fe1a Don't specify the secondary build tree when importing glfw. (flutter/engine#27344)
This lookup is implicit in GN. Explicitly specifying the glfw in
//build/secondary makes GN think multiple sources generate the same
intermediate object file.

This used to work because no other target also includes glfw. But I
am changing that in an upcoming test harness.
2021-07-12 16:53:05 -07:00
Emmanuel Garcia
4fbe0a6e47 Set Flutter View ID to the view ID instead of of the splash screen (flutter/engine#27262) 2021-07-12 16:41:02 -07:00
Kaushik Iska
12750e2e95 [fuchsia] Cleanup unused method in dart:zircon handle (flutter/engine#27330) 2021-07-12 11:40:42 -07:00
Tong Mu
1bdcf5501f Windows: Fix AltGr key causing CtrlLeft to hang (flutter/engine#27266)
Fixes an issue where pressing AltGr key (on supporting layouts such as Spanish) on Windows causes CtrlLeft to hang pressed for both Flutter and Windows.

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2021-07-11 21:38:22 -07:00
Chase Latta
d7a4148d62 [fuchsia] make dart_runner work with cfv2 (flutter/engine#27226)
Adds support for running the dart runner as a CFv2 component.
The runner has been refactored to launch in both a v1 environemnt
as well as a v2 environment.
2021-07-08 15:19:21 -07:00
Wyte Krongapiradee
1997318121 Avoid unintended clipboard access (flutter/engine#27215) 2021-07-08 12:56:02 -07:00
Greg Spencer
185d8601c5 Hardware Keyboard: iOS (flutter/engine#25961)
Implement new keyboard event system for iOS.
2021-07-07 16:52:04 -07:00
Matej Knopp
3502f849a5 Remove unnecessary variable assignment (flutter/engine#27227) 2021-07-08 01:31:51 +02:00
chunhtai
65f82199cb Hides the scroll bar from UIScrollView (flutter/engine#27214)
* Hides the scroll bar from UIScrollView

* fix test
2021-07-07 11:59:41 -07:00
Maurice Parrish
36d3a6c062 Create flag to enable/disable FlutterView render surface conversion (flutter/engine#27038) 2021-07-07 11:01:02 -07:00
Matej Knopp
b3fb01c80b MacOS (metal): Block raster thread instead of platform thread. (flutter/engine#27191) 2021-07-07 08:56:02 -07:00
Matej Knopp
a0cd9e9785 Do not expect WM_CHAR if control or windows key is pressed (flutter/engine#27064) 2021-07-07 08:46:02 -07:00
David Worsham
32cded5dcd fuchsia: Handle clips on platform views (flutter/engine#27149) 2021-07-06 13:00:05 -07:00
Hunter Freyer
34b8a2b930 Replace flutter_runner::Thread with fml::Thread (flutter/engine#26783)
* Move task_observers.{cc,h} into fml.

This is a preparatory CL. The next CL will cause task_observers.h to
be included from both shell/platform/fuchsia _and_
fml/platform/fuchsia. I imagine it might be gauche for a single file
to be used from both those directories, but it seems way worse for fml
to depend on shell, rather than the other way around.

* Replace flutter_runner::Thread with fml::Thread.

This CL makes the treading logic in Fuchsia's flutter_runner more
consistent with fml expectations, but it still has quirks. Notably:

- Not all async work get posted to a fml::TaskRunner. Some work done
  by Fuchsia libraries gets posted directly to
  async_get_default_dispatcher(). This work doesn't trigger the
  fml::MessageLoop's task observers. As a result, we continue to have
  Fuchsia-specific task observers which fire for all async work,
  regardless of which way it was posted.

- There's awkwardness when trying to run Fuchsia code on a specific
  fml::TaskRunner if that fuchsia code accepts an
  async_dispatcher_t. Since you can no longer get an
  async_dispatcher_t for a given thread, you instead must post a
  closure to the fml::TaskRunner that calls
  async_get_default_dispatcher(), and then calls the fuchsia library
  with the default dispatcher.

- Some tests still use task_runner_adapter.h because async::Loop
  offers more control in unit tests than fml::MessageLoop does.

- If this successfully lands, there will be some cosmetic follow-up
  changes to make, like using ThreadHost instead of an array of
  fml::Threads.

* Increase stack size in flutter runner.

The previous change removes our custom 1MiB limit on the stack of
newly created threads, so these threads revert to the Fuchsia
default. google-internal tests were failing (without any particular
error in the logs) after this change, so here we just set the default
stack size to 1MiB.

Co-authored-by: Hunter Freyer <hjfreyer@google.com>
2021-07-06 10:04:08 -07:00
Callum Moffat
764f2e1137 Support right-clicking on iPadOS (flutter/engine#27019) 2021-07-02 13:52:24 -07:00
chunhtai
594a24a318 Fixes inset padding in android accessibility bridge (flutter/engine#27083) 2021-07-01 14:21:01 -07:00
Lau Ching Jun
f64df660b4 Windows: Allow win32 apps to initialize with different assets path or AOT filename (flutter/engine#27098) 2021-07-01 13:54:34 -07:00
chunhtai
7ab00f0c0b Make scrollable unfocusable when voiceover is running (flutter/engine#27118) 2021-07-01 13:30:09 -07:00
Michael Hoisie
68f9f6c1ab Remove built-in shadows from the @Config annotation (flutter/engine#26823) 2021-07-01 13:16:02 -07:00
Darren Chan
cc3f93e26d Prepare for cfv2 unittests. (flutter/engine#27036) 2021-07-01 13:11:01 -07:00
Dan Field
72d7ac4ba4 Remove unnecessary experiment flag (flutter/engine#27072)
* Remove unnecessary experiment flag

* add explicit --no-sound-null-safety
2021-07-01 12:27:42 -07:00
Angjie Li
bd172e1971 Update include path in FlutterDarwinContextMetal.mm (flutter/engine#27088) 2021-07-01 11:51:01 -07:00
Kaushik Iska
833796b779 FrameTimings captures raster finish time in wall-clock time (flutter/engine#27074) 2021-07-01 11:36:02 -07:00
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