2052 Commits

Author SHA1 Message Date
ColdPaleLight
0987697edf [web] Support raw straight RGBA format in Image.toByteData() in Html (flutter/engine#28357) 2021-09-23 02:13:02 -07:00
Harry Terkelsen
12291eed93 [canvaskit] Fix bug when overlays are disabled (flutter/engine#28790) 2021-09-22 10:49:40 -07:00
Chris Bracken
d70b998cf8 Eliminate unnecessary canvaskit imports (flutter/engine#28787)
Fixes the following lints:

```
Analyzing web_ui...

info - lib/src/engine/canvaskit/surface_factory.dart:8:8 - The import of '../util.dart' is unnecessary as all of the used elements are also provided by the import of '../../engine.dart'. Try removing the import directive. - unnecessary_import
info - lib/src/engine/canvaskit/surface_factory.dart:9:8 - The import of 'embedded_views.dart' is unnecessary as all of the used elements are also provided by the import of '../../engine.dart'.  Try removing the import directive. - unnecessary_import
info - lib/src/engine/canvaskit/surface_factory.dart:10:8 - The import of 'surface.dart' is unnecessary as all of the used elements are also provided by the import of '../../engine.dart'. Try removing the import directive. - unnecessary_import
```
2021-09-21 18:19:05 -07:00
Yegor
74dcaafe7a [web] clear surfaces on hot restart (flutter/engine#28675)
* [web] clear surfaces on hot restart
2021-09-21 15:57:35 -07:00
Darren Chan
b82554ae4a Implement a default font manager for Fuchsia. (flutter/engine#28673)
This helps us get rid of our hacky font switch after engine initialization.

See https://fxbug.dev/76406 and https://github.com/flutter/flutter/issues/82202.
2021-09-21 12:33:37 -07:00
Mouad Debbar
c487819422 [web] Multiple fixes to text layout and line breaks (flutter/engine#28642) 2021-09-20 15:08:02 -07:00
fzyzcjy
07f09eb4c4 Fix duplicated documentation (flutter/engine#28707) 2021-09-20 09:48:02 -07:00
Jason Simmons
c9c7f44174 Wrap ImageShader::sk_image_ with a SkiaGPUObject (flutter/engine#28698) 2021-09-17 20:18:02 -07:00
Jim Graham
a3c134e163 hold DisplayList objects in SkiaGPUObject wrappers (flutter/engine#28679) 2021-09-17 10:37:01 -07:00
David Worsham
657b63f499 fuchsia: Convert vulkanb headers to DEPS (flutter/engine#28676) 2021-09-16 22:39:06 -07:00
Harry Terkelsen
b2c99dbba6 [canvaskit] Handle case where platform view is prerolled but not composited (flutter/engine#28619) 2021-09-15 12:19:01 -07:00
Bruno Leroux
cf0c1b8c2a Call _isLoopback as a last resort (flutter/engine#28576) 2021-09-15 08:47:01 -07:00
Konstantin Scheglov
463ebf640f Fix UNNECESSARY_TYPE_CHECK_TRUE (flutter/engine#28611)
* Fix UNNECESSARY_TYPE_CHECK_TRUE

* Fix two more places.
2021-09-15 08:22:24 -07:00
Harry Terkelsen
1d6489facf [canvaskit] Don't assign overlays when overlays are disabled (flutter/engine#28597)
* Don't assign overlays when overlays are disabled

* Add TODO for tests
2021-09-13 17:02:25 -07:00
Yegor
cb9ce54b77 [web] fix the last matrix element in CkPath.shift (flutter/engine#28589) 2021-09-13 13:07:01 -07:00
LongCatIsLooong
971b0f4d9a [Web text input] Make placeholder invisible (flutter/engine#28494) 2021-09-10 14:17:01 -07:00
ColdPaleLight
9898f7b464 Prevent app from accessing the GPU in the background in EncodeImage (flutter/engine#28369) 2021-09-09 09:42:02 -07:00
ColdPaleLight
17f29a0304 Factor out a task synchronization help function for unit tests (flutter/engine#28467) 2021-09-08 11:12:01 -07:00
Harry Terkelsen
d40fdb6114 [canvaskit] Optimize CanvasKit platform views in special cases (flutter/engine#28087) 2021-09-08 09:45:21 -07:00
LongCatIsLooong
9fe73b3892 [TextInput] enroll in autofill by default (flutter/engine#28333) 2021-09-03 19:16:01 -07:00
Jim Graham
10d49ea696 Add RasterCache metrics to the FrameTimings (flutter/engine#28439) 2021-09-03 16:26:01 -07:00
Zachary Anderson
86de3b6591 Revert "Display Features support (Foldable and Cutout) (#24756)" (flutter/engine#28447)
This reverts commit 53b9a690c5eb8410c561be43964f350f58347366.
2021-09-03 09:01:15 -07:00
Andrei Diaconu
53b9a690c5 Display Features support (Foldable and Cutout) (flutter/engine#24756)
* Add DisplayFeatures and DisplayCutout to viewport metrics

* WindowManager alpha03 and better documentation

* Fixed formatting

* Fixed failing tests

* Replaced API version code P with 28

* Unnecessary import

* Fixed display features parameters missing

* Documentation changes

* First paragraph is a sentence

* Update androidx window library to version 1.0.0-alpha05

* Improve documentation, remove deprecated display feature call

* Write tests and improve documentation

* Migrate to Window Manager alpha08

* Update androidx window to beta01

* Remove unused import

* Remove window_hook_integration_test.dart

* Fix tests

* Update android_embedding_dependencies version to include androidx.window

* Add androidx.window to test_runner build

* Add empty display features arrays to fuchsia platform view

* Fix tests using final class mocking

* Add missing license header

* Update licenses_golden
2021-09-03 04:02:17 -07:00
Christopher Crawford
4ac725f85f Fix function definitions in SPIR-V transpiler. (flutter/engine#28352)
Function calls were not tested and the definitions of function parameters were output separately, since the transpiler used to output function declarations before implementations.

Closes issue flutter/flutter#89083
2021-08-30 17:47:01 -07:00
ColdPaleLight
90fdd72297 [web] Support raw straight RGBA format in Image.toByteData() in CanvasKit (flutter/engine#28339) 2021-08-28 04:36:01 -07:00
Chris Yang
d8663f8a38 organize snapshot/BUILD.gn targets and fix create_arm_gen_snapshot (flutter/engine#28345) 2021-08-27 16:31:01 -07:00
Harry Terkelsen
3def63e845 [canvaskit] Implement invertColors (flutter/engine#28348) 2021-08-27 16:16:47 -07:00
ColdPaleLight
d90a23b4ae Support raw straight RGBA format in Image.toByteData() (flutter/engine#28293) 2021-08-27 10:11:01 -07:00
Taha Tesser
2f79b8ddca Fix skia link (flutter/engine#28124) 2021-08-26 13:04:58 -07:00
Harry Terkelsen
44ae2eb7a0 Add flag to disable overlays (flutter/engine#28312) 2021-08-26 09:34:30 -07:00
ColdPaleLight
d8269e81b4 Prevent app from accessing the GPU in the background in MultiFrameCodec (flutter/engine#28159) 2021-08-24 09:19:08 -07:00
chunhtai
9761b7371a Issues/86577 reland (flutter/engine#28211) 2021-08-20 12:27:01 -07:00
Anthony
50adf078fd [Re-land] Add SPIR-V FragmentShader API to painting.dart (flutter/engine#28208)
[Re-land] Add SPIR-V FragmentShader API to painting.dart

- Add a SPIR-V FragmentShader interface in painting.dart
- Create end to end pixel tests for ops supported by the SPIR-V to SkSL transpiler
- The end to end tests also test the c++ fragment shader implementation

Co-authored-by: Christopher Crawford <chriscraws@gmail.com>
2021-08-20 11:24:14 -04:00
Zachary Anderson
c4fb8a6051 Revert "Adds semantics tooltip support (#27893)" (flutter/engine#28207)
This reverts commit 366e66802a35abf55bcb649b9bf58921b174b59a.
2021-08-19 14:40:34 -07:00
Zachary Anderson
e3f282c563 Revert "Add SPIR-V FragmentShader API to painting.dart (#26996)" (flutter/engine#28202)
This reverts commit 1b518619357cc1666a9fca183c9766d1ece16d0f.
2021-08-19 12:38:10 -07:00
godofredoc
1600a7cd93 Define WEB_UI_DIR using ENGINE_PATH. (flutter/engine#28057)
This is to minimize the number of environment variables being passed to
scripts from recipes.
2021-08-18 18:03:31 -07:00
chunhtai
366e66802a Adds semantics tooltip support (flutter/engine#27893) 2021-08-18 15:37:01 -07:00
Anthony
1b51861935 Add SPIR-V FragmentShader API to painting.dart (flutter/engine#26996)
Add SPIR-V FragmentShader API to painting.dart
2021-08-18 12:58:25 -04:00
Mouad Debbar
11468c557f [web] Clean up legacy Paragraph implementation (flutter/engine#28050) 2021-08-13 21:57:35 -07:00
Mouad Debbar
c46d431851 [web] Don't reset history on hot restart (flutter/engine#27872) 2021-08-13 15:19:23 -07:00
Yegor
e31d85ab6e [web] rename watcher.dart to pipeline.dart (flutter/engine#27995) 2021-08-13 15:07:01 -07:00
Yegor
f83ae4a6e3 [web] add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script (flutter/engine#28056)
add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script
2021-08-13 13:25:21 -07:00
Justin McCandless
87882e782a Fix getLineBoundary for TextAffinity (flutter/engine#28008)
Fix a bug in a calculation when selection is at a wordwrap
2021-08-11 16:04:30 -07:00
Tong Mu
7a238021b6 ui.KeyData.toString (flutter/engine#28007)
Enhances ui.KeyData.toString by:
- Fixing the character interpretation;
- Adding hex representation to characters;
- Applying the code to the web engine which is currently missing.
2021-08-11 13:55:35 -07:00
Harry Terkelsen
e6e99c3bdc [canvaskit] Release overlays to the cache once they have been used (flutter/engine#27977) 2021-08-11 11:04:23 -07:00
The one with the braid | Dфҿ mit dem Zopf
7830e8dd89 [web_ui] Fixed aria-live attribute on web (flutter/engine#27985)
* Fixed aria-live attribute on web
2021-08-10 12:10:53 -07:00
Tong Mu
29a2647b2a Fix: modifier keys not recognized on macOS Web (flutter/engine#27972) 2021-08-09 15:03:14 -07:00
Greg Spencer
d55048cdf8 Fix sample analyzer errors in text.dart (flutter/engine#27941)
This just fixes a couple of minor analyzer errors in the sample code so that they won't break the build when I fix the analyzer in the flutter repo.
2021-08-06 18:11:43 -07:00
chunhtai
31813e14fc Fix routerinformationupdate can take complex json (flutter/engine#27932)
* Fix routerinformationupdate can take complex json

* comment
2021-08-06 13:53:40 -07:00
Mouad Debbar
7c0336349d [web] Fix types of some event listeners (flutter/engine#27911) 2021-08-05 16:16:05 -07:00