1146 Commits

Author SHA1 Message Date
Gary Qian
020d7c5c80
Locale: empty string equates to null (#17356) 2020-03-27 04:57:07 -07:00
Chinmay Garde
6d33ee1a2c
Revert "add limited analysis options (#17332)" (#17368)
This reverts commit 5389159643fa26342580208b6a9de547ef4de406.
2020-03-27 02:38:50 -07:00
Yegor
5389159643
add limited analysis options (#17332)
add limited analysis options
2020-03-26 14:38:59 -07:00
Nurhan Turgut
44fc6760d7
[web] improving felt: running target unit tests, cleaning up used proccesses (#17339)
* improving felt: running target unit tests, cleaning up used proccesses

* removing null check
2020-03-26 14:01:36 -07:00
Mouad Debbar
f0caace4fd
[web] Profile text layout and forward data to macrobenchmarks (#17276) 2020-03-26 09:37:14 -07:00
liyuqian
b3075b3091
Rename GPU thread to raster thread in code comments (#17329)
1. Simple "GPU thread" to "raster thread" replacement.

2. Regex replace "GPU([\n\r\s]+//+ thread)" with "raster$1".

3. Regex replace "// gpu$" with "// raster".

4. Simple test change.

5. Run ci/format.sh
2020-03-25 22:49:59 -07:00
Yegor
5845d70b50
Preserve zones in Window callbacks (#17298)
preserve Window callback zones
2020-03-25 17:25:06 -07:00
Ferhat
04182cde5d
Switch ui.window.devicePixelRatio from browser logical to physical. (#17209)
* Switch ui.window.devicePixelRatio to browser dpi
* Add integration test for multi res image loading
* Update cirrus for new integration test
* update canvas golden test root transform
* Update compositing golden test with dpr transform
2020-03-25 12:41:17 -07:00
Mouad Debbar
edfe06c113
Add the chromedriver/ directory to gitignore
This folder is generated by the integration test manager.
2020-03-25 09:08:15 -07:00
Gary Qian
5fddb9be1c
Add empty string check to Locale toString (#17280) 2020-03-24 15:54:40 -07:00
Nurhan Turgut
af440db830
[web] use web drivers as a library only. do not fetch/clone web_installers (#17299)
* use web drivers as a library only. do not fetch/clone web_installers

* fixing comments

* addressing reviewer comments

* adding a trim to output. otherwise last fails
2020-03-24 15:37:33 -07:00
Chinmay Garde
518c9e09cc
Remove checks for the always true using_fuchsia_sdk flag in all GN files. (#17261) 2020-03-23 18:31:02 -07:00
Mouad Debbar
4c41b14064
[web] Introduce js interop to enable experimental flags on web (#17099) 2020-03-23 13:22:10 -07:00
Yegor
2f769be663
Soften shadows (#17231)
* Soften shadows

* update goldens
2020-03-20 19:50:00 -07:00
Nurhan Turgut
48902d146a
Felt add integration (#17190)
* adding arguments to felt for running different type of tests

* adding test type enums to felt

* more changes to felt for testing branches

* more additions to code

* more changes to felt

* adding code for cloning web_drivers

* validating test directories. running the integration tests. update the readme file partially

* Removing todo lists used for development

* addressing reviewers comments

* remove unused imports

* addressing more reviewer comments

* addressing more reviewer comments

* addressing reviewer comments.

* addressing reviewer comments.

* fixing typos

* using chromedriverinstaller as a library. Fixing the commit number used from web_installers repo

* clean drivers directory after tests finish

* addressing more reviewer comments

* throwing all critical exceptions instead of logging and returning boolean flags

* adding todos for items we can do for making felt easier to use for local development

* do not run integration tests on CIs. Added an issue to the TODO.

* changing todo's with issues.
2020-03-20 19:24:13 -07:00
Ferhat
6d30043313
Fix blend test diffrate on mac (#17198)
* Fix error message for golden failure. Fix blend test diffrate when running on MacOS

* Revert MacOS adjustment
2020-03-18 16:47:58 -07:00
Dan Field
034f913b98
Teach frontend compiler to replace toString with super.toString for selected packages (#17068)
Adds annotation `keepToString` to opt out.
2020-03-17 15:40:09 -07:00
Dan Field
d03f620143
Two point conical gradient for web CanvasKit (#17146) 2020-03-16 12:11:02 -07:00
Ferhat
5a07488251
[web] Add HtmlCodec progress callback (#17139)
* Wire up htmlcodec chunkcallback for progress events

* Add test for HtmlCodec
2020-03-16 11:41:44 -07:00
MennaFadali
57e69fe176
Implementing Locale.toLanguageTag in flutter web. (#17131) 2020-03-13 08:57:53 -07:00
Nurhan Turgut
9a3016fbed
increasing user limits for macos (#17097) 2020-03-11 12:15:47 -07:00
Chinmay Garde
17e07c537e
Implement asynchronous texture uploads when using the Metal backend on iOS. (#17046)
This moves the Metal `GrContext` creation utilities from `GPUSurfaceMetal` into
a separate `IOSContext` object subclass. An analogue of this object was used in
the GL regime for the management of onscreen and offscreen contexts that were
not tied to the lifecycle of the `GPUSurface`. This pattern has now been
generalized for use with all backends that need a resource context
(`IOSContextGL` and `IOContextMetal`).

The platform views controller management in the `ExternalViewEmbedder` interface
implementation was repeated three times for [Metal][metal], [OpenGL](opengl) and
[Software](software) rendering. This repetition has been removed and a single
implementation present in the base `IOSSurface` and used on all platforms.
Addition of new client rendering APIs should not affect how the engine renders
into the platform view interleaving levels.

All rendering API selection logic has been moved into a single set of utilities
in `rendering_api_selection.h`. This enables the removal of a lot of code blocks
guarded by `FLUTTER_SHELL_ENABLE_METAL`. The remaining uses of this will be
removed when unified builds are enabled.

The Metal backend now also adds traces similar to the GL backend.

The `IOGLContext` has been renamed to `IOContextGL` to be more in line with the
convention used in this library.

Fixes https://github.com/flutter/flutter/issues/41827
Adds https://github.com/flutter/flutter/issues/52150

[metal]: 1194ba2b21/shell/platform/darwin/ios/ios_surface_metal.mm (L55)
[opengl]: 1194ba2b21/shell/platform/darwin/ios/ios_surface_gl.mm (L95)
[software]: 1194ba2b21/shell/platform/darwin/ios/ios_surface_software.mm (L146)
2020-03-10 16:01:53 -07:00
Chinmay Garde
bcefcdb880
Use the ELF loader to setup AOT symbols in benchmark runner. (#17051)
We no longer package AOT artifacts as discrete blobs. The portable ELF loader
from the testing library may be used instead.

Fixes https://github.com/flutter/flutter/issues/52263
2020-03-10 12:28:24 -07:00
Ferhat
a3e883b149
[web] Fixes for Firefox & Safari double underline decoration bugs. (#16994)
* Work around line measurement rounding bug in Firefox. Add -webkit prefix for Safari text decoration
* Add check for measurement tests for firefox
2020-03-09 22:36:46 -07:00
Dan Field
a18066bfb3
Avoid capturing this unsafely in MultiFrameCodec (#16824) 2020-03-09 21:18:50 -07:00
Yegor
d41e25b549
Revert "Revert "fix shadows and mask filter blurs (#16963)" (#17008)" (#17040)
This reverts 619acd58ca55b2a85cf70d0f7861e3c98058972d and re-lands 6cfa7fcad64e2fe70bca01cfbc4598ecd24613b1. The 6cfa7fcad64e2fe70bca01cfbc4598ecd24613b1 was good. The screenshot changes were expected.

Fixes https://github.com/flutter/flutter/issues/32215
2020-03-09 20:32:59 -07:00
Ferhat
7f942f273b
Add support for firefox mac installer. Update web_ui pubspec for http.wq (#17044)
* Add support for firefox mac installer. Update web_ui pubspec for http.wq
* Addressed review comment 'final'
2020-03-09 18:13:37 -07:00
Yegor
4f4fdbf21f
fix "TREE INCONSISTENT" noise in compositing_test.dart (#16995) 2020-03-09 16:26:18 -07:00
Yegor
cb3237e255
Add more child lifecycle tests (#16689) 2020-03-09 16:26:06 -07:00
Chris Bracken
619acd58ca
Revert "fix shadows and mask filter blurs (#16963)" (#17008)
Broke golden file tests in the framework. Reverting to unblock the
engine roll to the framework.

This reverts commit 6cfa7fcad64e2fe70bca01cfbc4598ecd24613b1.
2020-03-07 10:18:10 -08:00
Yegor
e2c04549a0
remove 10s timeouts from tests (#16988) 2020-03-06 12:37:52 -08:00
Ferhat
0ad54c2106
[web] Fixes IE11 crash due to missing canvas ellipse support and font polyfill failure (#16965)
* Add context ellipse polyfill
* Change call sites for ellipse
* Switch fontloader polyfill font for ie11
2020-03-06 09:50:02 -08:00
Yegor
6cfa7fcad6
fix shadows and mask filter blurs (#16963)
* fix shadows and mask filter blurs

* update goldens

* clarify the choice to min the shadows
2020-03-05 22:07:57 -08:00
Chris Bracken
78a1c7ebf9
Revert "Drop last usages of Dart_New from engine (#16838)" (#16915)
We believe this may be implicated in a Windows-specific crash during the
Flutter Gallery integration test.

See:
https://github.com/flutter/flutter/issues/51896

This reverts commit f9b78c5db2bc3087e1793947b11ca643c2d747cf.
2020-03-03 14:52:56 -08:00
Dan Field
f9b78c5db2
Drop last usages of Dart_New from engine (#16838)
Image
Codec
FrameInfo
Scene/Picture toImage
2020-03-02 21:30:28 -08:00
Dan Field
96061d6228
shake out Paint.toString (#16850) 2020-02-28 10:41:55 -08:00
Dan Field
e47fa0bee9
Avoid using Dart_New for semantics (#16849) 2020-02-28 10:31:03 -08:00
Dan Field
c2fc31d19d
remove usage of Dart_New for paragraph/libtxt (#16837) 2020-02-28 00:15:40 -08:00
Ben Konyi
1e01b775e3
Enable HTTP and socket profiling dart:io service extensions for Flutter (#16800) 2020-02-27 08:29:58 -08:00
Ferhat
c0e29b6000
Fix stale physicalSize on resize event (#16822) 2020-02-26 15:54:10 -08:00
Mouad Debbar
7685e080bb
[web] Guard the remaining calls to window.onPlatformMessage (#16791) 2020-02-25 15:06:07 -08:00
Nurhan Turgut
9ac76ad5ad
[web] changing user limits for macos (#16797)
* changing user limits for macos

* check kernel name instead
2020-02-25 15:04:07 -08:00
Ferhat
d590e9841d
Evict BitmapCanvas(s) from cache when canvas allocation fails (#16793) 2020-02-25 13:38:25 -08:00
Mouad Debbar
d670059451
[web] Respect maxLines when calculating boxes for a range (#16749) 2020-02-24 14:26:03 -08:00
Mouad Debbar
971122b314
[web] Reduce the usage of unnecessary lists in pointer binding (#16745) 2020-02-24 14:21:04 -08:00
Ferhat
b87bb0a161
[web] Fix canvas leak when dpi changes. Evict from BitmapCanvas cache under… (#16721)
* Fix canvas leak when dpi changes. Evict from BitmapCanvas cache under memory pressure.

* optimized _reduceCanvasMemoryUsage

* Addressed review comments
2020-02-24 11:19:47 -08:00
Miguel Beltran
d0c2418dfe
Add support for Increase Contrast on iOS (#15343) 2020-02-22 14:04:04 -08:00
Dan Field
c3f4c1a085
Migrate Path to AssociateWithDartWrapper (#16753) 2020-02-22 12:59:35 -08:00
Mouad Debbar
afe7968e6b
[web] Paragraph.longestLine doesn't need to check for isSingleLine anymore (#16736) 2020-02-21 13:18:09 -08:00
Mouad Debbar
136a057f28
[web] Rename LineMetrics.text to LineMetrics.displayText (#16734) 2020-02-21 13:17:59 -08:00