3051 Commits

Author SHA1 Message Date
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
Emmanuel Garcia
00651b26ea Call destructor and fix check (flutter/engine#18985) 2020-06-10 20:29:04 -07:00
Emmanuel Garcia
edb8164038 Put JNI functions under an interface (flutter/engine#18903) 2020-06-10 18:40:58 -07:00
Robert Ancell
0401a4ae9b Make Linux shell plugin constructor descriptions consistent (flutter/engine#18940) 2020-06-11 12:31:29 +12:00
Robert Ancell
d302d26b65 Implement an EGL resource context for the Linux shell. (flutter/engine#18918)
Fixes https://github.com/flutter/flutter/issues/54855
2020-06-11 12:31:06 +12:00
Emmanuel Garcia
8f08ddd5b3 Reland: Add RAII wrapper for EGLSurface (flutter/engine#18977) 2020-06-10 17:22:20 -07:00
Dan Field
88a7c4cc69 Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (flutter/engine#18979) 2020-06-10 17:18:17 -07:00
Chinmay Garde
02990e7c7e Make sure the native callback is registered before running the test. (flutter/engine#18981)
Otherwise, this is a race condition.

Fixes https://github.com/flutter/flutter/issues/58785
2020-06-10 16:16:14 -07:00
Robert Ancell
e3ed835eff Fix right-to-left selection not working. (flutter/engine#18951)
Fixes https://github.com/flutter/flutter/issues/57636
2020-06-11 11:13:57 +12:00
Emmanuel Garcia
8c8eaf36f0 Revert "Add RAII wrapper for EGLSurface (#18849)" (flutter/engine#18971)
This reverts commit 3ad7a0f8f14f014077f87e28401fee433fbacd1b.
2020-06-10 13:43:36 -07:00
Wu Zhong
18f7ace3da Fixes UI freezes when multiple Flutter VC shared one engine (flutter/engine#18816)
Co-authored-by: Aaron Clarke <aaclarke@google.com>
2020-06-10 10:22:38 -07:00
Chris Yang
c80477385d Make rasterizer screenshot work with gl_context_switch (flutter/engine#18850) 2020-06-10 10:00:43 -07:00
Todd Volkert
816d136b0d Add support for horizontalDoubleArrow and verticalDoubleArrow cursors (flutter/engine#18916) 2020-06-10 07:17:11 -07:00
Dan Field
df7e7da736 fix build (flutter/engine#18950) 2020-06-09 20:47:48 -07:00
Emmanuel Garcia
3ad7a0f8f1 Add RAII wrapper for EGLSurface (flutter/engine#18849) 2020-06-09 19:42:43 -07:00
Robert Ancell
72adbd8d27 Add FlMouseCursorPlugin (flutter/engine#18888)
Fixes https://github.com/flutter/flutter/issues/57595
2020-06-10 14:16:42 +12:00
cg021
06a0d3ac93 Add onDisplayOverlaySurface JNI (flutter/engine#18859) 2020-06-09 17:07:53 -07:00