955 Commits

Author SHA1 Message Date
Pierre-Louis
bbcfc5c06f Make it possible to obtain FontWeight integer value (flutter/engine#35183) 2022-08-05 17:34:04 +00:00
Jonah Williams
4a3850f484 fix analysis error (flutter/engine#35187) 2022-08-05 09:55:14 -07:00
Jonah Williams
43c54b4b98 Update setAssetDirectory service extension to fail if provided path is invalid (flutter/engine#35178) 2022-08-05 15:47:04 +00:00
Zachary Anderson
da2eeac15b [impellerc] Namespace user functions (flutter/engine#35155) 2022-08-04 12:10:38 -07:00
Phil Quitslund
e1a6ff373d [testing/scenario_app] fix no-op interpolated toStrings() (flutter/engine#35165) 2022-08-04 18:37:07 +00:00
Michael Goderbauer
045b068cc1 remove outdated ignores (flutter/engine#35143) 2022-08-04 18:29:03 +00:00
Michael Goderbauer
f6aab09ca3 Remove unnecessary exceptions from analysis_options.yaml (flutter/engine#35054) 2022-08-02 16:20:03 +00:00
Michael Goderbauer
cc50c5249c Sync analysis_options.yaml with flutter/flutter (flutter/engine#34986) 2022-07-29 16:41:04 -07:00
Michael Goderbauer
7224607a1c Make analyzer hints and warnings fatal (flutter/engine#35013) 2022-07-29 22:09:04 +00:00
Jim Graham
d2476d54a8 upload the output of the DisplayList builder benchmarks (flutter/engine#35010) 2022-07-29 15:02:36 -07:00
ColdPaleLight
cbda16b4b4 Create benchmarks for DisplayListBuilder (flutter/engine#34910) 2022-07-29 18:56:02 +00:00
ColdPaleLight
b204f9ddbe Make ui.Canvas.getDestinationClipBounds works with matrix (flutter/engine#34835) 2022-07-28 03:23:04 +00:00
Zachary Anderson
93e8c0a8bd Third part of soft transition to async FragmentProgram.fromAsset (flutter/engine#34932) 2022-07-27 08:07:14 -07:00
Zachary Anderson
e1c4902abd Starts a transition to an async FragmentProgram.fromAsset (flutter/engine#34922) 2022-07-26 15:57:40 -07:00
Yang Chao
29320bfd1e Fix an issue that deleting an emoji may crash the app (flutter/engine#34508) 2022-07-25 16:59:03 +00:00
Zachary Anderson
8cd062be3c Remove FragmentProgram.compile() (flutter/engine#34855) 2022-07-22 18:30:54 -07:00
Jonah Williams
971d9b9410 let uniform float count / sampler count be reset (flutter/engine#34833) 2022-07-22 18:40:04 +00:00
Zachary Anderson
47ccd94f87 Null check uniforms in runtime stage (flutter/engine#34814) 2022-07-21 09:12:57 -07:00
Zachary Anderson
69f22945ed Check for shader data validity and add tests (flutter/engine#34793) 2022-07-20 18:45:11 -07:00
Dan Field
038db36b53 NNBD migration for //testing (flutter/engine#34766) 2022-07-20 21:12:04 +00:00
Jason Simmons
2232f767bd Use uncompressed image size as the basis for the fuzzy pixel matching threshold in the Skia Gold scenario tests (flutter/engine#34431) 2022-07-20 20:03:04 +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
Dwayne Slater
e4ca9ee66c Fix sample video frame rate and reenable ExternalTextureTests (flutter/engine#34479) 2022-07-18 23:54:05 +00:00
Zachary Anderson
39d01bcb5e [impellerc] Sort uniforms by location in SkSL backend (flutter/engine#34684) 2022-07-18 09:46:02 -07:00
Dan Field
b0a6764623 Skip test that crashes platform (flutter/engine#34675) 2022-07-14 22:30:04 +00:00
Zachary Anderson
c0170658ed [impellerc] SkSL backend fix for the ink_sparkle shader (flutter/engine#34670) 2022-07-14 12:45:18 -07:00
Zachary Anderson
3258c4c00b [impellerc] Adds an SkSL backend (flutter/engine#34441) 2022-07-13 15:05:00 -07:00
Chris Yang
cd0ced63e5 Reland "iOS spell-checker ObjC #32941" (flutter/engine#34356) 2022-07-11 23:29: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
6dd8d32f31 Expose SkPathOps in a standalone library. (flutter/engine#34267) 2022-07-11 10:11:03 -07:00
Zachary Anderson
5824ced936 Clean up some optional Dart lints (flutter/engine#34557) 2022-07-08 23:19:04 +00:00
Dan Field
e162fed336 Rename toGpuImage to toImageSync (flutter/engine#34504) 2022-07-08 19:41:05 +00:00
Jason Simmons
1362b082e9 Disable the ExternalTextureTests scenario app test (flutter/engine#34433) 2022-07-01 23:35:04 +00:00
Loïc Sharma
4128781401 Paint tab characters as a single space (flutter/engine#34389)
This change makes Windows render tabs as a single space. Previously, tabs rendered differently depending on your platform:

* Windows, Web - a tofu is rendered
* iOS, Android, macOS, Linux - a single space is rendered

Part of flutter/flutter#79153
2022-07-01 12:51:11 -07:00
Zachary Anderson
3c6820dc68 Move embedder_a11y_unittests to its own binary (flutter/engine#34377) 2022-06-29 12:38:26 -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
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
06f25e5fdd set leaf_nodes_builder in LayerTree::Flatten (flutter/engine#34261) 2022-06-23 23:19:08 +00:00
Emmanuel Garcia
135a1c8e56 Handle SurfaceView in a VirtualDisplay (flutter/engine#33599) 2022-06-22 19:39:05 -07:00
Dan Field
a33b1e7c6f Make LayerTree::Flatten use DisplayList (flutter/engine#34227) 2022-06-22 19:27:04 +00:00
Jonah Williams
a184d04005 cleanup fractional translation ifdefs and config (flutter/engine#34198) 2022-06-22 09:00:57 -07:00
Dwayne Slater
903b84e145 Re-Enable ExternalTexturesTest (flutter/engine#34118)
Use ImageFormat.PRIVATE since produced images are not read. Hint to downstream surface producers that the image will be sampled from on the GPU.
2022-06-21 10:11:06 -07: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
JsouLiang
f5189d13e8 Add DlSamplingOptions & DlFilterMode (flutter/engine#34024) 2022-06-17 19:26:04 +00:00
Emmanuel Garcia
a01c2201b5 Reland: Re-enable scenario tests on Android (flutter/engine#34048) 2022-06-14 21:03:04 -07:00
Jim Graham
c4a10d6630 add currentTransform/Clip methods to DL and ui.Canvas (flutter/engine#33308) 2022-06-14 18:53:06 -07:00
Devon Carew
28a17c2f56 rev the dart sdk and package:http dep (flutter/engine#34044)
* rev the dart sdk and package:http dep

* fix the http repo reference
2022-06-14 16:29:17 -07:00
Callum Moffat
20d8f266ac iPad trackpad gestures (flutter/engine#31591) 2022-06-13 20:48:04 -07:00
Chinmay Garde
16731be1a7 [Impeller] Allow for the specification of pipeline stage information at runtime. (flutter/engine#33882)
Towards implementing the FragmentProgram API in Impeller.

Specifies an Impeller specific format for data the renderer can use to create
pipelines with user supplied shader stages at runtime.

The data is in the form of a flatbuffer with a known schema.

This patch implements the wire format, creating and loading the program
payloads, and creating pipeline state objects using these payloads.

If the user supplied SPIRV intended for the older API, the loader will reject
this invalid payload. This is probably not going to be too much of an issue
because the FragmentProgram API will probably be modified to only allow buffers
loaded from asset managers. But still, in the meantime, I am using the old API
to pass these new buffers.

Fixes https://github.com/flutter/flutter/issues/104750
Fixes https://github.com/flutter/flutter/issues/105542
Towards resolving https://github.com/flutter/flutter/issues/102853
2022-06-13 18:33:00 -07:00