2489 Commits

Author SHA1 Message Date
Robert Ancell
4ffa68b795 Show EGL configuration debugging when fail to create surface/context (flutter/engine#19397) 2020-07-02 09:35:00 +12:00
Emmanuel Garcia
af66026f31 Revert unintended change (flutter/engine#19435) 2020-06-30 19:48:01 -07:00
Emmanuel Garcia
59e05c0376 Update scenario UI screenshoots (flutter/engine#19421) 2020-06-30 18:38:06 -07:00
Alexandre Ardhuin
2c2e5f362c Operator equals (flutter/engine#19303)
* use Object for operator==

* apply style guide for operator==
2020-06-30 23:16:31 +02:00
Jason Simmons
8a0511cd25 Basic support for resizing overlay surfaces in hybrid composition (flutter/engine#19402) 2020-06-30 14:08:04 -07:00
liyuqian
02f828632c Use FixtureTest to remove duplicate code (flutter/engine#19219)
Fixes https://github.com/flutter/flutter/issues/59109
2020-06-30 10:55:38 -07:00
David Worsham
6050fa29e3 fuchsia: Fix profile build (flutter/engine#19399) 2020-06-29 17:35:35 -07:00
David Worsham
6fd117d1ae Add tests & --unopt to build_fuchsia_artifacts (flutter/engine#18625)
We can build unoptimized code for easier debugging with this flag.
2020-06-29 16:39:15 -07:00
Emmanuel Garcia
23b8e92c47 Implement onDisplayPlatformView (flutter/engine#19344) 2020-06-26 21:08:02 -07:00
David Worsham
1305c3105c Fix broken mac/fuchsia compiles (flutter/engine#19339) 2020-06-26 14:53:54 -07:00
David Worsham
919f8e6a42 Move fuchsia/scenic integration behind #define (flutter/engine#19003)
Additionally create "_next" permutations for all of the test binaries
on Fuchsia, in order to test both code-paths.

Using the #define follow-up CLs can also create a flutter_runner_next
binary that does not contain any legacy integration code.

BUG: 53847
2020-06-26 14:03:18 -07:00
Emmanuel Garcia
a8aa7dd524 Fix hybrid composition bugs (flutter/engine#19325) 2020-06-26 12:33:02 -07:00
Jason Simmons
d720766b64 Fix ImageReader "unable to acquire a buffer item" warnings in FlutterImageView (flutter/engine#19319) 2020-06-26 11:18:03 -07:00
Gary Qian
fa5dca45d5 Android native locale resolution algorithm (flutter/engine#19266) 2020-06-26 02:48:33 -07:00
Robert Ancell
caa886785c Replace GLFW key codes with native Flutter GTK support (flutter/engine#19196)
Fixes https://github.com/flutter/flutter/issues/57603
2020-06-26 13:56:18 +12:00
Sanjay Chouksey
f1286c6356 Add PlatformView support for Fuchsia (flutter/engine#19132)
* Add PlatformView support for Fuchsia

This change allows embedding views provided by fuchsia components into
a flutter app running on Fuchsia. This conforms to Flutters idiomatic
approach to composite PlatformView alongside other rendered layers.

This uses the `view embedder` infrastructure to allow
`PlatformViewLayer`
to hold fuchsia views. This is meant to eventually supplant the legacy
`SceneHost` and `ChildViewLayer` mechanism to embed fuchsia `ChildView`.

To see how this will get used check out:
https://fuchsia-review.googlesource.com/c/experiences/+/398536/6/examples/hello_experiences/lib/fuchsia_view.dart

Includes unittests for platform_view.cc.

Note: This change has no impact on the legacy code to embed fuchsia
views.

* Rename OnCreateViewMethodCall to OnCreateView

Same for OnDestroyViewMethodCall to OnDestroyView

Co-authored-by: Sanjay Chouksey <sanjayc@google.com>
2020-06-25 16:27:39 -07:00
Robert Ancell
7ec9448e36 Add a flag to enable dart:mirrors (flutter/engine#19112)
Fixes https://github.com/flutter/flutter/issues/59233
2020-06-26 11:17:15 +12:00
Jason Simmons
e00aa84aac Position overlay layer views in PlatformViewsController.onDisplayOverlaySurface (flutter/engine#19295) 2020-06-24 20:48:38 -07:00
Jason Simmons
5b8a1cb82e Initial work toward converting the FlutterView to use a FlutterImageView on demand (flutter/engine#19279) 2020-06-24 16:26:03 -07:00
Dan Field
822de89f54 Make Shell::NotifyLowMemoryWarning trace (flutter/engine#19283) 2020-06-24 15:58:02 -07:00
Chris Yang
27e0962427 Android platform view static thread merging (flutter/engine#19242) 2020-06-24 15:13:02 -07:00
Emmanuel Garcia
910b7ed0df EndFrame should be always called by rasterizer (flutter/engine#19257) 2020-06-24 14:02:48 -07:00
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