21915 Commits

Author SHA1 Message Date
yaakovschectman
d7059df4eb Listen to WM_CLOSE message on Windows to allow framework to cancel exit (flutter/engine#40493)
* Intercept WM_CLOSE

* Messy but framework is in place

* Test exit and cancel

* Try to test for windows

* Check for parent HWND

* Move string to PlatformHandler class

* Rename lifecycle manageR

* Change condition for headless

* Move window proc to lambda

* Formatting and licenses

* Encode JSON dart values

* Clean up lifecycle

* PR feedback

* Update shell/platform/windows/platform_handler.h

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

* Update shell/platform/windows/windows_lifecycle_manager.cc

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

* Update shell/platform/windows/windows_lifecycle_manager.cc

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

* Static cast enum to int

* Formatting

* Update shell/platform/windows/testing/engine_modifier.h

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

* Update shell/platform/windows/windows_lifecycle_manager.cc

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

* Update shell/platform/windows/platform_handler.cc

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

* Update unit tests

* PR Feedback

* PR Feedback

* Constexpr

* Formatting

* Wparam

---------

Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
2023-03-24 12:44:42 -04:00
joshualitt
1a76a2115d [web] Migrate canvaskit_api to JS types.(flutter/engine#40538) 2023-03-24 08:53:11 -07:00
Ricardo Amador
0fabddfb3b Adding autosubmit configuration pointer file (flutter/engine#40581)
* Adding autosubmit config pointer file.

* Add wiki page to the file
2023-03-24 08:25:39 -07:00
skia-flutter-autoroll
47691f5dd3 Roll Fuchsia Linux SDK from aIkSAx7637llNDq75... to jdkyVHuAgQFiwEVQj... (flutter/engine#40594)
Roll Fuchsia Linux SDK from aIkSAx7637llNDq75... to jdkyVHuAgQFiwEVQj...
2023-03-24 10:30:17 +00:00
Jonah Williams
1ae57920a9 [impeller] runtime effect doesnt accept opacity (flutter/engine#40579)
[impeller] runtime effect doesnt accept opacity
2023-03-24 02:55:21 +00:00
skia-flutter-autoroll
58ad9ae24e Roll Skia from 32ffab0c9432 to 86228d7534de (7 revisions) (flutter/engine#40586)
Roll Skia from 32ffab0c9432 to 86228d7534de (7 revisions)
2023-03-24 02:11:24 +00:00
LongCatIsLooong
42c2dc35ad Fix default test font on web (flutter/engine#40479)
Fix default test font on web
2023-03-23 22:24:36 +00:00
godofredoc
e11ed85b7a Use target platform name when generating artifacts. (flutter/engine#40519)
Use target platform name when generating artifacts.
2023-03-23 20:58:57 +00:00
skia-flutter-autoroll
cc8e00d2f4 Roll Skia from b46961dcb142 to 32ffab0c9432 (3 revisions) (flutter/engine#40577)
Roll Skia from b46961dcb142 to 32ffab0c9432 (3 revisions)
2023-03-23 20:38:48 +00:00
Jonah Williams
60987522d2 [impeller] use lossy texture compression on iOS (flutter/engine#40520)
[Impeller] use lossy texture compression on iOS for decode images and MSAA resolve textures.
2023-03-23 20:29:40 +00:00
Jonah Williams
fd235ecd0f [Impeller] remove tessellation from texture (flutter/engine#40570)
[Impeller] remove tessellation from texture contents
2023-03-23 20:16:33 +00:00
godofredoc
c7a7766777 Add web engine global tests. (flutter/engine#40550)
Add web engine global tests.
2023-03-23 20:07:30 +00:00
skia-flutter-autoroll
775211ed05 Roll Fuchsia Linux SDK from 7hXfYvZuO55TTq7jT... to aIkSAx7637llNDq75... (flutter/engine#40573)
Roll Fuchsia Linux SDK from 7hXfYvZuO55TTq7jT... to aIkSAx7637llNDq75...
2023-03-23 18:34:53 +00:00
skia-flutter-autoroll
fa7275014c Roll Skia from c42320d53714 to b46961dcb142 (7 revisions) (flutter/engine#40572)
Roll Skia from c42320d53714 to b46961dcb142 (7 revisions)
2023-03-23 18:17:40 +00:00
joshualitt
02d292b44b [web] Add dart:js_interop to _embedder.yaml. (flutter/engine#40545) 2023-03-23 11:10:33 -07:00
skia-flutter-autoroll
5f0caaa2c2 Roll Skia from ce5ff5cc03ce to c42320d53714 (2 revisions) (flutter/engine#40565)
Roll Skia from ce5ff5cc03ce to c42320d53714 (2 revisions)
2023-03-23 16:08:32 +00:00
bungeman
d347698e68 Make SkFontMgr subclasses flexible for sk_sp (flutter/engine#40556)
Skia is changing SkFontMgr and SkFontStyleSet methods to consistently
return sk_sp<SkTypeface> and sk_sp<SkFontStyleSet> instead of
SkTypeface* and SkFontStyleSet*. The pointers returned always needed to
be SkSafeUnref'ed but with sk_sp this ownership is now explicit.

Flutter subclasses both SkFontMgr and SkFontStyleSet and overrides
affected methods. Normally Skia would roll out this change behind a
build flag which would first be set in Flutter (to hold out the change),
Skia then rolled into Flutter, then the build flag removed from Flutter
(along with updating the subclasses). However, this is made quite
difficult and slow because of the need to also be compatible with
Flutter in other repositories at the same time. Instead, this change
updates the subclasses to infer the correct return types in a way that
will work both with and without the Skia change. After the Skia change
is landed and rolled into Flutter the subclasses will be re-simplified
to match the new method signatures.

[0] https://skia-review.googlesource.com/c/skia/+/659856
2023-03-23 09:48:22 -04:00
skia-flutter-autoroll
fffcec854a Roll Skia from fc95eca74604 to 6ce91944f834 (1 revision) (flutter/engine#40560)
Roll Skia from fc95eca74604 to 6ce91944f834 (1 revision)
2023-03-23 10:13:25 +00:00
skia-flutter-autoroll
1630b950f7 Roll Skia from 4f1cae66791c to fc95eca74604 (7 revisions) (flutter/engine#40559)
Roll Skia from 4f1cae66791c to fc95eca74604 (7 revisions)
2023-03-23 08:15:01 +00:00
Jonah Williams
10f47afe4b [impeller] dont apply opacity peephole on image/color filters (flutter/engine#40551)
[impeller] dont apply opacity peephole on image/color filters
2023-03-23 02:46:05 +00:00
Jonah Williams
7b228c8b4b [impeller] always copy bitmaps when given unencoded data (flutter/engine#40543)
[impeller] always copy bitmaps when given unencoded data
2023-03-23 00:54:01 +00:00
godofredoc
401e110a66 Run windows_arm build only on main branch. (flutter/engine#40546)
Run windows_arm build only on main branch.
2023-03-22 23:53:28 +00:00
Zachary Anderson
d9cec91611 Read the FLTEnableImpeller flag from the right bundle (flutter/engine#40535) 2023-03-22 15:42:26 -07:00
Brandon DeRosier
99e492100c [Impeller] Add validation for mipmap generation enforced at binding time (flutter/engine#40515) 2023-03-22 15:23:53 -07:00
skia-flutter-autoroll
86aaebef19 Roll Skia from 49c0f15de01f to 4f1cae66791c (17 revisions) (flutter/engine#40541)
Roll Skia from 49c0f15de01f to 4f1cae66791c (17 revisions)
2023-03-22 21:24:32 +00:00
Brandon DeRosier
ee5c5dd912 [Impeller] Share stencil coverage stack between subpasses to support pass collapsing (flutter/engine#40540)
[Impeller] Share stencil coverage stack between subpasses to support pass collapsing
2023-03-22 21:07:06 +00:00
Brandon DeRosier
b2ce9e0ea9 Remov bringup option from Fuchsia Linux FEMU (flutter/engine#40537)
Remove bringup option from Fuchsia Linux FEMU
2023-03-22 19:44:05 +00:00
Xilai Zhang
3d923229b4 (Reland) "[gn + codesign] codesign metadata for FlutterMacOS.framework.zip" (flutter/engine#40508)
(Reland) "[gn + codesign] codesign metadata for FlutterMacOS.framework.zip"
2023-03-22 18:50:24 +00:00
Kevin Lubick
68a9130ffb Fix includes in image_decoder_impeller (flutter/engine#40533) 2023-03-22 11:16:58 -07:00
Michael Goderbauer
c38bab734a Reland "Deprecate SingletonFlutterWindow and global window singleton (#39302)" (flutter/engine#40511)
Reland "Deprecate SingletonFlutterWindow and global window singleton (#39302)"
2023-03-22 16:54:27 +00:00
skia-flutter-autoroll
394ba92243 Roll Skia from bbb7dd250442 to 49c0f15de01f (2 revisions) (flutter/engine#40531)
Roll Skia from bbb7dd250442 to 49c0f15de01f (2 revisions)
2023-03-22 16:04:00 +00:00
joshualitt
e2fb9376f7 Migrate SVG to JS types (flutter/engine#40401) 2023-03-22 07:50:19 -07:00
Mouad Debbar
eb87e90a55 Reland "[web] Turn on CanvasKit Chromium (#40459)" (flutter/engine#40503)
Reland "[web] Turn on CanvasKit Chromium (#40459)"
2023-03-22 13:41:21 +00:00
skia-flutter-autoroll
a1ab28290f Roll Skia from c5a28115fe5f to d5c4e64ad4e2 (1 revision) (flutter/engine#40525)
Roll Skia from c5a28115fe5f to d5c4e64ad4e2 (1 revision)
2023-03-22 12:08:22 +00:00
skia-flutter-autoroll
6096fce6b6 Roll Fuchsia Linux SDK from XYtiITCMi_qgdIapN... to jTXjkK7l8z5PUflk-... (flutter/engine#40524)
Roll Fuchsia Linux SDK from XYtiITCMi_qgdIapN... to jTXjkK7l8z5PUflk-...
2023-03-22 11:56:11 +00:00
Dan Field
b7559f44c2 Give ComputeSubgroupTest unique name to avoid running tests twice (flutter/engine#40516)
[Impeller] Give ComputeSubgroupTest unique name to avoid running tests twice
2023-03-22 04:28:02 +00:00
Dan Field
447cc1fcda [Impeller] Take subgroup size into account when prefix summing (flutter/engine#40509)
[Impeller] Take subgroup size into account when prefix summing
2023-03-22 03:27:23 +00:00
Jonah Williams
10e9dfa1c4 [impeller] if not creating mipmaps dont set mip count (flutter/engine#40513)
[impeller] if not creating mipmaps dont set mip count
2023-03-22 02:09:11 +00:00
skia-flutter-autoroll
05b489086e Roll Skia from 6cdd4b3f9b8e to 3e6bfdfea566 (3 revisions) (flutter/engine#40510)
Roll Skia from 6cdd4b3f9b8e to 3e6bfdfea566 (3 revisions)
2023-03-22 01:10:00 +00:00
Brandon DeRosier
6830e3c129 Revert "Deprecate SingletonFlutterWindow and global window singleton (#39302)" (flutter/engine#40507)
Revert "Deprecate SingletonFlutterWindow and global window singleton"
2023-03-22 00:48:03 +00:00
Loïc Sharma
3ab31ad593 [Embedder API] Introduce new update semantics callback (flutter/engine#39807)
[Embedder API] Introduce new update semantics callback
2023-03-22 00:07:21 +00:00
Dan Field
03ee2c89c4 Refactor Cubic/Quad tests to make sure all threads reach barrier() (flutter/engine#40506)
[Impeller] Refactor Cubic/Quad tests to make sure all threads reach barrier()
2023-03-21 23:52:22 +00:00
skia-flutter-autoroll
2602d6dd07 Roll Skia from dfea2d94a990 to 6cdd4b3f9b8e (5 revisions) (flutter/engine#40505)
Roll Skia from dfea2d94a990 to 6cdd4b3f9b8e (5 revisions)
2023-03-21 23:13:50 +00:00
godofredoc
ff31cbc995 Remove unopt build from linux_android debug. (flutter/engine#40498)
Remove unopt build from linux_android debug.
2023-03-21 23:02:04 +00:00
Dan Field
885013ccdd Avoid truncation to zero when resizing threadgroups (flutter/engine#40502)
[Impeller] Avoid truncation to zero when resizing threadgroups
2023-03-21 22:11:04 +00:00
Michael Goderbauer
c3f475f8c5 Deprecate SingletonFlutterWindow and global window singleton (flutter/engine#39302)
Deprecate SingletonFlutterWindow and global window singleton
2023-03-21 22:11:02 +00:00
Mouad Debbar
a3aea64db2 [web] Put image codecs back into CanvasKit Chromium (flutter/engine#40501)
[web] Put image codecs back into CanvasKit Chromium
2023-03-21 21:08:22 +00:00
Jonah Williams
90a522d378 [Impeller] Allocate images into host buffer, blit to device private texture. (flutter/engine#40410)
[Impeller] Allocate images into host buffer, blit to device private texture.
2023-03-21 20:56:00 +00:00
Valentin Hăloiu
3fba8a33be Fix duplicate calls to system font loading on Linux (flutter/engine#40469) 2023-03-21 13:48:49 -07:00
skia-flutter-autoroll
104a906a19 Roll Skia from 9eae049da296 to dfea2d94a990 (5 revisions) (flutter/engine#40500)
Roll Skia from 9eae049da296 to dfea2d94a990 (5 revisions)
2023-03-21 20:46:55 +00:00