4193 Commits

Author SHA1 Message Date
Chris Bracken
770b55538c [Win32] Eliminate use of OpenGL ES 3.1 symbols (flutter/engine#32780)
In ANGLE commit 232e523656fccfacabeb8e5ce0cbc2e6dcc1ec4e, an Open GL
extension API was removed from ANGLE which included several symbols that
are not available until OpenGL ES 3.2. This was removed since it had no
known users, and cut the number of entrypoints ANGLE exports in half,
saving 130kB on Android.

Of the removed symbols, the Windows embedder used two:
* GL_RGBA8, which is not OpenGL ES, but rather OpenGL, and can be
  replaced with GL_RGBA which is lenient since it doesn't ask for a
  specific size.
* GL_CLAMP_TO_EDGE, which can be replaced with GL_CLAMP_TO_BORDER.
  https://open.gl/textures for details.

Issue: https://github.com/flutter/flutter/issues/102117
2022-04-19 10:43:05 -07:00
Alexander Biggs
acd3199196 [fuchsia] Switch FML_DLOGs -> FML_LOGs. (flutter/engine#32760) 2022-04-18 17:59:04 -07:00
utzcoz
b4ad6bd416 Migrate RuntimeEnvironment#sytemContext to ApplicatoinProvider#getApplicationContext (flutter/engine#32725) 2022-04-18 10:34:04 -07:00
moko256
15e077fa4b Win32: fix window commits last char when deleting text with IME (flutter/engine#32565) 2022-04-15 11:09:05 -07:00
nt4f04uNd
c343fd5735 Fix nullability annotation in writeValue (flutter/engine#32706) 2022-04-15 11:04:05 -07:00
utzcoz
3e8a370191 Migrate RuntimeEnvironment#application to ApplicationProvider#getApplicationContext (flutter/engine#32557) 2022-04-14 13:29:05 -07:00
ColdPaleLight
e9f78111c6 Clean obsolete 'shared_resource_context' (flutter/engine#32521) 2022-04-14 13:24:05 -07:00
J-P Nurmi
1bfba47c48 [Linux] add MockSignalHandler for testing GObject signals (flutter/engine#32650) 2022-04-14 13:19:05 -07:00
J-P Nurmi
4248b9b708 [Linux] add (Fl)MockBinaryMessenger for GMock (flutter/engine#32649) 2022-04-14 13:14:05 -07:00
moko256
3716ca5423 On Windows, reduce spaces between caret and IME window. (flutter/engine#32567) 2022-04-14 12:39:54 -07:00
linxuebin
1dbe7a6cd5 Skip LayerTree::Preroll LayerTree::Paint & Swapbuffer when frame_damage is empty (flutter/engine#32351) 2022-04-13 20:59:04 -07:00
J-P Nurmi
0002a8f57c [Linux] add GTest printer for FlValue (flutter/engine#32652)
Improves test failure messages when matching FlValue arguments.

For example, before:

  Expected arg #2: has setting ("platformBrightness", 0x32f0980)
           Actual: 0x7f81ec005990, 0x32f0900

And after:

  Expected arg #2: has setting ("platformBrightness", dark)
           Actual: 0x27bded0, {textScaleFactor: 0.0, alwaysUse24HourFormat: false, platformBrightness: light}
2022-04-14 10:52:51 +12:00
Kaushik Iska
d8e73006e0 Add service protocol method to facilitate getting snapshots (flutter/engine#32628) 2022-04-13 13:39:05 -07:00
Kevin Lubick
d42ba6c614 more includes (flutter/engine#32532) 2022-04-13 11:55:04 -07:00
Camille Simon
15bb1b5e86 Add missing window flags for styling system bars (flutter/engine#32167) 2022-04-13 09:44:04 -07:00
Jim Graham
bd89e4452a Designated field initialization of Paint/PrerollContexts (flutter/engine#32634) 2022-04-12 20:59:05 -07:00
J-P Nurmi
f47c6428ec [Linux] add missing AtkObject::get_index_in_parent implementation (flutter/engine#32499) 2022-04-12 20:44:05 -07:00
Tong Mu
fd61f28c45 [Linux, Keyboard] Extract KeyboardManager's external dependencies as ViewDelegate; Rework testing framework (flutter/engine#32305) 2022-04-12 14:19:04 -07:00
Kaushik Iska
172d0b24e5 Enable leaf layer tracing in PaintContext (flutter/engine#32383) 2022-04-11 18:24:04 -07:00
Dan Field
4101b52aca Unify unhandled error reporting, add PlatformDispatcher.onError (flutter/engine#32078) 2022-04-09 14:44:04 -07:00
Alexander Biggs
8507cd3d36 [fuchsia] Fix --unopt build for Fuchsia. (flutter/engine#32502) 2022-04-08 16:32:04 -07:00
J-P Nurmi
e2c68680b7 [linux] fix accessibility roles for radios and switches (flutter/engine#32454) 2022-04-07 16:16:03 -07:00
moko256
743edc1ccc Windows: Add SystemSound support (flutter/engine#29811) 2022-04-07 15:51:03 -07:00
utzcoz
f2e7fb8cca Split tests for computePlatformResolvedLocale with N (flutter/engine#32385) 2022-04-07 13:11:04 -07:00
Dan Field
ec99c09baf Soft revert of 3a0d0b6e36deebc6d477daee9a3cc4dbd09a7900 (flutter/engine#32465) 2022-04-07 09:22:08 -07:00
Kevin Lubick
f7b0a59a84 [skia] Fix more transitive includes (flutter/engine#32430) 2022-04-07 08:53:54 -04:00
Chris Bracken
e0c11d4dbd Sync Android AccessibilityFeature enum and dart:ui (flutter/engine#32460) 2022-04-06 16:21:04 -07:00
Swift Kim
72ff6875fb Sync accessibility flags in embedder.h (flutter/engine#32332)
The following enum types in `embedder.h` must match with the corresponding Dart/C++ classes in `dart:ui` but some values are missing.

- `FlutterAccessibilityFeature`
- `FlutterSemanticsAction`
- `FlutterSemanticsFlag`

The comments say

5a43c7cb8e/shell/platform/embedder/embedder.h (L83)

5a43c7cb8e/lib/ui/window.dart (L784-L785)

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-06 10:01:22 -07:00
Chris Bracken
6b7a734450 Uncomment SemanticsFlag.isMultiline in enums (flutter/engine#32440)
Uncomments the Java Flag.IS_MULTILINE and C++ SemanticsFlag.kIsMultiline
enum values. While these values aren't used in the Android or iOS
embeddings, in practice we maintain the same set of enum values across
all embeddings so as to match the public API defined in dart:ui, found
in lib/ui/semantics/semantics.dart.

This also helps with automated checking that all enums across all
languages are consistent.

This will be added to the embedder API in
https://github.com/flutter/engine/pull/32332.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-06 09:59:48 -07:00
Greg Spencer
3da07b7cfa Adjust some names for consistency (flutter/engine#32433)
This just changes some of the API names for consistency with the framework APIs (and themselves).
This is a very new method channel (it went in a couple of days ago), so it's not in use yet.

Matching framework PR is flutter/flutter#101378
2022-04-06 09:43:40 -07:00
Chris Yang
ede2fb5e11 Fix a crash when setting clipboardData to null on iOS (flutter/engine#32413) 2022-04-04 19:11:04 -07:00
Chris Bracken
9710156fe2 Fix SemanticsAction naming consistency (flutter/engine#32411)
Removes the `Index` suffix from kMoveCursorForwardByWord and
kMoveCursorBackwardByWord values in the SemanticsAction enum. These were
erroneously copied as-is from the private class members in the dart:ui
implementation in lib/ui/semantics/semantics.dart where the class
members refer to the enum index here. This removes the trailing `Index`
for consistency with the other enum members here.

This is also useful in the context of automated testing for API
consistency between these enums, the ones in dart:ui (native and web
implementations) and the embedder API.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-04 17:07:05 -07:00
Renzo Olivares
c53ab8fd7a Fix deltas when selection is active and composing begins on MacOS (flutter/engine#32412)
* Fix special character input on a selection

* Add test for composing when selection is active

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-04-04 15:13:06 -07:00
Jason Simmons
a0b860283e Always initialize the _weakFactory in FlutterViewController (flutter/engine#32395)
Fixes https://github.com/flutter/flutter/issues/101209
2022-04-04 12:56:35 -07:00
Chris Yang
fc54e5ecac Set iOS default frame rate to screen max. (flutter/engine#29797) 2022-04-01 14:34:47 -07:00
Tong Mu
aa029368e5 [macOS, Keyboard] Derive keyboard layout using printable information from system (flutter/engine#32152)
* Impl

Remove log

add sync; clean code

Format

* Impl

* New Impl

* Fix dead key

* Rename to goals and clues

* CFRelease source

* Move to view controller

* No global

* First-phase

* No weak in dealloc

* Tests

* One more test

* Format

* Format

* Docs

* Tests

* Docs

* Format

* Fix compile

* Compile

* Add channel test

* Format

* Fix comments

* Fix keycodes

* Fix namespaces

* Format

* strlcpy
2022-04-01 11:57:21 -07:00
Kevin Lubick
cdd2946003 Fix includes of SkColorSpace et al (flutter/engine#32382) 2022-04-01 10:59:23 -07:00
Kaushik Iska
a0f03a0220 Refactor drawing to offscreen surface (flutter/engine#32338) 2022-04-01 05:40:36 -04:00
ColdPaleLight
8a886fa8a5 Let FlutterActivity/Fragment/FragmentActivity support dart entrypoint args (flutter/engine#30709) 2022-03-31 22:21:01 -07:00
ColdPaleLight
31e332ee32 Tuning resource cache max bytes in lightweight engine scenarios (flutter/engine#32156) 2022-03-31 21:11:05 -07:00
Tong Mu
60a3850cf5 [Linux, Keyboard] Make keyboard tests use unique_ptr and vector (flutter/engine#32372)
* Tester

* redispatched

* Correct events

* Format

* CallRecord

* nonnulaable call_records

* dispatch unique_ptr

* Remove print

* format

* Remove print

* Update shell/platform/linux/fl_keyboard_manager.h

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2022-03-31 19:34:02 -07:00
Matej Knopp
190cee38d1 Specify clip alignment for partial repaint (flutter/engine#31359)
* Specify clip alignment for partial repaint
2022-03-31 23:53:42 +02:00
Renzo Olivares
9f1f275090 Macos deltas composing fix (flutter/engine#32345)
* send correct composing region when composing text - deltas

* Add composing test and fix existing test

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-31 13:51:17 -07:00
utzcoz
35632b233b Replace TestUtil#setApiVersion with Robolectric's sdk in Config (flutter/engine#32137) 2022-03-31 13:50:04 -07:00
WenJingRui
15bc6bd60f [iOS] Ensure the keyboard bottom inset is zero when keyboard dismiss. (flutter/engine#31982) 2022-03-31 12:30:04 -07:00
Greg Spencer
b52c5a9fe5 Add Menu channel for rendering system menus with native APIs on macOS. (flutter/engine#32358) 2022-03-31 10:30:03 -07:00
Tamir Duberstein
419da59a4f Reference canonical fuchsia.io constants (flutter/engine#32336)
These aliases are in the process of being removed.
2022-03-31 08:29:15 -07:00
Emmanuel Garcia
34f36011c5 Fix reattachment of platform views after a device rotation (flutter/engine#32331) 2022-03-30 13:35:07 -07:00
Chinmay Garde
351494f717 Add support for images in display lists. (flutter/engine#32268) 2022-03-30 13:31:37 -07:00
Tong Mu
b0de1fa20e [macOS, Keyboard] Channel responder calls callback on duplicate modifiers (flutter/engine#32302) 2022-03-28 18:39:44 -07:00