3277 Commits

Author SHA1 Message Date
Matej Knopp
8b818c63b9 Windows: Only terminate display for last instance (flutter/engine#25477) 2021-04-08 14:44:02 -07:00
Felipe Archondo
479283fe6e [fuchsia] stop using SmoothPointerDataDispatcher (flutter/engine#25495) 2021-04-08 17:36:34 -04:00
Wu Zhong
3dc853c388 [iOS] Fixes context memory leaks when using Metal (flutter/engine#25389) 2021-04-07 16:16:11 -07:00
Dan Field
22da76000a Refactor GPU access switch (flutter/engine#24356) 2021-04-06 22:16:06 -07:00
Chris Bracken
45c54c08e2 Add documentation to embedder locale callback (flutter/engine#25437)
The FlutterComputePlatformResolvedLocaleCallback does not pass the
standard user_data baton. This was an unintentional omission in the
original patch.

Add documentation to that effect and link to the bug report:
https://github.com/flutter/flutter/issues/79826
2021-04-06 09:46:31 -07:00
Chris Bracken
2091ba8847 Fix parameter type in FlutterDesktopEngineCreate (flutter/engine#25439)
FlutterDesktopEngineCreate is part of our C API. We were using a C++
reference type instead of a C-compatible pointer type.

This is a breaking change to anyone calling this directly; we believe
this should affect few people because the Windows template only uses the
`FlutterEngine` wrapper in
`shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`.

Fixes https://github.com/flutter/flutter/issues/75465
2021-04-06 09:46:04 -07:00
Ari Weiland
48df08e088 Update FlutterFragment to implement ComponentCallbacks2. (flutter/engine#25428) 2021-04-05 23:04:46 -07:00
Chris Bracken
bc3084eabc Allow embedders to set a custom log tag (flutter/engine#25435)
Embedders making use of the embedder API always ended up with a
hardcoded log tag of "flutter". Some embedders may wish to set a
different log tag. For example, the Fuchsia embedder sets their log tag
to a launch URL followed by "flutter".

If unset, we continue to default to "flutter".

Fixes https://github.com/flutter/flutter/issues/79819
2021-04-05 17:35:54 -07:00
Chris Bracken
f4d1c89df1 Extract Dart logging to the embedders (flutter/engine#25402)
Previously messages logged from Dart code (e.g. via the print function)
were handled directly in the engine by platform-specific code. This
factors out a LogMessage(tag, message) callback that embedders can
implement with platform-specific code.

This also eliminates a dependency on platform-specific code in the core,
and provides more flexibility to embedders than the current fallback to
stdout, which can be a problem on platforms without a traditional stdout
or with restrictions on stdout.

Fixes https://github.com/flutter/flutter/issues/79685
2021-04-05 15:43:21 -07:00
George Wright
b78fd3616d Rename EngineEmbedderApiModifier to EngineModifier (flutter/engine#25362) 2021-04-05 14:46:47 -07:00
Chris Bracken
fda4d07757 Fix texture corruption on Windows (flutter/engine#25349)
Notify Skia that we've updated texture handles within the current
binding such that Skia invalidates any assumptions about previous
context modifications that it had made.

This fixes a texture corruption issue reported in
https://github.com/flutter/flutter/issues/78648
2021-04-05 14:21:31 -07:00
James Clarke
682fa46b6b Fix windows debug builds (flutter/engine#25387) 2021-04-02 18:34:25 -07:00
xster
6f92b73ba2 Revert "Deduplicate plugin registration logic and make error logs visible (#25297)" (flutter/engine#25393) 2021-04-02 12:44:01 -07:00
James Clarke
396e42ae8e Revert https://github.com/flutter/engine/pull/24428 (flutter/engine#25319) 2021-04-02 08:37:31 -07:00
freiling
a8cea746b9 [fuchsia][shader warmup] Avoid recursively iterating over assets directory when loading skp's due to high cost of openat() on pkgfs (flutter/engine#25006)
* [fuchsia][shader warmup] Fixed SkpWarmupTest

This test regressed due to https://github.com/flutter/engine/pull/23488
and this regression was silent due to https://github.com/flutter/flutter/issues/78277

Credit to @gnoliyil for actually putting together the fix.

* [fuchsia][shader warmup] Avoid recursively iterating over assets directory when loading skp's due to high cost of openat() on pkgfs
2021-04-01 23:23:52 -07:00
George Wright
b11dbe813b Call CreateRenderSurface() after setting the Engine for a View on UWP (flutter/engine#25369) 2021-04-01 17:31:12 -07:00
Chris Bracken
9b4a0264d5 Correct typos throughout the engine/embedder (flutter/engine#25346)
Used the the `misspell` tool available at
https://github.com/client9/misspell, then applied hand-corrections. It's
possible we could adopt this as a presubmit, but there are still enough
false positives that it may not be worth the effort.
2021-04-01 11:08:19 -07:00
Alexander Brusher
e5acad709c [fuchsia] Populates fuchsia node is_keyboard_key in accessibility bridge. (flutter/engine#25334)
This change sets the fuchsia node attribute is_keyboard_key in the
accessibility bridge.
2021-04-01 10:21:51 -07:00
Matej Knopp
0fe51ec040 Position accent popup window next to caret (flutter/engine#24867)
* Position accent popup window next to caret

https://github.com/flutter/flutter/issues/77545

* Fix typo
2021-04-01 10:25:27 +02:00
James Clarke
fb1e309778 Windows UWP: Add support for emulated mouse cursor for targets such as XBOX (flutter/engine#24698)
Adds an emulated mouse cursor for devices that don't typically have a traditional mouse. Enables mouse-like user interactions by using gamepad devices.

flutter/flutter#76092
flutter/flutter#14967

Unit tests blocked by: flutter/flutter#70197 label added
2021-03-31 16:25:27 -07:00
Chris Bracken
b59df14302 Clean up small typos in EncodableValue docs (flutter/engine#25340)
Spotted elsewhere in the file while taking a quick pass over 20b6f2a
before merging.
2021-03-31 16:22:23 -07:00
Emmanuel Garcia
c34705f5dd Reland: "Fix memory leak and bug in the RunsOnCreationTaskRun" (flutter/engine#25317) 2021-03-31 15:16:38 -07:00
Yilong Li
eaaa732b80 fuchsia: Allow access to system services in tests. (flutter/engine#25303)
Per https://fuchsia.dev/fuchsia-src/concepts/testing/v1_test_component,
in order to access non-basic system services like Vulkan loader and
sysmem allocator, we need to add "system-services" field to the cmx
metadata file.

Unittests like "shell_test" requires Vulkan to run properly, so we
add Vulkan loader and sysmem services; for Flutter runner tests,
we also need to add fuchsia.ui.scenic.Scenic since the test needs
to create a Scenic session as well.

TEST=shell_tests (SkpWarmupTest.Basic/SkpWarmupTest.Image)
     flutter_runner_tests (EngineTest.SkpWarmUp) on FEMU
2021-03-31 13:43:33 -07:00
George Wright
ad9a889666 Support software rendering fallback on Win32 (flutter/engine#25205) 2021-03-31 12:49:02 -07:00
Chris Bracken
896ed97baf Make EncodableValue::LongValue const (flutter/engine#25335)
This method doesn't mutate the value of the underlying variant.

Fixes https://github.com/flutter/flutter/issues/79472
2021-03-31 12:47:49 -07:00
Harsh Bhikadia
20b6f2a4ea [doc] added dart type mapping in declaration comment (flutter/engine#25329) 2021-03-31 11:50:59 -07:00
Alexander Brusher
3ebaf4f764 [fuchsia][a11y] Adds isKeyboardKey semantics flag. (flutter/engine#25167)
This change introduces a semantics flag to indicate whether a node
represents a virtual keyboard key.
2021-03-30 13:26:56 -07:00
xster
59ff1d3735 Deduplicate plugin registration logic and make error logs visible (flutter/engine#25297) 2021-03-30 11:19:01 -07:00
chunhtai
0b40ddfde0 Reland "Fixes android voice access delete text, redo, and undo action" (flutter/engine#25289)
* Reland "Fixes android voice access delete text, redo, and undo actions. (#25050)"

This reverts commit b1b20aedd68a6cfea50b61e4f4aca74c3909407c.

* fix condition
2021-03-30 10:21:21 -07:00
xster
058ebe70e5 Turn off insecure socket policy configuration in the engine (flutter/engine#25299) 2021-03-30 10:15:10 -07:00
James Clarke
c68996b4ef Fix WinUWP build (flutter/engine#25267) 2021-03-30 08:54:02 -07:00
Chris Bracken
c04c20351e Revert "Fix Windows external texture interference (#25193)" (flutter/engine#25292)
This will cause the previous texture binding used by Skia to be
incorrectly unbound, such that should they need to re-used an existing
binding, we'll end up rendering blank instead.

Instead we should be using

    context->flushAndSubmit();
    context->resetContext(kAll_GrBackendState);

in `EmbedderExternalTextureGL::ResolveTexture` in order to notify Skia
that we've updated handles within the current binding and invalidate any
assumptions about previous modifications it has made to the context.

This reverts commit eff2763bd561ef9ca6d7834f785013d20e525d60.
2021-03-29 16:46:26 -07:00
Pieter van Loon
d6e0e468e3 Keep rendering to screen in iOS inactive state (flutter/engine#25196)
Co-authored-by: Aaron Clarke <gaaclarke>
2021-03-29 16:45:34 -07:00
LongCatIsLooong
bc034502d7 [Android Text Input] restart when framework changes composing region (flutter/engine#25180) 2021-03-29 16:29:01 -07:00
Kaushik Iska
e96ad6e421 [ios] [asan] Copy asan runtime dylib when built with "--asan" (flutter/engine#25284) 2021-03-29 13:59:03 -07:00
Brandon DeRosier
ace4d489a0 When snapshotting a surface, upper-bound the render target size to the device limit. (flutter/engine#25213) 2021-03-29 13:54:02 -07:00
chunhtai
4f3e691b5a Fixes iOS accessibility can focus wrong content due to rapid animations (flutter/engine#25115) 2021-03-29 13:49:04 -07:00
gaaclarke
2cd1c0280c Reland: Started waiting for the notifications locally before asserting side-effects (flutter/engine#25257) 2021-03-29 13:48:58 -07:00
Niklas Schulze
eff2763bd5 Fix Windows external texture interference (flutter/engine#25193) 2021-03-29 13:48:35 -07:00
Karl
fcb807db42 Add clear method in FlutterEngineCache to clear all cached Flutter engines #78420 (flutter/engine#25280) 2021-03-29 09:59:01 -07:00
chunhtai
b1b20aedd6 Revert "Fixes android voice access delete text, redo, and undo actions. (#25050)" (flutter/engine#25286)
This reverts commit dd9fcd6de3b0f3279153fd6549e828389b9124d3.
2021-03-29 09:31:07 -07:00
Ryan Knauer
9a24208940 Add support for right-click in GLFW. (flutter/engine#25110) 2021-03-25 16:23:06 -07:00
shuoch-g
7a83f0694b Let FlutterEngine to turn off automaticallyRegisterPlugins from AndroidManifest.xml. (flutter/engine#24479) 2021-03-25 14:59:02 -07:00
Kaushik Iska
9f88f31f86 Highlight VSync support for embedders (flutter/engine#25247)
Chrome Trace viewer treats events labeled "VSYNC" as special and highlights them (when the "Highlight Vsync" checkbox is enabled). Ideally VSYNC events are generated by the host system at their source. System VSYNC events are indeed present in full-system systraces. Flutter-level traces (as seen in Observatory/Flutter devtools) do not contain the system VSYNC events, so we rely on the engine to generate them (as close to where they would be generated by the system ideally).
2021-03-25 14:58:44 -07:00
gaaclarke
5633133996 Revert "Started waiting for the notifications locally before asserting side effects (#25226)" (flutter/engine#25248)
This reverts commit 88028595191186f24a63a33e17f2a6bdd443824c.
2021-03-25 13:48:35 -07:00
gaaclarke
8802859519 Started waiting for the notifications locally before asserting side effects (flutter/engine#25226) 2021-03-25 11:14:01 -07:00
chunhtai
dd9fcd6de3 Fixes android voice access delete text, redo, and undo actions. (flutter/engine#25050)
* Fixes android voice access delete text, redo, and undo actions

* account for unicode
2021-03-25 10:42:01 -07:00
Michael Goderbauer
d627e66bcf remove ignores (flutter/engine#25131) 2021-03-25 10:19:01 -07:00
apankhurst
6040569c1b Fuchsia: filed crash reports are marked as non-fatal (flutter/engine#24980)
Flutter crash reports on Fuchsia are considered non-fatal because they're not filed in response to the termination of the Flutter application, just a Dart exception that was thrown.
2021-03-23 13:56:51 -07:00
Wu Zhong
0fc1ff7bc1 [iOS] Fixes platform view clipped when FlutterView has non-zero offset (flutter/engine#24893) 2021-03-23 10:01:01 -07:00