4693 Commits

Author SHA1 Message Date
Callum Moffat
e0108b3d66 Fix inertia cancel event on macOS Ventura (flutter/engine#37067)
* Fix inertia cancel event on macOS Ventura

* Increase allowed time delay on event to 50 ms

* Address feedback
2022-11-13 03:11:27 +00:00
Brandon DeRosier
0a11bb12d7 Add more raster traces (flutter/engine#37510) 2022-11-11 17:05:25 -08:00
Kaushik Iska
ca224262c5 Do not call Dart_NotifyIdle when in Dart_PerformanceMode_Latency (flutter/engine#37499) 2022-11-10 21:28:38 -05:00
Chris Bracken
4a517513ff [macOS] Eliminate macOS 10.14 availability check (flutter/engine#37490)
Now that the macOS embedders have all been updated to use a minimum
macOS SDK of 10.14, eliminate the remaining @available checks dependent
on that version.

Issue: https://github.com/flutter/flutter/issues/114445
2022-11-10 21:11:29 +00:00
Naud Ghebre
318ac378b8 mouse-input-view nit and add mouse-input-test to integration test script (flutter/engine#37441)
* Use fuchsia_component

* [mouse-input] mouse-input-view doc nits and add mouse-input-test to the run_integration_test.sh script

Co-authored-by: Erik <erkln@google.com>
2022-11-10 21:10:06 +00:00
fzyzcjy
3ac82e66e3 Eliminate duplicated code when dealing with pointer data (flutter/engine#36822)
* add methods

* add empty test

* add unit test

* Update licenses_flutter

* add const

* size -> get length

* add boundary checks

* add tests

* remove death test since it says "Death tests use fork(), which is unsafe particularly in a threaded context."
2022-11-10 21:05:20 +00:00
杨加康
9084e780a0 Update FlutterView.java (flutter/engine#37312) 2022-11-10 19:52:29 +00:00
gaaclarke
85a6c86d8f Turned on performance-move-const-arg everywhere. (flutter/engine#37482)
Turned on performance-move-const-arg everywhere.
2022-11-10 09:12:33 -08:00
Jason Simmons
cc36b52002 Fix a race in the EmbedderA11yTest.A11yTreeIsConsistent tests (flutter/engine#37488) 2022-11-10 06:40:11 +00:00
Kaushik Iska
83c4708ccf Include AndroidSurfaceVulkanImpeller behind a flag (flutter/engine#37486)
This is to enable building in google3.

See also: b/258506856
2022-11-10 00:54:20 +00:00
gaaclarke
643e801f2c Implemented threadsafe platform channel replies on windows (flutter/engine#36909)
* Implemented threadsafe platform channel replies on windows

* added unit test

* added docstrings

* implemented glfw

* added comments

* made glfw messenger unable to be copied

* stuart feedback 1

* stuart feedback 2: replaced the shared_ptr

* stuart feedback 3

* stuart feedback: remove error log

* Moved FlutterDesktopMessenger to its own file.

* updated licenses

* stuart feedback
2022-11-09 22:59:00 +00:00
gaaclarke
af036b8857 Turned on performance-unnecessary-value-param everywhere. (flutter/engine#37447)
* Turned on performance-unnecessary-value-param everywhere.

* linux host additions

* ios patch

* reverted bad fix

* revert bad fix

* another ios patch

* removed lint fix printer
2022-11-09 20:55:13 +00:00
Naud Ghebre
ffbedf21c4 [sdk_roll_failure] add facet to allowlist test_manager and other packages. (flutter/engine#37479) 2022-11-09 20:00:52 +00:00
Chris Bracken
57d02219ab [macOS] Remove OpenGL rendering backend (flutter/engine#37448)
In flutter/buildroot#648 (rolled to the engine in flutter/engine#37380)
the minimum macOS SDK was bumped from 10.13 to 10.14. As of macOS 10.14,
Metal is available for all users. This eliminates the macOS OpenGL
rendering support code.

Note that this only removes the GL-specific code in the embedder. A
followup patch will land refactorings to clean up the remaining code,
for example, cases where a parent interface exists only because we had
both a GL and a Metal implementation. This is being does in two patches
in order to keep review clear and simple and to simplify rebases of any
outstanding patches that also touches this code.

Issue: https://github.com/flutter/flutter/issues/114445
2022-11-09 15:39:48 +01:00
gaaclarke
8fed30cc77 Revert "Sdk roll failure - add facet to allowlist test_manager and other packages. (#37395)" (flutter/engine#37449)
This reverts commit 1b143c26e9e748d682326bbf35172dfaa1b24e21.
2022-11-08 14:44:17 -08:00
Naud Ghebre
1b143c26e9 Sdk roll failure - add facet to allowlist test_manager and other packages. (flutter/engine#37395)
* Use fuchsia_component

* [fuchsia-sdk-roll] Hermetic packaging is flipped on by default. Add
test_manager package to the tests facets.

Co-authored-by: Erik <erkln@google.com>
2022-11-08 21:58:02 +00:00
Erik
fd9e9ccd63 [fuchsia] embedding-flutter test (flutter/engine#37052)
* Add embedding-flutter test

* Lint CC files

* GN formatting

* Remove changes to embedder

* Minor refactor

* Remove unused dependencies

* Lint CC files

* Remove comments

* Rename pubspec
2022-11-07 22:04:58 +00:00
Loïc Sharma
9dc746660a [Embedder API] Introduce new semantics update callback (flutter/engine#37129) 2022-11-07 20:07:31 +00:00
ColdPaleLight
922ebdc160 [Android] Speed up the method 'FlutterRenderer.getBitmap' (flutter/engine#37342) 2022-11-07 17:40:09 +00:00
Callum Moffat
47e008e262 Increase Win32 trackpad polling rate, fix repeated swipes issue (flutter/engine#37154)
* Windows trackpad improvements

* Address feedback, remove dynamic polling rate

* Adjust comment
2022-11-04 20:16:10 +00:00
Chris Yang
27186a3bc7 Revert "reland "Migrate darwin common "framework_shared" target to ARC #37049" (#37219)" (flutter/engine#37320)
This reverts commit 426cd5459068568a66a8d25516d06fb2e3c156d1.
2022-11-04 18:32:51 +00:00
Jenn Magder
697f415b0c Use iOS 16 APIs to rotate orientation (flutter/engine#37302) 2022-11-04 17:33:49 +00:00
Tong Mu
4bbd9b6eb1 Merge AccessibilityBridge and AccessibilityBridgeDelegate (flutter/engine#36597)
* Impl

* FlutterPlatformNodeDelegateMac

* Format

* Rename file

* Windows: Compile

* format

* Fix tests

* Fix doc

* More doc

* More comments

* Format

* Update names

* Format

* Compile

* Change to unique

* Revert as shared

* Doc fixes

* Make windows bridge weak

* Fix win compile

* Format

* move weak
2022-11-04 06:55:55 +00:00
Chris Yang
def2fd6d03 Make iOS PlatformView to reuse VisualEffectView when possible. (flutter/engine#37263)
* reuse visual effect view is possible

* fix double retain

* review

* rewview

* remove unnecessary check
2022-11-04 00:01:09 +00:00
ColdPaleLight
1218c3cf7b [Impeller] Support YUV external textures on iOS (flutter/engine#36685)
* Tweak Texture::Paint API

* Support external textures for iOS

* format code

* Tweak code

* format

* Clean code

* [Impeller] Support YUV external textures on iOS

* Fix test

* Clean code

* Fix compile error

* Add todo link

* Clean code
2022-11-03 22:13:01 +00:00
yaakovschectman
d85910aab2 Announce alerts through SemanticsService on Windows (flutter/engine#37173)
* Corresponds to changes by reverted PR https://github.com/flutter/engine/pull/36966.

* Changes on top of original reverted PR that add IServiceProvider and COM_INTERFACE_ENTRY's to the new node classes.

* self_com_ unused
2022-11-03 11:25:51 -04:00
Kaushik Iska
e2f4486b7d [Impeller] Wire-up AndroidSurfaceImpellerVulkan (flutter/engine#37249) 2022-11-03 02:19:58 +00:00
Tong Mu
b775d084e7 [macOS, multiwindow] Compositor gets FlutterView lazily (flutter/engine#36392) 2022-11-03 02:14:37 +00:00
Erik
81605481de [fuchsia] mouse-input test (flutter/engine#37221)
Introduces the `mouse-input` test, a straight port from fuchsia.git
2022-11-02 15:53:22 -04:00
Chris Yang
426cd54590 reland "Migrate darwin common "framework_shared" target to ARC #37049" (flutter/engine#37219) 2022-11-02 16:31:56 +00:00
Nayuta403
472ca878cf Remove unused variable depth_ (flutter/engine#37109) 2022-11-02 02:32:08 +00:00
Kaushik Iska
b85721b43d [Impeller] Implement GPU Surface Vulkan for Impeller (flutter/engine#37215) 2022-11-01 21:48:17 +00:00
Dan Field
21cc000359 Revert "Reland layer state stack" (flutter/engine#37178) 2022-10-31 18:56:18 +00:00
Kaushik Iska
09e5bccbb1 [Impeller] Fix Vulkan compile failures on Android (flutter/engine#37171) 2022-10-31 16:28:05 +00:00
stuartmorgan
6013743aae Forward a11y events from Hybrid Composition overlays (flutter/engine#36924) 2022-10-31 13:54:14 +00:00
Casey Hillers
0aa4b50fe6 Revert "Use iOS 16 APIs to rotate orientation (#36874)" (flutter/engine#37165) 2022-10-31 04:50:06 +00:00
Jim Graham
df85a4f401 Reland layer state stack (flutter/engine#37135) 2022-10-30 18:30:22 +00:00
fzyzcjy
491f827ea8 Fix wrong VSYNC event (flutter/engine#36775) 2022-10-29 22:07:03 +00:00
Bruno Leroux
f6c5601c2f [Lixux] fix pressing Shift+AltLeft throws (flutter/engine#37079) 2022-10-29 03:51:57 +00:00
yaakovschectman
46aafe4a3f Revert "Announce alerts through SemanticsService on Windows (#36966)" (flutter/engine#37120)
This reverts commit 815bcad64a2c5b998229e1a404ae7dce89de1d6f.
2022-10-28 16:57:42 -04:00
Justin McCandless
a919fb99d3 Remove deprecated TextInputClient scribble method code (flutter/engine#36970) 2022-10-28 13:05:21 -07:00
Chris Yang
bdcc27632d Revert "Migrate darwin common "framework_shared" target to ARC (#37049)" (flutter/engine#37121) 2022-10-28 19:28:49 +00:00
Alex Wallen
cd25486f13 [macOS] Make the default background color black. (flutter/engine#36906) 2022-10-28 19:24:08 +00:00
chunhtai
a1c002128b Reland fixes Android text field to use hint text for accessibility (flutter/engine#37093) 2022-10-28 18:07:04 +00:00
Chris Yang
b7b95e9372 Reland "PlatformView partial blur #36015" (flutter/engine#37086) 2022-10-28 16:43:14 +00:00
Martin Kustermann
725ac26098 Remove usages of deprecated old native "<name>" syntax. (flutter/engine#37104)
The old native "<name>" syntax is being replaced with external functions that
have a @pragma("external-name", "<name>").

See https://github.com/dart-lang/sdk/issues/28791
2022-10-28 12:30:44 +02:00
Jim Graham
8ed073eb54 Revert layer state stack (flutter/engine#37090)
* Revert "Fix a clang-tidy warning in display_list_canvas_unittests.cc (#37062)"

This reverts commit 709c6735fc7ed34df36cee23805bdaa7f6969774.

* Revert "Create a mechanism to manage layer state (#36458)"

This reverts commit 501916deb19a8303ca2a3a9bb37692a873d4679e.
2022-10-27 15:29:58 -07:00
Shivesh Ganju
a7e49f6030 [fuchsia][scenic] Fix logical size in flatland platform view. (flutter/engine#37053)
This PR fixes a bug identified after DPR feature was added in flatland
where currently we do not multiple the logical size of the view by the
pixel ratio.

This change is getting tested in input tests like mouse-input-test,
touch-input-test
2022-10-27 17:46:19 -04:00
yaakovschectman
815bcad64a Announce alerts through SemanticsService on Windows (flutter/engine#36966)
* Pickup announcement messages

* Create files necessary for alert node

* Create skeleton of classes used

* Hold my progress

* Announcements get read :)

* Reads announcements

* Unit test alert node

* Linux tests

* PR

* Update shell/platform/windows/accessibility_root_node.h

Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>

* Add comment

* Expect call to wrapper

* Unit test announcement message

* Format

* Constants in fixture

* PR

* Update shell/platform/windows/accessibility_root_node.h

Co-authored-by: Chris Bracken <chris@bracken.jp>

* Update shell/platform/windows/accessibility_alert.h

Co-authored-by: Chris Bracken <chris@bracken.jp>

* Release a11y node if non null

* Reorder methods

* Remove TODO

Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
Co-authored-by: Chris Bracken <chris@bracken.jp>
2022-10-27 17:02:15 -04:00
Kaushik Iska
1941c2ca48 [Impeller] Wire Flutter's own VulkanMemoryAllocator implementation (flutter/engine#37018) 2022-10-27 20:57:54 +00:00