2325 Commits

Author SHA1 Message Date
joshualitt
65e48da91c [web] Migrate Flutter Web DOM usage to JS static interop - 24. (flutter/engine#33352) 2022-06-09 10:46:46 -07:00
Jason Simmons
71b57d8468 Update the impellerc GN template to match the behavior of flutter-spirv mode (flutter/engine#33917) 2022-06-09 10:18:04 -07:00
joshualitt
341c6f344d [web] Avoid returning List from DOM apis. (flutter/engine#33880) 2022-06-08 09:49:04 -07:00
Jason Simmons
e58bce6ae8 Improve null typing of ImageFilter init native APIs (flutter/engine#33863) 2022-06-07 07:18:07 -07:00
Jason Simmons
adc0a37ea3 Return an error if a SingleFrameCodec's cached decoded image has been disposed (flutter/engine#33819) 2022-06-06 17:23:04 -07:00
Jackson Gardner
7977f073a6 Don't mutate children on DomNode (flutter/engine#33818)
* https://github.com/flutter/flutter/issues/104972

Don't mutate the children of a DOM node directly.

* nextSibling should be nullable.

* Remove redundant firstChild/lastChild fields.

* Update to parentNode instead of parentElement.
2022-06-06 13:09:46 -07:00
Zachary Anderson
9a73afb34d Use impellerc for engine FragmentProgram unit tests (flutter/engine#33824) 2022-06-05 08:51:13 -07:00
Anthony Oleinik
92c0646dd4 Fix web editable text composing range (flutter/engine#33590)
Flutter web framework now gets valid composing region updates from engine

Co-authored-by: Anthony Oleinik <oleina@google.com>
2022-06-03 16:31:47 -07:00
Levente Morva
f40485e8c2 Detect pointer leaving the window on web (flutter/engine#33057) 2022-06-02 16:41:12 -04:00
Brandon DeRosier
62596a40e7 [Impeller] Decode images at nearest supported size, and then resize of necessary. (flutter/engine#33767) 2022-06-02 11:16:31 -07:00
Bruno Leroux
1a7f78e201 Fix Canvas.drawParagraph should assert that Paragraph.layout has been called (flutter/engine#33776) 2022-06-02 11:13:02 -07:00
joshualitt
15280cb88e [web] Migrate Flutter Web DOM usage to JS static interop - 23. (flutter/engine#33351) 2022-06-02 10:06:49 -07:00
Jason Simmons
5bbc53f8a1 Check for a deleted snapshot delegate in ConvertImageToRaster (flutter/engine#33764) 2022-06-01 17:58:06 -07:00
joshualitt
1dd8b0af78 [web] Migrate Flutter Web DOM usage to JS static interop - 22. (flutter/engine#33350) 2022-06-01 09:24:06 -07:00
Emmanuel Garcia
7ae2fa67bd Move Skia gold client to shared location (flutter/engine#33672) 2022-05-31 16:33:04 -07:00
Tong Mu
78adf103bf Reland No.2 "Hardware Keyboard: Android" (flutter/engine#33686)
* Original code

* Changes

* Fix and test

Better formatted tests
2022-05-31 13:00:39 -07:00
joshualitt
4617fb4bb2 [web] Migrate Flutter Web DOM usage to JS static interop - 21. (flutter/engine#33349) 2022-05-31 11:15:55 -07:00
Viren Khatri
fd3b605c70 Deprecates hashValues and hashList (flutter/engine#30674)
* deprecate hashValues and hashList

* rm unused imports

* missing periods and const lists

* improves hashing of lists

* ignore: avoid_classes_with_only_static_members

* migrate new classes

* refactor: update version of deprecation
2022-05-31 21:19:57 +05:30
Chris Bracken
56fbdd0232 [lint] Enforce k prefix for global constants (flutter/engine#33666)
Enforces that all global constants are prefixed with a 'k' as per the
style guide and updates the codebase into conformance where necessary.

This does not change any public API.

Additional testing provided by the addition of the lint rule.

Ref: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#begin-global-constant-names-with-prefix-k
2022-05-27 18:33:38 -07:00
Chinmay Garde
08355df4dc [Impeller] Upload textures on the IO context where available. (flutter/engine#33648)
In the OpenGL ES backend, if an Impeller operation happens on a thread
with no OpenGL context current, the reactor enqueues it for later
execution. This later execution may happen on the main context. To avoid
this pessimization, queue the upload to the IO thread (which already has
a context) instead.

I was hoping that the reactor would manage task pinning as well but that
change is more invasive and I wanted to add parity with the Metal
backend ASAP. Hence the post-task fix.

Fixes https://github.com/flutter/flutter/issues/104756
2022-05-26 21:51:32 -07:00
joshualitt
b36c0ce61e [web] Migrate Flutter Web DOM usage to JS static interop - 20. (flutter/engine#33348) 2022-05-26 08:58:50 -07:00
joshualitt
30eab9522b [web] Migrate Flutter Web DOM usage to JS static interop - 19. (flutter/engine#33347) 2022-05-25 10:08:24 -07:00
Tong Mu
861b51a5a1 Revert "Reland "Hardware Keyboard: Android" (#33567)" (flutter/engine#33589)
This reverts commit 8cb40595dc05cd094a1cc27ede4ab59d19365070.
2022-05-24 11:02:28 -07:00
Tong Mu
8cb40595dc Reland "Hardware Keyboard: Android" (flutter/engine#33567) 2022-05-24 09:49:23 -07:00
Mouad Debbar
48799c6f98 [web] Send input action even in multiline editing mode (flutter/engine#33428) 2022-05-24 07:53:05 -07:00
Chinmay Garde
a35efe4636 [impeller] OpenGL: Add support for threads and contexts. (flutter/engine#33575) 2022-05-23 20:38:01 -07:00
Tong Mu
76405adb9f Clarify ImageDescriptor.raw pixel order and add version detector (flutter/engine#30343) 2022-05-23 18:38:02 -07:00
nbayati
53318be751 Update accessibleNavigation when the state of accessibility changes (flutter/engine#33576) 2022-05-23 17:58:05 -07:00
Dacian Florea
222b241e26 Update "unregistered_view_type" error message (flutter/engine#33450) 2022-05-23 13:08:05 -07:00
joshualitt
07aee8301f [web] Migrate Flutter Web DOM usage to JS static interop - 17. (flutter/engine#33338) 2022-05-23 11:11:59 -07:00
Tong Mu
a8696c0ef2 Revert "Hardware Keyboard: Android (#33113)" (flutter/engine#33507)
This reverts commit 2555d53f05a058bd20c290ab44eaaf11f02afc73.
2022-05-19 23:28:33 -07:00
Tong Mu
2555d53f05 Hardware Keyboard: Android (flutter/engine#33113)
* Impl

* First test passed

* Runnable and more tests

* Use constants

* static import

* modifier keys

* nonUsKeys

* order test, duplicate/abrupt test

* Synthesize pressing keys

* WIP

* New sync algorithm

* Sync with synonym

* Add all pressing goals and mask constants

* Test all modifiers

* Add tests for capslock

* Gen

* Docs

* mutable

* Extract CharacterCombiner, docs

* doc

* License

* Doc for keydata

* Apply suggestions from code review

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>

* Use &

* Format

* Fix tests

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2022-05-19 15:03:42 -07:00
Jonah Williams
50eaa4b0e9 [dart:ui] dont create Timers in FragmentShader (flutter/engine#33488) 2022-05-19 14:08:05 -07:00
joshualitt
7825001bb1 [web] Migrate Flutter Web DOM usage to JS static interop - 15. (flutter/engine#33247) 2022-05-18 09:48:36 -07:00
xndcn
0cdc6d54b9 [web] Fix typo and add sampler3DRect in ShaderBuilder reserved words (flutter/engine#29997) 2022-05-17 20:17:04 -07:00
joshualitt
0ac27d1d0f [web] Migrate Flutter Web DOM usage to JS static interop - 13. (flutter/engine#33242) 2022-05-17 08:40:12 -07:00
nbayati
476590bc9d Added workaround for ios safari iframe issue (flutter/engine#32415) 2022-05-17 08:29:43 -07:00
Camille Simon
2ad3e5bd6f Add Spell Check Support for Android Engine (flutter/engine#30858) 2022-05-16 09:59:07 -07:00
joshualitt
370ae0d80b [web] Migrate Flutter Web DOM usage to JS static interop - 11. (flutter/engine#33190) 2022-05-16 08:19:28 -07:00
Mouad Debbar
f71794c096 [web] Fix text field actions not triggered on Android (flutter/engine#33298) 2022-05-14 10:12:48 -04:00
Zachary Anderson
00607f96ea Reland: Roll clang and buildroot (flutter/engine#33339) 2022-05-14 06:04:14 -07:00
Jonah Williams
815195114e allow flutter tester to disable font loading from asset bundle (flutter/engine#33323) 2022-05-13 15:04:06 -07:00
joshualitt
ed1b2bfb94 Revert "[web] Migrate Flutter Web DOM usage to JS static interop - 12. (#33241)" (flutter/engine#33321)
This reverts commit 74088eff467c8719f99d310d0b345c3012f5bde8.
2022-05-13 11:56:00 -07:00
joshualitt
74088eff46 [web] Migrate Flutter Web DOM usage to JS static interop - 12. (flutter/engine#33241) 2022-05-13 08:23:55 -07:00
creativecreatorormaybenot
4c22f343b4 Fix typo in SPIR-V transpiler error (flutter/engine#33196) 2022-05-12 13:11:29 -07:00
linxuebin
84669c2841 Fix the exception of zooming browser operation in flutterweb using Canvaskit rendering mode (flutter/engine#33194) 2022-05-12 10:07:50 -04:00
joshualitt
edac8da5ba [web] Migrate Flutter Web DOM usage to JS static interop - 10. (flutter/engine#33181) 2022-05-11 12:31:02 -07:00
Jonah Williams
8aef5df7b1 Add support for loading asset directly from ImmutableBuffer (flutter/engine#32999) 2022-05-10 19:39:04 -07:00
joshualitt
a011438306 [web] Migrate Flutter Web DOM usage to JS static interop - 9. (flutter/engine#33155) 2022-05-10 09:26:26 -07:00
Jason Simmons
fff66b32fb Do not pass nullable parameters of simple types to Tonic-wrapped native functions (flutter/engine#33159) 2022-05-09 11:34:05 -07:00