676 Commits

Author SHA1 Message Date
Jonah Williams
c4d3db0133 add pixel snapping conditional on presence of raster cache (flutter/engine#35981) 2022-09-09 01:10:01 +00:00
Dan Field
4f14c3d127 Use the frame size to cull (flutter/engine#35973) 2022-09-07 23:18:10 +00:00
emilyabest
2fd7dde9c8 PlatformView Blur for Backdrop Filter (flutter/engine#34596) 2022-09-06 17:30:57 +00:00
xiaomiao
9439f622fd Introduce bitset to manage bool flags in mock_layer unit test. (flutter/engine#35489) 2022-09-02 09:15:18 +00:00
ColdPaleLight
e9ad8e2454 [Impeller] Implement ui.Picture.toImage() (flutter/engine#35633) 2022-09-01 22:59:41 +00:00
JsouLiang
1b8d5b7233 Make shader mask layer code builder aware (flutter/engine#35622) 2022-08-31 09:38:32 +00:00
Matej Knopp
89c5675052 DiffContext: Remove transform_override (flutter/engine#35601)
This has been originally added to account for different
parts of rendering process applying integer CTM  inconsistently. With Integer CTM removed this is dead code.
2022-08-27 09:13:04 +02:00
Dan Field
cce2ee3fb8 [Impeller] Render on Simulator (flutter/engine#35692) 2022-08-25 14:21:23 +00:00
Jonah Williams
27b4f29d7e Include TextureLayer in contents of toImageSync (flutter/engine#35608) 2022-08-23 02:16:06 +00:00
Matej Knopp
5ab1c6712d Ensure raster cache doesn't bleed over to adjacent physical pixels (flutter/engine#35602)
* Ensure raster cache doesn't bleed over to adjacent physical pixels

* Only clip if necessary

* Add tests

* Reformat

* Only save/restore when necessary
2022-08-22 19:23:38 +02:00
Casey Hillers
1c20221e24 Revert "Include TextureViews in the output of Scene.toImage[Sync]" (flutter/engine#35587) 2022-08-22 10:26:09 +00:00
Casey Hillers
cfffb4ffde Revert "Make ShaderMaskLayer code builder aware" (flutter/engine#35588) 2022-08-21 19:42:30 +00:00
Jonah Williams
ed952f4503 Include TextureViews in the output of Scene.toImage[Sync] (flutter/engine#35527)
Update Picture rasterization for toImage to accept a layer tree, optionally flattening on the raster thread if present.
Update Deferred GPU image for toImageSync to accept a layer tree, flattening it the first time it creates an image, storing the resulting display list.

This is also a performance fix for the zoom page transition, which currently does too much work on the UI thread on frame 1
2022-08-19 16:28:30 -07:00
JsouLiang
9a300c5e48 Make ShaderMaskLayer code builder aware (flutter/engine#35534) 2022-08-19 19:43:29 +00:00
Kaushik Iska
7cdcb0f837 Do not override partial repaint support globally (flutter/engine#35539) 2022-08-19 18:41:46 +00:00
Zachary Anderson
407fb9e192 Revert "Pushing BackdropFilter Mutator (#34355)" (flutter/engine#35543)
This reverts commit ab6376ac20f0ab557b5d4737a8b61f20716b8e85.
2022-08-19 10:01:01 -07:00
Dan Field
fd9fdbf6b8 Support deferred GPU images in ImageShaders (flutter/engine#35323) 2022-08-18 23:12:11 +00:00
xiaomiao
3afe0778d0 Fix the issue that PrerollContext.has_texture_layer is sticky. (flutter/engine#35425) 2022-08-17 03:10:20 +00:00
JsouLiang
924a207dde Use DlImageFilter for ImageFilterLayer (flutter/engine#34837) 2022-08-16 19:24:48 +00:00
Jim Graham
5f9579eae8 Display list multiplexer (flutter/engine#35421) 2022-08-16 05:34:52 +00:00
Javon Thomas
ab6376ac20 Pushing BackdropFilter Mutator (flutter/engine#34355) 2022-08-10 21:36:39 +00:00
Dan Field
132ab1a321 Reland toImageSync (flutter/engine#35283) 2022-08-09 22:32:04 +00:00
Dan Field
abbca7b5e4 Revert "Collect textures from toImageSync safely (#35073)" (flutter/engine#35281)
This reverts commit 1f9bb2c26554f53995e7d02afc54a5566ad3310c.
2022-08-09 14:32:32 -07:00
Dan Field
1f9bb2c265 Collect textures from toImageSync safely (flutter/engine#35073) 2022-08-09 13:21:59 -07:00
JsouLiang
6d68d589db ColorFilterLayer change SkColorFilter to DLColorFilter (flutter/engine#34744)
* change SkColorFilter to DlColorFilter

* draft for SkColorFilter to DlColorFilter

* draft for SkColorFilter to DlColorFilter

* Formatting code

* Use DlColorFilter for ColorFilterLayer; Change the test cases

* Use DlObject for test cases

* fix some nits

* update code formats

* update the local variable name
2022-08-05 21:00:54 +08:00
Jim Graham
1413379354 Embedders use DisplayListBuilder for compositing (flutter/engine#35170) 2022-08-04 22:23:04 +00:00
Chris Yang
1b6c21d5c1 Make the filter_ in mutator shared_ptr (flutter/engine#34944) 2022-07-27 23:52:03 +00:00
ColdPaleLight
369a324ff8 Evicting unused cache entries before RasterCache actions (flutter/engine#34627) 2022-07-23 02:56:03 +00:00
ColdPaleLight
cd73f4378c Tweak the condition of 'FML_DCHECK' to solve the issue caused by round-off error (flutter/engine#34660) 2022-07-18 05:00:04 +00:00
ColdPaleLight
676e99c1f4 Tweak the logic about generating 'RasterCacheKey' of the type 'kLayerChildren' (flutter/engine#32676) 2022-07-18 04:24:05 +00:00
ColdPaleLight
45d9265b01 Fix issue about checkerboardRasterCacheImages not working (flutter/engine#34424) 2022-07-14 23:08:04 +00:00
Javon Thomas
43cf716d03 Create blanket backdrop filter mutator (flutter/engine#34408) 2022-07-13 22:08:05 +00:00
Jim Graham
b61239beff Fix premature DisplayList caching (flutter/engine#34562) 2022-07-11 12:35:04 +00:00
Jim Graham
a433158616 Mark BackdropFilter as inheriting opacity, enabling fading of BDFs (flutter/engine#34435) 2022-07-07 01:56:04 +00:00
JsouLiang
ba5bf62d28 Defer decisions about RasterCache actions until after Preroll is complete (flutter/engine#31892) 2022-06-29 20:59:06 -07:00
Jim Graham
8168381dad Reland "render BackdropFilter layers directly to DisplayListBuilder" (flutter/engine#34381) 2022-06-29 22:26:04 +00:00
Jim Graham
fda51f006d Revert "Reland "render BackdropFilter layers directly to DisplayListBuilder"" (flutter/engine#34367) 2022-06-29 18:42:06 +00: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
Dan Field
06f25e5fdd set leaf_nodes_builder in LayerTree::Flatten (flutter/engine#34261) 2022-06-23 23:19:08 +00:00
Dan Field
0586f7b588 Drop --enable-display-list flag, remove associated branched code (flutter/engine#34233) 2022-06-23 00:07:04 +00: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
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
JsouLiang
f5189d13e8 Add DlSamplingOptions & DlFilterMode (flutter/engine#34024) 2022-06-17 19:26:04 +00:00
Jonah Williams
728640769b dont pixel snap raster cache if SUPPORT_FRACTIONAL_TRANSLATION is enabled (flutter/engine#34002) 2022-06-13 16:43:05 -07:00
Matej Knopp
12613fdb21 All layers with raster cache should use integer CTM (flutter/engine#33981) 2022-06-13 10:43:03 -07:00
Kaushik Iska
7a71b8cbb3 [android] set presentation time via eglPresentationTimeANDROID (flutter/engine#33881)
Attempt to reland: https://github.com/flutter/engine/pull/29727/ with some fixes.
2022-06-08 12:49:58 -04:00
Bruno Leroux
69a99351f2 Fix PerformanceOverlay do not resize (flutter/engine#33872) 2022-06-07 10:13:06 -07:00