9167 Commits

Author SHA1 Message Date
renyou
bf6347ceef Android change to match the Google internal changes. (flutter/engine#17331)
* Android change to match the google internal changes.

* Fix format.

* Revert format change, add super call.

* Remove comment for API version.
2020-03-25 18:02:46 -07:00
Yegor
b0f7f61073 Preserve zones in Window callbacks (flutter/engine#17298)
preserve Window callback zones
2020-03-25 17:25:06 -07:00
Filip Filmar
36404497fe [runner] Corrects logging of close() status (flutter/engine#16698)
close() returns a nonzero in case of an error.  Old code had it log
only when *no* error happens on close, which is exactly the opposite
of what we want.
2020-03-25 16:31:46 -07:00
Emmanuel Garcia
2913102440 Revert unobstructed platform views (flutter/engine#17326) 2020-03-25 14:36:10 -07:00
Jason Simmons
c2e581b781 Allow drawing raster cache results whose device rect is one pixel larger than the cached image (flutter/engine#17278)
RasterCacheResult::draw constructs the device target rectangle by
calling SkRect::roundOut, which rounds down the left/top coordinates
and rounds up the right/bottom coordinates.  The rounding can produce
a device rect whose width and/or height differs from the cache result
image's width/height by one pixel.
2020-03-25 13:37:27 -07:00
Drew Fisher
abfe606076 fuchsia: remove use of replace_as_executable (second try) (flutter/engine#17313)
On Fuchsia, we can now get executable VMOs from trusted backing
filesystems.  This allows us to remove the use of replace_as_executable
in favor of opening files with `fdio_open_fd_at` with the
`OPEN_RIGHT_EXECUTABLE` flag and getting VMOs by calling
`fdio_get_vmo_exec`.

By moving the responsibility for executability into the filesystem, we
are able to remove `deprecated-ambient-replace-as-executable` from
component manifests for non-JIT runners (the JIT runners still call
replace_as_executable in Dart's allocator).  It wasn't abundantly clear
whether .cmx files for tests were used purely in AOT runtime
environments or also saw JIT usage, so I left those as-is.

For context: this is a second attempt at #16690, which was reverted
because it broke the Dart JIT runner.  The primary difference is that
this time around, we correctly handle absolute vs relative paths,
depending on whether library loading bottoms out in `fdio_open_fd` or
`fdio_open_fd_at`.  I've added additional assertions to help ensure any
new usages use the correct shape of path.

Testing: I verified locally that the flutter product runner works on
Astro, and also successfully ran the Dart JIT example test (which was
the thing blocking the google3 roll with the previous attempt at this
patchset).

Co-authored-by: Drew Fisher <zarvox@google.com>
2020-03-25 13:17:28 -07:00
skia-flutter-autoroll
95ef21485b Roll src/third_party/skia f11e33152460..b6a99b7b9acb (5 commits) (flutter/engine#17323) 2020-03-25 13:11:01 -07:00
Ferhat
8a3fe7d441 Switch ui.window.devicePixelRatio from browser logical to physical. (flutter/engine#17209)
* Switch ui.window.devicePixelRatio to browser dpi
* Add integration test for multi res image loading
* Update cirrus for new integration test
* update canvas golden test root transform
* Update compositing golden test with dpr transform
2020-03-25 12:41:17 -07:00
skia-flutter-autoroll
d16656f414 Roll src/third_party/skia 102411c73f7e..f11e33152460 (3 commits) (flutter/engine#17319) 2020-03-25 11:26:04 -07:00
skia-flutter-autoroll
c0878c4fb4 Roll src/third_party/skia ae58199380dd..102411c73f7e (6 commits) (flutter/engine#17318) 2020-03-25 09:11:03 -07:00
Mouad Debbar
ec142ff495 Add the chromedriver/ directory to gitignore
This folder is generated by the integration test manager.
2020-03-25 09:08:15 -07:00
skia-flutter-autoroll
c13640232d Roll src/third_party/skia 9686528ac8c7..ae58199380dd (1 commits) (flutter/engine#17317) 2020-03-25 07:06:02 -07:00
skia-flutter-autoroll
579e80fab3 Roll fuchsia/sdk/core/linux-amd64 from tFo5u... to jHDPP... (flutter/engine#17316) 2020-03-25 04:31:02 -07:00
skia-flutter-autoroll
64bd0cf22b Roll src/third_party/skia 4261fe753b77..9686528ac8c7 (1 commits) (flutter/engine#17314) 2020-03-25 02:11:02 -07:00
skia-flutter-autoroll
d52cdc28a8 Roll src/third_party/skia 6beb1dd941af..4261fe753b77 (3 commits) (flutter/engine#17309) 2020-03-24 23:56:03 -07:00
Kaushik Iska
60f620b4b2 [metrics] Record the frame target time on the layer tree (flutter/engine#17281)
This lets us measure stats on when the frame was
scheduled to be rendered vs when it finished rasterizing.

Note: This isn't propagated to the FrameTimings struct yet,
that is to be followed.
2020-03-24 22:00:21 -07:00
liyuqian
a7073893f4 Rename GPU to raster thread in PerformanceOverlay (flutter/engine#17148)
Rename GPU to raster thread in PerformanceOverlay and update goldens.
2020-03-24 21:43:16 -07:00
liyuqian
d968e224ca Add service protocol to get SkSLs (flutter/engine#17300)
Fixes https://github.com/flutter/flutter/issues/53114
2020-03-24 21:42:12 -07:00
skia-flutter-autoroll
0b20bbe538 Roll src/third_party/skia 4e79b6730dfc..6beb1dd941af (17 commits) (flutter/engine#17307) 2020-03-24 21:11:02 -07:00
Emmanuel Garcia
11d0020dd6 Flush background canvas before allocating a new surface (flutter/engine#17308) 2020-03-24 20:10:10 -07:00
Gary Qian
700e276dd4 Add empty string check to Locale toString (flutter/engine#17280) 2020-03-24 15:54:40 -07:00
Nurhan Turgut
cdff1342bf [web] use web drivers as a library only. do not fetch/clone web_installers (flutter/engine#17299)
* use web drivers as a library only. do not fetch/clone web_installers

* fixing comments

* addressing reviewer comments

* adding a trim to output. otherwise last fails
2020-03-24 15:37:33 -07:00
skia-flutter-autoroll
8a27563cf5 Roll src/third_party/skia e5ca6ba2c84c..4e79b6730dfc (1 commits) (flutter/engine#17295) 2020-03-24 13:46:03 -07:00
skia-flutter-autoroll
65ab0d4d38 Roll fuchsia/sdk/core/linux-amd64 from y2Piw... to tFo5u... (flutter/engine#17294) 2020-03-24 13:41:03 -07:00
Robert Ancell
71d631160f Add a Linux Shell that uses GTK for rendering. (flutter/engine#16977) 2020-03-24 13:26:02 -07:00
Chinmay Garde
2f3a5f36fd Document flutter::DartServiceIsolate. (flutter/engine#17301) 2020-03-24 12:49:13 -07:00
skia-flutter-autoroll
41da6defee Roll src/third_party/skia 6cb8168c2b9b..e5ca6ba2c84c (3 commits) (flutter/engine#17288) 2020-03-24 01:01:01 -07:00
skia-flutter-autoroll
a43e3da23d Roll src/third_party/skia c97c90072499..6cb8168c2b9b (1 commits) (flutter/engine#17287) 2020-03-23 22:41:02 -07:00
skia-flutter-autoroll
bd0ed70edd Roll src/third_party/skia d1988219065a..c97c90072499 (2 commits) (flutter/engine#17285) 2020-03-23 20:26:01 -07:00
skia-flutter-autoroll
a6ce217ca9 Roll fuchsia/sdk/core/linux-amd64 from h8m0G... to y2Piw... (flutter/engine#17283) 2020-03-23 19:26:02 -07:00
Chinmay Garde
929fb3f825 Remove checks for the always true using_fuchsia_sdk flag in all GN files. (flutter/engine#17261) 2020-03-23 18:31:02 -07:00
skia-flutter-autoroll
7a54c39e9c Roll src/third_party/skia 3c358420df4a..d1988219065a (3 commits) (flutter/engine#17279) 2020-03-23 17:56:02 -07:00
mikejurka
8bb493406e [Fuchsia] Move physical shape layer compositing to Flutter (flutter/engine#17005)
* [fuchsia] Add labels to Scenic nodes.

* [fuchsia] Skip creating Scenic nodes for identity Transforms.

* [fuchsia] Assign elevation to Scenic nodes based on paint order.

* [fuchsia] Create Scenic OpacityNodes at leaf nodes.

* [fuchsia] Composite PhysicalShapeLayers using Skia, except when they need to float above child views.

In that case, they will still need to be pulled
into separate Scenic nodes to be composited on top
of the child view[s].

* [fuchsia] Add tests for Fuchsia-specific layer behavior.

Inspect commands going to Scenic and make sure
they match what is expected.

Also, restructure code to need less member variables,
and other cleanups based on review feedback.
2020-03-23 16:38:07 -07:00
skia-flutter-autoroll
19cda08712 Roll src/third_party/skia 165b68ebb6ad..3c358420df4a (5 commits) (flutter/engine#17277) 2020-03-23 15:26:01 -07:00
Mouad Debbar
0201dfd46b [web] Introduce js interop to enable experimental flags on web (flutter/engine#17099) 2020-03-23 13:22:10 -07:00
skia-flutter-autoroll
a3a8b2d61d Roll src/third_party/skia 4098719375d8..165b68ebb6ad (7 commits) (flutter/engine#17274) 2020-03-23 13:06:02 -07:00
gaaclarke
57a8860d57 Removed a text input trait that causes VoiceOver to be incorrect when tapping a text input. (flutter/engine#17203) 2020-03-23 12:57:15 -07:00
gaaclarke
574c0a75ed added missing mock to MockEngine for iOS unit tests (flutter/engine#17273) 2020-03-23 11:38:42 -07:00
skia-flutter-autoroll
88d480b265 Roll src/third_party/skia 6f60a859c628..4098719375d8 (6 commits) (flutter/engine#17271) 2020-03-23 10:51:06 -07:00
stuartmorgan
bac62dd12e Add DartProject for Windows embedding API (flutter/engine#17210)
This is a step toward aligning the API with macOS, and will make it easier to add the precompiled library later for release mode (since it can just be added to the project directory, without any code changes required for wrapper clients).

At the C API, uses a struct instead of individual arguments, mirroring a change that was already made on the Linux side to make the C API cleaner.

Functional changes in addition to the restructuring:

adds relative path support, as was recently added for GLFW
Uses wstring, rather than string, for paths; the conversion to UTF-8 is actually a potential problem on Windows, so pushing it into the embedding allows us the possibility of removing it later (if we can figure out a good solution at the embedder.h layer) without API breakage.
The old APIs used by the standard runner are left in place for now to avoid breaking the template on an engine roll. Once the framework template has been updated, the old API paths will be removed.
2020-03-23 10:46:10 -07:00
gaaclarke
24b2425483 Added a log message when sharing a FlutterEngine across multiple FlutterViewControllers. (flutter/engine#17186) 2020-03-23 10:44:53 -07:00
skia-flutter-autoroll
ec6fd934aa Roll src/third_party/skia f04f21a5c913..6f60a859c628 (2 commits) (flutter/engine#17268) 2020-03-23 08:26:01 -07:00
skia-flutter-autoroll
22e5975950 Roll fuchsia/sdk/core/linux-amd64 from k4zbT... to h8m0G... (flutter/engine#17264) 2020-03-23 04:16:03 -07:00
skia-flutter-autoroll
8f5943203f Roll src/third_party/skia 538e358b0d82..f04f21a5c913 (2 commits) (flutter/engine#17260) 2020-03-22 23:11:03 -07:00
Chinmay Garde
44f93dddb7 Allow external texture sources when using the Metal backend. (flutter/engine#17154) 2020-03-22 22:36:03 -07:00
Chinmay Garde
09be477a9f Don’t depend on an implicit transaction when no external view embedder is present. (flutter/engine#17258)
All Metal layers have their presentsWithTransaction property set to true.
However, when an external view embedder is not present, there is no mechanism to
ensure that the command buffer commit is within transaction scope. This works in
most cases as there there is usually an implicit (possibly nested) transaction
in place during rendering. However, when there isn’t, rendering will look paused
at an incorrect size. This code now works similar to OpenGL but will be
refactored for ease of understanding and consistency between the various
backends.
2020-03-22 19:16:21 -07:00
Chinmay Garde
da350ee3c9 Documentation cleanups to RuntimeController. (flutter/engine#17256)
Based on feedback gather in https://github.com/flutter/engine/pull/17250 after it landed.
2020-03-22 14:03:22 -07:00
skia-flutter-autoroll
b9308b8b24 Roll fuchsia/sdk/core/linux-amd64 from kGu6P... to k4zbT... (flutter/engine#17255) 2020-03-22 13:31:02 -07:00
skia-flutter-autoroll
a17c27af6c Roll src/third_party/skia cf3594b60362..538e358b0d82 (4 commits) (flutter/engine#17251) 2020-03-22 00:46:03 -07:00
skia-flutter-autoroll
396b102aed Roll src/third_party/skia e41fa2d5e44d..cf3594b60362 (1 commits) (flutter/engine#17249) 2020-03-21 22:46:04 -07:00