583 Commits

Author SHA1 Message Date
Dan Field
2d52a3c87c Set SkPath::setIsVolatile based on whether the path survives at least two frames (flutter/engine#22620)
This patch defaults the volatility bit on SkPaths to false, and then flips it to true if the path survives at least two frames.
2020-12-10 13:57:23 -08:00
Alexander Aprelev
240e9648d3 Use List.filled constructor instead of soon-to-be-deprecated List constructor (flutter/engine#22925) 2020-12-08 09:53:05 -08:00
Gary Qian
dc86b7e433 Remove spammy log (flutter/engine#22858) 2020-12-03 19:23:04 -08:00
mikerreed
37b2722631 opt into new Skia APIs (flutter/engine#22845) 2020-12-03 15:28:02 -08:00
Gary Qian
9352ed557e Split AOT Engine Runtime (flutter/engine#22624) 2020-12-02 13:28:01 -08:00
xster
fab16364f9 Add a golden scenario test for fallback font rendering on iOS take 3 (flutter/engine#22736) 2020-12-02 09:28:02 -08:00
Greg Spencer
851544f2d2 Fix PlatformDispatcher.locale to return something meaningful when there are no locales. (flutter/engine#22608)
Returns an "undefined" locale (language code "und") from PlatformDispatcher.locale when no locales are defined.
2020-12-01 09:54:56 -08:00
Andy Weiss
ebdd79df0d [embedder][glfw] Add support for locales to glfw shell (flutter/engine#22657)
The other linux shell (and all the other embedding) have support for
getting the locales from the system and sending them over the
flutter/localization channel. The glfw shell does not have that which is
causing a crash on an assert now that Locale is no longer nullable
in Platform.

This adds a similar approach to what is going on over in the other linux
shell.
2020-11-24 14:23:12 -08:00
Jim Graham
b4a85a26ca Request quickReject results from correct drawing canvas (flutter/engine#22674)
Also Fix MockCanvas clipping so tests will work with new culling
2020-11-24 13:11:15 -08:00
stuartmorgan
79b158833b Add initial settings message to Windows embedding (flutter/engine#22323)
Sends the flutter/settings update message to the engine after starting
it. For now values other than 24-hour time preference are hard-coded,
but dark mode support can be added later.

Fixes https://github.com/flutter/flutter/issues/65590
2020-11-23 15:58:45 -08:00
Jason Simmons
e58b36e55a Add more runtime intrinsic symbols to the export checker script (flutter/engine#22641) 2020-11-20 09:47:59 -08:00
vsmenon
c035c7f167 Remove opt outs for dart:ui (flutter/engine#22603)
* Remove null safety opt outs for dart:ui
2020-11-19 18:54:12 -08:00
Chris Yang
ffad39e000 PlatformViewsController: clear composition_order_ in the beginning of each frame. (flutter/engine#22574) 2020-11-19 09:53:03 -08:00
Wu Zhong
b66f593f07 [iOS] Fix platfotm view called multiple times (flutter/engine#19292) 2020-11-18 11:43:02 -08:00
Emmanuel Garcia
9331f7478a Fix and clean up scenario app for Android (flutter/engine#22540) 2020-11-17 19:27:47 -08:00
Ian Hickson
9902781f55 Also maintain the zone on the ChannelBuffers.push callback (flutter/engine#22454) 2020-11-17 09:48:03 -08:00
Jenn Magder
41e243e13b Add xcframework to ios out (flutter/engine#22506) 2020-11-16 13:58:44 -08:00
LongCatIsLooong
465c84321e Exposing ColorFilter to ImageFilter conversion and Compose() (flutter/engine#20309) 2020-11-12 15:34:02 -08:00
Zachary Anderson
62f0aa5126 Add SDK constraint to a pubspec (flutter/engine#22375)
This appears to be blocking the Dart SDK roll.
2020-11-06 17:11:11 -08:00
Jonah Williams
c0c62cffb3 [null-safety] increase sky engine min sdk (flutter/engine#22322) 2020-11-05 18:24:53 -08:00
Ian Hickson
618c52f1aa Refactor platform message logic (flutter/engine#22181) 2020-11-05 15:19:01 -08:00
freiling
4903a92b2b SKP based shader warmup (flutter/engine#20643) 2020-11-04 23:19:02 -08:00
Daco Harkes
b6c5eff614 WeakPersistentHandle migration (flutter/engine#19843)
and roll Dart to 52783837369de45d3372cb6c6b7cdd63e71cd829.
2020-11-03 13:06:53 +01:00
Chris Yang
4512036697 update golden (flutter/engine#22247) 2020-11-02 08:03:53 -08:00
xster
256561e284 disable AppLifecycleTests (flutter/engine#22236) 2020-10-30 15:44:18 -07:00
Chris Yang
fba0836112 Report image diff status for iOS scenario golden tests (flutter/engine#22230) 2020-10-30 13:05:34 -07:00
Siva
f5ef63edb2 Manual roll of Dart 1a18fff9ad2e...ba80ed989cc (flutter/engine#22216) 2020-10-29 21:28:01 -07:00
stuartmorgan
ff1528235d Add a proc table version of embedder API (flutter/engine#21813) 2020-10-29 13:13:03 -07:00
Kaushik Iska
5fe332317b Reland [ios] Refactor IOSSurface factory and unify surface creation (flutter/engine#22016) 2020-10-29 11:58:03 -07:00
Yuqian Li
5fbc34bfcf Allow parse_and_send to use access tokens (flutter/engine#22019) 2020-10-28 17:57:03 -07:00
godofredoc
58515d6a7f Add metrics scripts in preparation to move the builder to LUCI. (flutter/engine#22086)
* Add metrics scripts in preparation to move the builder to LUCI.

Bug:
  https://github.com/flutter/flutter/issues/67579

* set -ex to fail scripts inmediately.
2020-10-26 12:49:23 -07:00
Chris Bracken
736d19ecbf Fix _lerpInt precision bug (flutter/engine#22089)
Fixes a precision bug was introduced in 5f363dc, which improved the
precision of lerpDouble when the extrema differed significantly in
magnitude.

_lerpInt doesn't have this issue since the extrema are passed as 64-bit
twos-complement values, therefore the difference will always be accurate
so long as it doesn't overflow. This reverts the _lerpInt implementation
to the original a + (b - a) * t, but adds a test to avoid a regression
if anyone is tempted to make it consistent with the others.
2020-10-24 09:49:21 -07:00
Dan Field
fb578c4ede Revert "Add a golden scenario test for fallback font rendering on iOS take 2 (#22033)" (flutter/engine#22095)
This reverts commit 97eed1d8e4523b6049eb7742c4bb9308489b16b2.
2020-10-23 21:10:24 -07:00
Filip Filmar
cb5828068f [fuchsia] Adds a test for timezone change (flutter/engine#21934) 2020-10-23 18:52:02 -07:00
Dan Field
ab0d43bf69 Add debugDisposed to Image (flutter/engine#21547) 2020-10-23 10:27:02 -07:00
xster
97eed1d8e4 Add a golden scenario test for fallback font rendering on iOS take 2 (flutter/engine#22033) 2020-10-22 17:12:01 -07:00
Greg Spencer
06b6f8af89 Reland: Migration to PlatformDispatcher and multi-window (flutter/engine#21932)
This re-lands #20496 and #21780 after fixing the semantics-enabling code that was causing the post-submit web_smoke_test to fail.

Below is the description from the original PR:

This is a PR for converting the dart:ui code in the engine to use a multi-window API. The goal here is to convert from the window singleton to an API that has the concept of multiple windows. Also, I'm matching up the new PlatformDispatcher class to talk directly to the PlatformConfiguration class in the engine. I'm not attempting to actually enable creating multiple windows here, just migrate to an API that has a concept of multiple windows. The multi-window API in this PR currently only ever creates one window.

The design doc for this change is here.

The major changes in this PR:

Move the platfom-specific attributes out of Window, and into the new PlatformDispatcher class that holds all of the platform state, so that the platform code need only update the configuration on this class.
Create FlutterView, FlutterWindow, and SingletonFlutterWindow classes to separate out the concepts of a view (of which there may be multiple in a window), a window (of which there may be multiple on a screen, and they host views), and a window where there is only ever expected to be one (this hosts the entire API of the former Window class, and will eventually be the type of the window singleton).
Next step after this PR lands:

Remove the Window class entirely (it is replaced by SingletonFlutterWindow). Some minor changes in the Framework are needed to switch to using SingletonFlutterWindow directly first.

The Window class still exists in this PR, but will be removed as soon as the framework is converted to point to the SingletonFlutterWindow class instead. They share the same API, just have different names (Window is currently a subclass of SingletonFlutterWindow). The intention is that the Window name will be freed up to use as a widget class name in the framework for managing windows. The singleton called window will remain, and keep the same API it has now.
2020-10-22 14:54:25 -07:00
Clement Skau
559463b492 Enable lazy-async-stacks by-default in all modes (Take 4) (flutter/engine#21802) 2020-10-20 10:31:15 +02:00
godofredoc
f5f38e9000 Collect logs in the background. (flutter/engine#21828)
* Collect logs in the background.

* Use fuchsia_ctl log_file option.

* Delete the correct file.

* Remove commented code.
2020-10-16 21:51:37 -07:00
Chris Bracken
2a726cbb36 Eliminate unnecessary linter opt-outs (flutter/engine#21935)
Eliminates FLUTTER_NOLINT where they can be landed without triggering
lint failures.
2020-10-16 17:24:23 -07:00
Chinmay Garde
db5c793ed5 Enable loading snapshots with sound null safety enabled. (flutter/engine#21820)
Snapshots compiled with sound null-safety enabled require changes to the way in
which isolates are launched. Specifically, the `Dart_IsolateFlags::null_safety`
field needs to be known upfront. The value of this field can only be determined
once the kernel snapshot is available. This poses a problem in the engine
because the engine used to launch the isolate at shell initialization and only
need the kernel mappings later at isolate launch (when transitioning the root
isolate to the `DartIsolate::Phase::Running` phase). This patch delays launch of
the isolate on the UI task runner till a kernel mapping is available. The side
effects of this delay (callers no longer having access to the non-running
isolate handle) have been addressed in this patch. The DartIsolate API has also
been amended to hide the method that could return a non-running isolate to the
caller.  Instead, it has been replaced with a method that requires a valid
isolate configuration that returns a running root isolate. The isolate will be
launched by asking the isolate configuration for its null-safety
characteristics.

A side effect of enabling null-safety is that Dart APIs that work with legacy
types will now terminate the process if used with an isolate that has sound
null-safety enabled. These APIs may no longer be used in the engine. This
primarily affects the Dart Convertors in Tonic that convert certain C++ objects
into the Dart counterparts. All known Dart Converters have been updated to
convert C++ objects to non-nullable Dart types inferred using type traits of the
corresponding C++ object. The few spots in the engine that used the old Dart
APIs directly have been manually updated. To ensure that no usage of the legacy
APIs remain in the engine (as these would cause runtime process terminations),
the legacy APIs were prefixed with the `DART_LEGACY_API` macro and the macro
defined to `[[deprecated]]` in all engine translation units. While the engine
now primarily works with non-nullable Dart types, callers can still use
`Dart_TypeToNonNullableType` to acquire nullable types for use directly or with
Tonic. One use case that is not addressed with the Tonic Dart Convertors is the
creation of non-nullable lists of nullable types. This hasn’t come up so far in
the engine.

A minor related change is reworking tonic to define a single library target.
This allows the various tonic subsystems to depend on one another. Primarily,
this is used to make the Dart convertors use the logging utilities. This now
allows errors to be more descriptive as the presence of error handles is caught
(and logged) earlier.

Fixes https://github.com/flutter/flutter/issues/59879
2020-10-16 14:53:26 -07:00
Chris Bracken
ef868edd36 Eliminate FLUTTER_NOLINT where possible (flutter/engine#21904)
This removes most of the remaining FLUTTER_NOLINT comments and opts
these files back into linter enforcement.

I've filed https://github.com/flutter/flutter/issues/68273 to require
that all FLUTTER_NOLINT comments be followed by a GitHub issue URL
describing the problem to be fixed.
2020-10-16 12:44:49 -07:00
Dan Field
1c9b3e2299 Ocmock dylib (flutter/engine#21786)
- Build OCMock as a dylib for iOS tests
- Set install_name for ios_flutter_test and ocmock dylibs
- Copy and sign dylibs during build process
2020-10-13 09:36:29 -07:00
Yuqian Li
0c645869e3 Revert "Migration to PlatformDispatcher and multi-window #20496" (flutter/engine#21792)
* Revert "Fix documentation build for window changes. (#21780)"

This reverts commit a539d91840d2fbbb4aa07eeed6a92d654db167ab.

* Revert "Migration to PlatformDispatcher and multi-window (#20496)"

This reverts commit a58fec63f196175eedfc5fbaedce9336dab5c508.
2020-10-12 19:26:41 -07:00
Zachary Anderson
ebbd3f7a49 Ignore analysis warning for doc comment (flutter/engine#21773)
This is to unblock a Dart -> engine roll.
2020-10-12 10:08:27 -07:00
LongCatIsLooong
5742a097fd Use buildroot clang for scenario app (flutter/engine#21690) 2020-10-12 08:12:02 -07:00
Greg Spencer
a58fec63f1 Migration to PlatformDispatcher and multi-window (flutter/engine#20496)
This is a PR for converting the dart:ui code in the engine to use a multi-window API. The goal here is to convert from the window singleton to an API that has the concept of multiple windows. Also, I'm matching up the new PlatformDispatcher class to talk directly to the PlatformConfiguration class in the engine. I'm not attempting to actually enable creating multiple windows here, just migrate to an API that has a concept of multiple windows. The multi-window API in this PR currently only ever creates one window.

The design doc for this change is here.

The major changes in this PR:

Move the platfom-specific attributes out of Window, and into the new PlatformDispatcher class that holds all of the platform state, so that the platform code need only update the configuration on this class.
Create FlutterView, FlutterWindow, and SingletonFlutterWindow classes to separate out the concepts of a view (of which there may be multiple in a window), a window (of which there may be multiple on a screen, and they host views), and a window where there is only ever expected to be one (this hosts the entire API of the former Window class, and will eventually be the type of the window singleton).
Next step after this PR lands:

Remove the Window class entirely (it is replaced by SingletonFlutterWindow). Some minor changes in the Framework are needed to switch to using SingletonFlutterWindow directly first.

The Window class still exists in this PR, but will be removed as soon as the framework is converted to point to the SingletonFlutterWindow class instead. They share the same API, just have different names (Window is currently a subclass of SingletonFlutterWindow). The intention is that the Window name will be freed up to use as a widget class name in the framework for managing windows. The singleton called window will remain, and keep the same API it has now.
2020-10-09 16:29:16 -07:00
Kaushik Iska
6104a7e793 [macOS] flutter_desktop_darwin_unittests can be enabled for all runtime modes (flutter/engine#21681) 2020-10-08 10:12:03 -07:00
Pieter van Loon
3ce29048c0 Enabled metal on ios simulator (flutter/engine#17881) 2020-10-07 17:47:03 -07:00
Kaushik Iska
6db42cf2a9 Run desktop darwin tests in debug mode (flutter/engine#21660) 2020-10-07 16:32:01 -07:00