2388 Commits

Author SHA1 Message Date
Jason Simmons
51470b497b Use a map to look up dispatchers for Dart FFI function names (flutter/engine#34771) 2022-07-20 16:30:05 +00:00
Zachary Anderson
70b1a1ea42 Adds FragmentProgram.initFromAsset (flutter/engine#34649) 2022-07-20 08:51:13 -07:00
Dan Field
f37da53cfb Drop unnecessary @dart annotations (flutter/engine#34760) 2022-07-19 22:07:04 +00:00
Chinmay Garde
b69a07df25 [Impeller] Stub a Vulkan backend. (flutter/engine#34717) 2022-07-18 23:26:05 +00:00
Dan Field
a41257c563 Reland "dart:ui conversion from native to FfiNative" (#33116)" (flutter/engine#34700)
* Reland "dart:ui conversion from native to FfiNative" (#33116)"

This reverts commit d85395558f3d72c64d9c75e00c6ebdd5bf4583e3.

Resolves merge conflicts and updates modified/newly added
methods, and fixes the incorrect argument counts
on some of the Path methods.
2022-07-18 15:51:07 -07:00
joshualitt
7638ac4a52 [web] Remove dependency on dart:js. (flutter/engine#34211) 2022-07-18 14:05:34 -07:00
Zachary Anderson
39d01bcb5e [impellerc] Sort uniforms by location in SkSL backend (flutter/engine#34684) 2022-07-18 09:46:02 -07:00
Zachary Anderson
c0170658ed [impellerc] SkSL backend fix for the ink_sparkle shader (flutter/engine#34670) 2022-07-14 12:45:18 -07:00
Callum Moffat
0941daa6de Reland "Add new pointer signal for cancelling scroll inertia" (flutter/engine#34537) 2022-07-14 03:14:04 +00:00
Zachary Anderson
3258c4c00b [impellerc] Adds an SkSL backend (flutter/engine#34441) 2022-07-13 15:05:00 -07:00
gaaclarke
d434456964 added trace events for scheduling responses to platform messages (flutter/engine#34230) 2022-07-13 20:32:04 +00:00
Márk Tolmács
c85e3529b1 Fix tests on the Windows platform (flutter/engine#34350)
Addresses https://github.com/flutter/flutter/issues/36301
2022-07-11 11:01:05 -07:00
Dan Field
e162fed336 Rename toGpuImage to toImageSync (flutter/engine#34504) 2022-07-08 19:41:05 +00:00
Tong Mu
25490eb3b5 Revert "Add new pointer signal for cancelling scroll inertia (#34402)" (flutter/engine#34535)
This reverts commit 0a1ee488baaddc9429c75e4a463d73ac5a4e2330.
2022-07-08 04:45:23 -07:00
Callum Moffat
0a1ee488ba Add new pointer signal for cancelling scroll inertia (flutter/engine#34402) 2022-07-08 01:32:05 +00:00
Jonas Uekötter
0c0252e166 Consolidate method signature for PlatformDispatcher.onError (flutter/engine#34428) 2022-07-07 19:44:04 +00:00
joshualitt
9234984d80 [web] Migrate Flutter Web DOM usage to JS static interop - 44. (flutter/engine#34379) 2022-07-07 10:56:41 -07:00
nbayati
f03c0fcb00 A11y high contrast (flutter/engine#34276) 2022-07-06 21:33:28 -07:00
Jackson Gardner
d68d8bddce Roll CanvasKit to 0.35.0 (flutter/engine#34415) 2022-07-01 22:01:05 +00:00
Bruno Leroux
448227384a [Web] Ignore pointer up and pointer cancel for unknown device (flutter/engine#34070) 2022-06-30 06:04:07 +00:00
Jim Graham
8168381dad Reland "render BackdropFilter layers directly to DisplayListBuilder" (flutter/engine#34381) 2022-06-29 22:26:04 +00:00
joshualitt
0c42a323c3 Revert "[web] Migrate Flutter Web DOM usage to JS static interop - 44. (#33380)" (flutter/engine#34375)
This reverts commit 38caaccb069187006063647ed1cecde5277273a0.
2022-06-29 11:51:05 -07:00
Jim Graham
fda51f006d Revert "Reland "render BackdropFilter layers directly to DisplayListBuilder"" (flutter/engine#34367) 2022-06-29 18:42:06 +00:00
joshualitt
38caaccb06 [web] Migrate Flutter Web DOM usage to JS static interop - 44. (flutter/engine#33380) 2022-06-29 10:28:56 -07:00
joshualitt
74b2af89ba [web] Migrate Flutter Web DOM usage to JS static interop - 43. (flutter/engine#33379) 2022-06-28 15:14:24 -07:00
joshualitt
249ae96480 [web] Migrate Flutter Web DOM usage to JS static interop - 40. (flutter/engine#33376) 2022-06-28 10:53:15 -07:00
Jim Graham
8986613de1 Reland "render BackdropFilter layers directly to DisplayListBuilder" (flutter/engine#34337) 2022-06-27 23:44:03 +00:00
Jim Graham
33f417d7d8 Revert "render BackdropFilter layers directly to DisplayListBuilder (#34146)" (flutter/engine#34334)
This reverts commit 7dffa322971112332579563b5df97186010a06c2. Landing on red to fix the build.
2022-06-27 14:46:52 -07:00
Jim Graham
7dffa32297 render BackdropFilter layers directly to DisplayListBuilder (flutter/engine#34146) 2022-06-27 20:44:09 +00:00
joshualitt
df7a821479 [web] Migrate Flutter Web DOM usage to JS static interop - 38. (flutter/engine#33374) 2022-06-27 11:33:45 -07:00
Xilai Zhang
9bbaf6212e [gn] use generated_files to encode entitlement information (flutter/engine#34216)
* generated_files

* for debugging push

* format files

* formate files

* trigger build

* add deps
2022-06-27 09:09:29 -07:00
Dan Field
3724bc6427 Implement toGpuImage, a synchronous, GPU-resident version of (flutter/engine#33736)
* Implement toGpuImage, a synchronous, GPU-resident version of
Picture.toImage.

This method kicks off asynchronous work on the raster task runner.
If it fails to rasterize, it will synchronously throw later when
the user attempts to draw to a canvas.

This supports several use cases:

- Quickly snapping off an expensive-to-rasterize image for reuse
  across multiple frames.
- Applying multi-pass filters to a render target.

This patch amends flutter_tester so that it can produce an image
object, but that image will always be a grey and white four square checkerboard.

Adds support for CanvasKit on Web, which basically already used
this method for its Picture.toImage implementation.

Throws an UnsupportedError for HTML on Web, since any implementation
there would almost certainly be slower than drawPicture.
2022-06-24 16:14:42 -07:00
Tong Mu
ee0e8303fb [Keyboard] Mark generated file names with infix .g. (flutter/engine#34123)
* Impl

* Format
2022-06-23 20:02:33 -07:00
Harry Terkelsen
954ed4e2f9 [canvaskit] Correctly get the directionality of the text boxes (flutter/engine#34264) 2022-06-23 17:54:52 -07:00
Dan Field
f7163f555c Roll SwiftShader, ANGLE, use SwANGLE in test harnesses (flutter/engine#33814)
Roll Swiftshader, ANGLE, and Vulkan deps.

Updates license bot for new locations of licenses and new files
in roll.

Converts unit test harnesses to use SwANGLE, which is the
supported way of using SwiftShader as a software backend for GLES.

Updates goldens due to swiftshader changes.

Fixes up include paths to avoid directly including third_party
code by that name, which is unlikely to work in other build
environments.

Includes upstream patches to ANGLE and SwiftShader to build in our
windows environments, as well as patches to Skia to support
defining the location of VulkanMemoryAllocator and a patch to ANGLE
to support opting into a newer version of VMA.
2022-06-23 16:43:39 -07:00
Dan Field
0586f7b588 Drop --enable-display-list flag, remove associated branched code (flutter/engine#34233) 2022-06-23 00:07:04 +00:00
Harry Terkelsen
a97be6031e Reland [canvaskit] Rework platform views (flutter/engine#34236) 2022-06-22 15:44:25 -07:00
joshualitt
05f07b159f [web] Migrate Flutter Web DOM usage to JS static interop - 37. (flutter/engine#33373) 2022-06-22 12:43:56 -07:00
Dan Field
a33b1e7c6f Make LayerTree::Flatten use DisplayList (flutter/engine#34227) 2022-06-22 19:27:04 +00:00
Zachary Anderson
727c66750e Revert "[canvaskit] Rework embedded view manager (#34081)" (flutter/engine#34232)
This reverts commit 3da9e6d12fc83cdc2d1cfd8af9097c0b1d57df74.
2022-06-22 11:52:00 -07:00
Harry Terkelsen
3da9e6d12f [canvaskit] Rework embedded view manager (flutter/engine#34081) 2022-06-22 10:17:19 -07:00
Tong Mu
869b09b201 [Keyboard] Update generated key codes (flutter/engine#34125)
* Impl

* Remove logical plane

* Revert "Remove logical plane"

This reverts commit a422c425d9c15a0d6576d1dfb5c0faab22038523.
2022-06-21 18:25:26 -07:00
ColdPaleLight
9ea6679bb6 [impeller] Use mapping based 'Texture::SetContents' in image decoder and text render context (flutter/engine#33477) 2022-06-22 00:43:05 +00:00
Chris Bracken
53a9648da9 [lint] Merge impeller .clang-tidy into main config (flutter/engine#33692)
Merges most (but not all) of the impeller .clang-tidy rules into the
main .clang-tidy config. Merges:

readability-identifier-naming.PrivateMemberSuffix (_)
readability-identifier-naming.EnumConstantPrefix (k)
modernize-use-default-member-init.UseAssignment
Does not merge:

readability-identifier-naming.PublicMethodCase (CamelCase)
readability-identifier-naming.PrivateMethodCase (CamelCase)
These last two are not merged due to the non-trivial number of existing
field accessors that use field_name() methods to directly return
field_name_. While these are permitted by the C++ style guide, we may
want to move to a single, simple rule and name everything in CamelCase.
These can be enabled in a followup patch.

No new tests added, since this change is style-only.
2022-06-21 11:52:42 -07:00
joshualitt
73a8bd7c5b [web] Migrate Flutter Web DOM usage to JS static interop - 36. (flutter/engine#33372) 2022-06-21 10:24:40 -07:00
Zachary Anderson
2d1d433927 Fix include path for internal build (flutter/engine#34195) 2022-06-21 23:29:31 +08:00
jensjoha
f316b56ce7 Fix dot package references (flutter/engine#34174)
Don't use .packages -> use .dart_tool/package_config.json
2022-06-21 08:17:18 +02:00
joshualitt
9ce131d415 [web] Migrate Flutter Web DOM usage to JS static interop - 34. (flutter/engine#33370) 2022-06-17 15:13:19 -07:00
JsouLiang
f5189d13e8 Add DlSamplingOptions & DlFilterMode (flutter/engine#34024) 2022-06-17 19:26:04 +00:00
joshualitt
4357cd9462 [web] Migrate Flutter Web DOM usage to JS static interop - 32. (flutter/engine#33362) 2022-06-17 08:53:37 -07:00