20087 Commits

Author SHA1 Message Date
skia-flutter-autoroll
d4fcfe68ca
Roll Skia from f58db3c94da3 to 387fd62a1280 (3 revisions) (#21801) 2020-10-13 00:22:01 -07:00
skia-flutter-autoroll
6cdb2f69a4
Roll Fuchsia Linux SDK from h-DeV4tgE... to gdo4mZ5oI... (#21797) 2020-10-12 22:27:01 -07:00
skia-flutter-autoroll
e4664bad9f
Roll Fuchsia Mac SDK from FFpTJfmj1... to 8Cb2zG9e3... (#21795) 2020-10-12 21:52:02 -07:00
skia-flutter-autoroll
a75f9e252c
Roll Skia from ab6e62c131e9 to f58db3c94da3 (6 revisions) (#21794) 2020-10-12 21:42:02 -07:00
Damian Wrobel
6634406889
Support Wayland only (without X11 support in gdk) (#21218)
Adds a support for compiling flutter engine when
gdk does not have X11 backend. In such a configuration
the generated gdkconfig.h header file looks like the following:

 /* gdkconfig.h
  *
  * This is a generated file.  Please modify `configure.ac'
  */

 #ifndef __GDKCONFIG_H__
 #define __GDKCONFIG_H__

 #if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
 #error "Only <gdk/gdk.h> can be included directly."
 #endif

 #include <glib.h>

 G_BEGIN_DECLS

 #define GDK_WINDOWING_WAYLAND

 G_END_DECLS

 #endif  /* __GDKCONFIG_H__ */

Additionally headers like <gdk/gdkx.h> are not available at all.

Above configuration can be found on the most of the embedded systems.

This patch enables compilation of X11 specific code only when gdk
defines GDK_WINDOWING_X11.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-10-13 15:54:44 +13:00
J-P Nurmi
d9a24814c5
Add workaround for missing fl_method_xxx_response_get_type() symbols (#21405) 2020-10-12 19:32:02 -07:00
Yuqian Li
c2938d06b1
Revert "Migration to PlatformDispatcher and multi-window #20496" (#21792)
* Revert "Fix documentation build for window changes. (#21780)"

This reverts commit 931a04683d6eb49fc92059b2384ac5b1618d5422.

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

This reverts commit 85b0031f73544e448354047dc6a236c0b0808252.
2020-10-12 19:26:41 -07:00
Chris Bracken
05d97932b3
Extract a TextRange class for selection (#21722)
Extracts a TextRange class with a base and extent, and start(), end(),
collapsed(), and length() getters.

The possibility of reversed base and extent in selections and composing
ranges makes reasoning about them complex and increases the chances of
errors in the code. This change migrates most uses of base and extent in
the text model to start()/end() or position(). The position() method is
intended purely as an aid to readability to indicate that a collapsed
selection is expected at the call site; it also enforces a debug-time
assertion that this is the case.
2020-10-12 17:50:11 -07:00
Jonah Williams
d912d502d3
[null-safety] fix build rule to produce sound dill (#21784)
The space in the argument name was causing this argument to be dropped and the sound and unsound dills to be identical.
2020-10-12 16:35:09 -07:00
nturgut
38d8ebaa46
E2e screenshot tests2 (#21383)
* carrying code

* more changes for carrying the code

* rebase changes onto ios-screenshot tests

* adding screenshot capability to text_editing e2e test

* address some comments

* change enable flag for isUnitTestsScreenshotsAvailable

* addressing the reviewer comments

* change the dependency for path

* add to licencense file

* changing goldens commit no. the new commit has the screenshot goldens

* update readme file

* firefox tests needs LUCI changes

* change to release mode since screenshots were taken in release mode

* change window size

* some argument changes

* small comment change

* test the chrome linux tests again

* use roboto font instead of default font

* addressing reviewer comments

* change commit for goldens
2020-10-12 16:25:57 -07:00
Greg Spencer
931a04683d
Fix documentation build for window changes. (#21780)
* Fix documentation build for window changes.

* Add missing interfaces for web_ui
2020-10-12 16:04:05 -07:00
skia-flutter-autoroll
e18cd96878
Roll Skia from 840e8ea7403e to ab6e62c131e9 (7 revisions) (#21783) 2020-10-12 16:02:02 -07:00
skia-flutter-autoroll
10ed563183
Roll Skia from 9213e610ed92 to 840e8ea7403e (11 revisions) (#21779) 2020-10-12 14:12:02 -07:00
Yuqian Li
190fd8eb51
Reland "Create root isolate asynchronously (#20142)" (#21747)
This reverts commit 5585ed99039efb3705025e1c58170cdb86af111b.

Additionally, the following _flutter.runInView deadlock is fixed.

Previously, a deadlock would occur when service protocol
_flutter.runInView is used to restart the engine wihtout tearing down
the shell: the shared mutex of the service protocol will be locked
during the restart as it's in the middle of handling a service protocol
message; if ServiceProtocol::AddHandler is also called during the
restart, the deadlock happens as AddHandler also requires such lock.

test/integration.shard/background_isolate_test.dart would fail
without this fix.
2020-10-12 12:02:30 -07:00
Zachary Anderson
106842989b
Roll Dart SDK from 06536d68ca0f to e256855d07ba (6 revisions) (#21775) 2020-10-12 11:32:21 -07:00
skia-flutter-autoroll
978cfd6d56
Roll Skia from ceb6214a556a to 9213e610ed92 (8 revisions) (#21774) 2020-10-12 11:32:02 -07:00
Zachary Anderson
fd1ba9ccf0
Ignore analysis warning for doc comment (#21773)
This is to unblock a Dart -> engine roll.
2020-10-12 10:08:27 -07:00
skia-flutter-autoroll
cff4ee74ac
Roll Skia from d71dc2d25b8b to ceb6214a556a (5 revisions) (#21772) 2020-10-12 09:32:02 -07:00
skia-flutter-autoroll
766d682824
Roll Fuchsia Linux SDK from Nw5-0_sVF... to h-DeV4tgE... (#21771) 2020-10-12 09:07:01 -07:00
LongCatIsLooong
f230fded75
Use buildroot clang for scenario app (#21690) 2020-10-12 08:12:02 -07:00
skia-flutter-autoroll
bd03014c2e
Roll Fuchsia Mac SDK from 82ankF-Ht... to FFpTJfmj1... (#21768) 2020-10-12 04:27:01 -07:00
skia-flutter-autoroll
910ce92e63
Roll Fuchsia Mac SDK from _0R2HD4c8... to 82ankF-Ht... (#21762) 2020-10-11 15:22:02 -07:00
skia-flutter-autoroll
d4b8d676fc
Roll Fuchsia Linux SDK from YRTc9YoiB... to Nw5-0_sVF... (#21760) 2020-10-11 11:07:01 -07:00
skia-flutter-autoroll
a3f3f989a7
Roll Fuchsia Mac SDK from gzhbqRUap... to _0R2HD4c8... (#21759) 2020-10-11 01:47:02 -07:00
skia-flutter-autoroll
7fc1a0386b
Roll Skia from aa64c352b349 to d71dc2d25b8b (1 revision) (#21758) 2020-10-11 00:47:02 -07:00
skia-flutter-autoroll
d97e74c7c2
Roll Fuchsia Linux SDK from EBX49sN_X... to YRTc9YoiB... (#21753) 2020-10-10 18:57:01 -07:00
skia-flutter-autoroll
7f0e17b676
Roll Skia from 13fc260c7080 to aa64c352b349 (1 revision) (#21752) 2020-10-10 18:52:01 -07:00
skia-flutter-autoroll
ca250c972f
Roll Fuchsia Mac SDK from lqn8xmlDn... to gzhbqRUap... (#21749) 2020-10-10 01:47:01 -07:00
skia-flutter-autoroll
3bd695b18a
Roll Skia from 61003cde7688 to 13fc260c7080 (1 revision) (#21746) 2020-10-09 20:02:02 -07:00
gaaclarke
a2046aeb6c
Revert "fix On iOS, dialog titles are announced twice (#19826)" (#21714) 2020-10-09 19:57:04 -07:00
skia-flutter-autoroll
8be6cc0390
Roll Skia from 88cda17bbeb8 to 61003cde7688 (4 revisions) (#21744) 2020-10-09 17:32:01 -07:00
Alexander Markov
0d151816c3
Remove uses of Dart VM bytecode mode from Flutter engine (#21741) 2020-10-09 16:34:08 -07:00
Greg Spencer
85b0031f73
Migration to PlatformDispatcher and multi-window (#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
George Wright
11d756a62e
Add dart_entrypoint_argc/argv to the FlutterProjectArgs (#21737) 2020-10-09 16:17:02 -07:00
Ferhat
ec1d111171
[web] Add ShaderBuilder, change drawVertices to use builder. (#21716)
* Move shader.dart into shaders directory
* Add Shader builder basic structure and decls
* rewrite drawVertices with ShaderBuilder
* Fix in parameters in fragment shader to use varying for webgl1
2020-10-09 15:52:29 -07:00
skia-flutter-autoroll
5aed0ee7f6
Roll Skia from 269e43fd9830 to 88cda17bbeb8 (3 revisions) (#21742) 2020-10-09 15:32:01 -07:00
Kaushik Iska
5c1960284a
Fix filesystem access prior to macOS 10.15 (#21740) 2020-10-09 13:42:01 -07:00
skia-flutter-autoroll
15ac210024
Roll Skia from 453f67ff0ade to 269e43fd9830 (11 revisions) (#21739) 2020-10-09 13:32:02 -07:00
skia-flutter-autoroll
0989304314
Roll Fuchsia Linux SDK from wrXNShr_8... to EBX49sN_X... (#21729) 2020-10-09 13:17:01 -07:00
skia-flutter-autoroll
a1a89797b9
Roll Dart SDK from 712e35f7fd0b to 06536d68ca0f (2 revisions) (#21736) 2020-10-09 12:47:02 -07:00
skia-flutter-autoroll
f69bb04477
Roll Fuchsia Mac SDK from LyP59nILn... to lqn8xmlDn... (#21733) 2020-10-09 10:52:01 -07:00
skia-flutter-autoroll
14cb52e8d7
Roll Skia from e17b0501963a to 453f67ff0ade (28 revisions) (#21732)
https://skia.googlesource.com/skia.git/+log/e17b0501963a..453f67ff0ade

2020-10-09 ethannicholas@google.com SkSL enum changes
2020-10-09 egdaniel@google.com Suppress vulkan validation layers bug.
2020-10-09 ethannicholas@google.com more SkSL IRNode refactoring
2020-10-09 egdaniel@google.com Make sure the normal GrProgramDesc handles input attachment key.
2020-10-09 michaelludwig@google.com SkDevice::drawSpecial accepts arbitrary matrix v2
2020-10-09 brianosman@google.com Reorganize how SkSL includes are parsed and stored
2020-10-09 johnstiles@google.com Reland "Add sk_Caps.builtinDeterminantSupport and use it in cross()."
2020-10-09 adlai@google.com Reland "Merge GrContext::init into GrDirectContext ..."
2020-10-09 johnstiles@google.com Add test for sk_Caps.mustGuardDivisionEvenAfterExplicitZeroCheck.
2020-10-09 johnstiles@google.com Add test for sk_Caps.inBlendModesFailRandomlyForAllZeroVec.
2020-10-09 johnstiles@google.com Reland "Put top level FPs into their own functions"
2020-10-09 ethannicholas@google.com refactored more SkSL IRNodes
2020-10-09 egdaniel@google.com Reland "Rename GrStencilAttachment class to generic GrAttachment"
2020-10-09 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from af82ff2606e9 to 4a368eae5a6f (468 revisions)
2020-10-09 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 5f4e70b81046 to 952149303d06 (1 revision)
2020-10-09 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from 6b4a4a85dfd7 to 793a07e36636 (12 revisions)
2020-10-09 jvanverth@google.com Revert "Add sk_Caps.builtinDeterminantSupport and use it in cross()."
2020-10-09 brianosman@google.com Remove custom iterators from SkSL::Program
2020-10-08 jvanverth@google.com Revert "Rename GrStencilAttachment class to generic GrAttachment"
2020-10-08 johnstiles@google.com Add sk_Caps.builtinDeterminantSupport and use it in cross().
2020-10-08 michaelludwig@google.com Add SkImageFilters::Shader in place of Paint factory
2020-10-08 michaelludwig@google.com Clip perspective bounds by device clip in SkPDFDevice
2020-10-08 jvanverth@google.com Revert "Merge GrContext::init into GrDirectContext ..."
2020-10-08 jvanverth@google.com Add push constant support to GrCaps.
2020-10-08 adlai@google.com Merge GrContext::init into GrDirectContext ...
2020-10-08 bsalomon@google.com Expose ManagedBackendTexture from BackendTextureImageFactory.
2020-10-08 kjlubick@google.com [canvaskit] Attempt to turn off rtti
2020-10-08 johnstiles@google.com Use SkSTArray to track CFG exits instead of std<set>.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC jvanverth@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md
2020-10-09 10:30:00 -07:00
skia-flutter-autoroll
808b29a651
Roll Dart SDK from 1e7250f91944 to 712e35f7fd0b (1 revision) (#21725)
https://dart.googlesource.com/sdk.git/+log/1e7250f91944..712e35f7fd0b

2020-10-09 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.11.0-205.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md
2020-10-09 08:19:39 -07:00
skia-flutter-autoroll
01b942025e
Roll Dart SDK from fe566e6d08b1 to 1e7250f91944 (1 revision) (#21723) 2020-10-09 00:37:02 -07:00
skia-flutter-autoroll
36769af310
Roll Fuchsia Mac SDK from zhRBO0hCr... to LyP59nILn... (#21720) 2020-10-08 21:47:03 -07:00
skia-flutter-autoroll
349889833c
Roll Dart SDK from 4ba58cad60e4 to fe566e6d08b1 (1 revision) (#21718) 2020-10-08 20:07:02 -07:00
Chris Bracken
48d837b7ee
Perform selection check in DeleteSelected (#21711)
At every call site for TextInputModel::DeleteSelected, we perform a
check for a collapsed selection. This moves that check into the method
itself.
2020-10-08 16:02:06 -07:00
skia-flutter-autoroll
346e7e807b
Roll Fuchsia Linux SDK from ZJHmp3INU... to wrXNShr_8... (#21709) 2020-10-08 15:42:02 -07:00
skia-flutter-autoroll
fb926b96dc
Roll Dart SDK from 44fa3b9e566c to 4ba58cad60e4 (1 revision) (#21708) 2020-10-08 15:37:03 -07:00
Dan Field
48687ca3ca
Forbid android.util.Log (#21696) 2020-10-08 14:52:05 -07:00