2617 Commits

Author SHA1 Message Date
Emmanuel Garcia
b8b9272f77 Move OnDisplayPlatformView JNI call (flutter/engine#19258) 2020-06-24 11:01:30 -07:00
Emmanuel Garcia
f1139e1339 Fix format (flutter/engine#19261) 2020-06-24 09:14:00 -07:00
gaaclarke
15ce2b7af9 Made [SemanticsObject setAccessibilityContainer] a noop. (flutter/engine#19249) 2020-06-23 20:34:48 -07:00
Jason Simmons
8d13f8deb2 Reland "Implement PlatformViewsController.createOverlaySurface" (flutter/engine#19245) 2020-06-23 12:03:02 -07:00
Jason Simmons
c4d549a3e3 Fix the return type of CreateContext (flutter/engine#19223) 2020-06-23 11:53:02 -07:00
Emmanuel Garcia
ec887cba09 Use public accessor and move keep annotation (flutter/engine#19232)
Fixes an issue introduced in https://github.com/flutter/engine/pull/19221 where
accessing a private field is causing a crash in release mode.

Logs: https://console.firebase.google.com/project/flutter-infra/testlab/histories/bh.60bf482010a9daf5/matrices/8495138397166466033
2020-06-23 09:38:58 -07:00
Emmanuel Garcia
4bb086622c Revert "Implement PlatformViewsController.createOverlaySurface (#19226)" (flutter/engine#19228)
This reverts commit 5f53fb4fbf6fefd7732107a14cb16b00beb298ea.
2020-06-22 20:30:32 -07:00
Jason Simmons
5f53fb4fbf Implement PlatformViewsController.createOverlaySurface (flutter/engine#19226) 2020-06-22 19:21:26 -07:00
Jason Simmons
10bcaede62 JNI glue for calling PlatformViewsController.createOverlaySurface (flutter/engine#19221) 2020-06-22 16:28:04 -07:00
Chris Yang
b64c39e512 Reland "Add GetBoundingRectAfterMutations to EmbeddedViewParams to calculate the final bounding rect for platform view #19170" (flutter/engine#19212) 2020-06-22 15:10:02 -07:00
Maurice Parrish
a51b5b22d6 Creates a new RenderMode for FlutterView (flutter/engine#19143) 2020-06-22 14:40:00 -07:00
LongCatIsLooong
6e1a1aa3f2 [iOS] text input methods to only call updateEditState once (flutter/engine#19161) 2020-06-22 09:37:29 -07:00
Brian Osman
4b38b0942d Revert "Add GetBoundingRectAfterMutations to EmbeddedViewParams to calculate the final bounding rect for platform view (#19170)" (flutter/engine#19204)
This reverts commit 3b375b719da4ce1ff0c5c1b820c6b5aafd5dba1e.
2020-06-22 07:30:59 -04:00
Chris Yang
3b375b719d Add GetBoundingRectAfterMutations to EmbeddedViewParams to calculate the final bounding rect for platform view (flutter/engine#19170) 2020-06-21 21:01:53 -07:00
Emmanuel Garcia
202c1af268 Implement external view embedder on Android (flutter/engine#19033)
The external view embedder allows to embed Android views in a Flutter app.
2020-06-20 12:51:55 -07:00
Gary Qian
855fa8fde8 Revert method channel platform resolved locale (flutter/engine#19136) 2020-06-19 17:40:22 -07:00
Michael Goderbauer
0b0c2c68d0 Word substitutions (flutter/engine#19111) 2020-06-18 11:05:24 -07:00
Filip Filmar
df31819baa [shell] Adds a shell test for timezone fetches (flutter/engine#19108)
Adds a test that verifies that the view of the local time is the same in
the Dart isolate and the process that is running the test.

Specifically, this test is useful to verify that the code paths for
timezone retrieval do not break while the underlying FIDL protocols are
being refactored.

However, since the check is generally useful, the test is written as a
general flutter test.

Running this on Fuchsia required adding `fuchsia.intl.ProfileProvider`
to the CMX file that is used for all build Fuchsia packages.

Testing is a bit involved on Fuchsia.  You must build the Fuchsia
package `fluter/shell/common:shell_tests` and publish it to the dev
repository for your Fuchsia device.  It seems that a way to do so is to
modify the script `flutter/tools/fuchsia/build_fuchsia_artifacts.py` and
modify its function `GetTargetsToBuild` like so:

```
def GetTargetsToBuild(product=False):
  targets_to_build = [
    'flutter/shell/platform/fuchsia:fuchsia',
    'flutter/shell/common:shell_tests',
  ]
  return targets_to_build
```

Next, the Fuchsia packages need to be compiled and published.

Once done, the following `fx` invocation will run the test, assuming
that you have your Fuchsia setup:

```
fx shell run \
    fuchsia-pkg://fuchsia.com/shell_tests#meta/shell_tests.cmx \
    -- --gtest_filter=ShellTest.LocaltimesMatch
```
2020-06-18 09:56:18 -07:00
Wu Zhong
bce3b9c2a2 Fixes FlutterEngine internal retain cycle (flutter/engine#18595) 2020-06-17 15:33:49 -07:00
stuartmorgan
45ce08ab01 Log Windows errors to stderr (flutter/engine#19095)
For error messages in the Windows embedding, use stderr rather than
Windows debug logging, so that it will go to the console where, e.g.,
'flutter run' will display it.
2020-06-17 13:35:21 -07:00
cg021
ef2b08d5b6 createOverlaySurface JNI method (flutter/engine#19076)
* createOverlaySurface JNI

* update imports

* remove unused method

* license

* deleted unused file

* remove wrong function call

* removed duplicate createOverlaySurface
2020-06-17 15:21:41 -05:00
LongCatIsLooong
e3f23590e6 [iOS] handle text plugin negative range (flutter/engine#19068) 2020-06-17 11:38:03 -07:00
zljj0818
1fd49da298 Poor video scaling quality #53080 (flutter/engine#18814)
Use bilinear instead of nearest filter to draw surface texture

Related Issues:
https://github.com/flutter/flutter/issues/53080

Tests:
- TextureLayerTest
2020-06-17 11:14:05 -07:00
liyuqian
146f8c7c0b Correct BM_ShellInitializationAndShutdown (flutter/engine#18829) 2020-06-16 23:38:02 -07:00
Siva
5bb06562b0 Manual roll of Dart 021a49e88c...4b9aa2bd7e (flutter/engine#19079)
1. Manual roll of Dart 021a49e88c...4b9aa2bd7e
dart-lang/sdk@4b9aa2bd7e Revert "[VM/Runtime] Cleanup package config initialization code"
dart-lang/sdk@d44457f79d [Core Libraries] Eliminate the fork in the core libraries.
dart-lang/sdk@29e93bcdbd [VM/Runtime] Cleanup package config initialization code
dart-lang/sdk@07e2921287 [ddc] Cleanup false assumption from subtype check
dart-lang/sdk@62893f9b00 Reland "[vm] Check prefix.loadLibrary is called and returns before prefix members are used."
dart-lang/sdk@ed9112e862 Sort declarations in api_test.dart
dart-lang/sdk@a9bb706ce2 Migration: allow the client to specify which files to analyze/migrate.
dart-lang/sdk@651464c909 Implement the rest of the ArgumentList ASTNode logic in the context type visitor in feature_computer.dart, tests added in feature_computer_test.dart
dart-lang/sdk@c7d9fa996b Clean up some unnecessary code in completion manager
dart-lang/sdk@e11eb2cd08 [nnbd_migration] Fix #42263, tool inserting ! on toString/hashCode

2. Adjusted all flutter libraries.yaml files to account for elimination of the
fork in the Dart core librarie

3. Adjusted flutter gn file to account for elimination of the fork in the
Dart core librarie
2020-06-16 19:41:06 -07:00
Emmanuel Garcia
f44a132c1b Revert add createOverlaySurface JNI #19040 (flutter/engine#19075) 2020-06-16 14:06:15 -07:00
Kaushik Iska
ce2baf1ce0 Revert "Remove pipeline in favor of layer tree holder (#18901)" (flutter/engine#19066)
Reverting for b/158816279
2020-06-16 13:15:57 -07:00
Robert Ancell
a5c408ddc7 Add support for headless mode (flutter/engine#19038) 2020-06-17 06:25:48 +12:00
Sanjay Chouksey
5ac4f2f800 Allow access to raw zircon handle (flutter/engine#19052)
As part of migrating Fuchsia from legacy SceneHost/ChildView based code
to Flutter Embedder based PlatformView, we need to expose the raw zircon
handle. Since we are converting a private getter to public getter, this
does not affect any existing code.

Co-authored-by: Sanjay Chouksey <sanjayc@google.com>
2020-06-16 11:23:39 -07:00
Gary Qian
c9fa545cf3 Platform resolved locale and Android localization refactor (flutter/engine#18645) 2020-06-16 04:29:50 -07:00
Michael Goderbauer
e6d2948d07 Rename trace-whitelist to trace-allowlist (flutter/engine#19047) 2020-06-15 20:52:43 -07:00
cg021
1e0b020dde Add createOverlaySurface JNI (flutter/engine#19040) 2020-06-15 19:49:29 -07:00
gaaclarke
aa6657496f started polling the gpu usage (flutter/engine#18752) 2020-06-15 16:48:14 -07:00
gaaclarke
6e0de2ce0d updated tests names (flutter/engine#18966) 2020-06-15 13:25:00 -07:00
Dan Field
465d3f5a4d Fix hit testing logic in fuchsia a11y (flutter/engine#19029) 2020-06-12 18:24:38 -07:00
Michael Goderbauer
8b7389a9c8 Wire up channel for restoration data (flutter/engine#18042) 2020-06-12 16:31:25 -07:00
Dan Field
d5b8e0ed40 Call Shell::NotifyLowMemory when backgrounded/memory pressure occurs on Android (flutter/engine#19026)
* Reland "Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (#18979)" (#19023)"

This reverts commit c59e68bd173963801870aab396bf443d3b64be49.
2020-06-12 15:12:25 -07:00
James Robinson
60a604bfa4 [fuchsia] Add ability to configure separate data and asset dirs (flutter/engine#18858)
This allows Fuchsia components executed by the Flutter runner to
specify a directory containing assets if they wish to store assets
separate from program data. This is specified in the program metadata
field within the component's specification with the new "assets"
attribute. If this attribute is absent, assets are loaded relative to
the path specified in the "data" attribute as before.

This is useful in the short term to use a location in the package where
we can store small files more efficiently. It is also potentially
useful longer term to enforce a stronger separatation between
executable program data and non-executable assets.

This commit adds some basic unit testing for the data parsing to the
flutter_runner_tests suite.
2020-06-12 14:41:27 -07:00
cg021
ea31a75bd4 onEndFrame JNI (flutter/engine#18867)
* onEndFrame JNI

* beginFrame brief change
2020-06-12 16:21:25 -05:00
Emmanuel Garcia
c59e68bd17 Revert "Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (#18979)" (flutter/engine#19023)
This reverts commit 88a7c4cc690fc70c016ea9c35e9247ceee610319.
2020-06-12 12:31:12 -07:00
Kaushik Iska
da146dedd4 Remove log added for local testing (flutter/engine#19012) 2020-06-11 19:22:36 -07:00
Kaushik Iska
a33e6515ed Exit before pushing a trace event when layer tree holder is empty (flutter/engine#19008) 2020-06-11 19:17:20 -07:00
freiling
58f1c6d181 Make SKSL caching test work on Fuchsia on arm64 (flutter/engine#18572)
* Hook up PersistentCache to ShellTestPlatformViewVulkan

* [vulkan][fuchsia] enable vulkan without swiftshader in fuchsia tests on arm64

* [vulkan][fuchsia] Disable second half of ShellTest.CacheSkSLWorks on
vulkan backend

GrContext::precompileShader() is not implemented for vulkan contexts, so
dont run the portion of this test that depends on that behavior on
Vulkan.

Co-authored-by: George Wright <gw280@google.com>
2020-06-11 18:45:23 -07:00
cg021
18b103f955 onBeginFrame JNI (flutter/engine#18866) 2020-06-11 17:15:03 -07:00
Robert Ancell
33a7387343 Don't process key events when the text input is not requested (flutter/engine#18990) 2020-06-12 10:59:35 +12:00
Robert Ancell
b40cfe3f3b Always send key events, even if they're used for text input. (flutter/engine#18991) 2020-06-12 10:59:23 +12:00
Robert Ancell
67fc8be0e6 Show warning if method response errors occur and error not handled. (flutter/engine#18946) 2020-06-12 09:11:36 +12:00
Robert Ancell
7c73569ad4 Fix inverted check in creating resource surface (flutter/engine#18989) 2020-06-12 09:09:06 +12:00
Robert Ancell
47ac7e715b Fix shift-tab not working by adding more GTK->GLFW key mappings. (flutter/engine#18988) 2020-06-12 09:08:41 +12:00
Kaushik Iska
c7d41d7ee1 [dart] Account for compiler api change (flutter/engine#19002) 2020-06-11 10:12:39 -07:00