15896 Commits

Author SHA1 Message Date
George Wright
d160719f16 Don't retain the MTLTexture or MTLDevice in TestMetalContext (flutter/engine#30832) 2022-01-13 14:29:43 -08:00
skia-flutter-autoroll
fee95ec156 Roll Skia from 455e580b9c78 to c505bdca9d60 (1 revision) (flutter/engine#30852) 2022-01-13 14:10:05 -08:00
Konstantin Scheglov
653163cbf8 Remove unused field initializing formal parameters. (flutter/engine#30822) 2022-01-13 13:24:12 -08:00
skia-flutter-autoroll
09a228de08 Roll Skia from 759bc62a06d2 to 455e580b9c78 (2 revisions) (flutter/engine#30849) 2022-01-13 12:50:10 -08:00
Camille Simon
6e22c1fb87 Remove usages of deprecated setSystemUiVisibility() (flutter/engine#29493) 2022-01-13 12:40:10 -08:00
skia-flutter-autoroll
19ce763f74 Roll Skia from b21c4af0f670 to 759bc62a06d2 (3 revisions) (flutter/engine#30848) 2022-01-13 11:30:10 -08:00
Alexander Biggs
116fe9190a [fuchsia] Switch from core-jit to core snapshots. (flutter/engine#30744) 2022-01-13 11:05:33 -08:00
ColdPaleLight
03e2fe4a87 Only creates 'onscreen_surface_' when it's not available in 'AndroidSurfaceGL::CreateSnapshotSurface' (flutter/engine#30590)
* Only creates 'onscreen_surface_' when it's not available in 'AndroidSurfaceGL::CreatePbufferSurface'

* Rename the function and add some unit tests

* Update android_surface_gl.h

Co-authored-by: Dan Field <dfield@gmail.com>
2022-01-13 10:17:01 -08:00
skia-flutter-autoroll
9ab859182e Roll Skia from 106a57b5ac3a to b21c4af0f670 (4 revisions) (flutter/engine#30847) 2022-01-13 10:10:03 -08:00
ColdPaleLight
af5e4cf7f4 Add a trace to GpuSurfaceMetal around canvas flushing (flutter/engine#30667) 2022-01-13 09:31:42 -08:00
Alexander Aprelev
b6176f8901 Remove use of '--enable-isolate-groups' dart vm flag. (flutter/engine#30839)
The flag was removed after isolate groups were enabled by default.

Fixes https://github.com/flutter/flutter/issues/95331
2022-01-13 09:11:45 -08:00
skia-flutter-autoroll
9586f13b6d Roll Skia from a379b7d4a3d4 to 106a57b5ac3a (4 revisions) (flutter/engine#30846) 2022-01-13 08:50:03 -08:00
skia-flutter-autoroll
c669ba9021 Roll Skia from e92e5f982fcd to a379b7d4a3d4 (1 revision) (flutter/engine#30843) 2022-01-13 03:55:12 -08:00
skia-flutter-autoroll
3f61a2f268 Roll Skia from 0aad22f5686a to e92e5f982fcd (1 revision) (flutter/engine#30837) 2022-01-12 22:25:03 -08:00
Darren Chan
84aebe8bb6 Roll Fuchsia Linux SDK from DS-3oCidC... to 35I2K_Bou... (flutter/engine#30829)
* Roll Fuchsia Linux SDK from DS-3oCidC... to 35I2K_Bou...

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-linux-sdk-flutter-engine
Please CC kaushikiska@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

* Use zircon/rights.h instead of zx/cpp/fidl.h.

This helps us avoid namespace clashes, unblocking the SDK roll.

Co-authored-by: skia-flutter-autoroll <skia-flutter-autoroll@skia.org>
2022-01-12 19:53:59 -05:00
ColdPaleLight
ca35fae4bd Remove obsolete 'PlatformView::size_' member variable (flutter/engine#30812) 2022-01-12 16:35:09 -08:00
skia-flutter-autoroll
2c8c6b49dc Roll Skia from 00f71133a81e to db1d93f3b43d (3 revisions) (flutter/engine#30828) 2022-01-12 16:10:06 -08:00
Tong Mu
400ee783e3 [Win32, Keyboard] Migrate FlutterWindowWin32 keyboard tests to keyboard_win32_unittests (flutter/engine#30808)
* Until AltLeft

* Alt right

* Meta keys

* Remove tests

* Format
2022-01-12 15:10:23 -08:00
skia-flutter-autoroll
4f8fbb365f Roll Skia from 4ec5259b90ee to 00f71133a81e (1 revision) (flutter/engine#30824) 2022-01-12 14:50:10 -08:00
skia-flutter-autoroll
e01e1f5b1b Roll Skia from 04e74196b022 to 4ec5259b90ee (3 revisions) (flutter/engine#30820) 2022-01-12 13:30:10 -08:00
skia-flutter-autoroll
01507b6c74 Roll Skia from 44c00ae64a4e to 04e74196b022 (1 revision) (flutter/engine#30819) 2022-01-12 12:10:09 -08:00
skia-flutter-autoroll
e1f4788fac Roll Skia from 704007f5edb1 to 44c00ae64a4e (2 revisions) (flutter/engine#30815) 2022-01-12 10:50:10 -08:00
ColdPaleLight
fdcc6befe9 Use the correct Settings in Engine::Spawn (flutter/engine#30741)
* Use the correct Settings in Engine::Spawn

* Add unit tests
2022-01-12 10:31:28 -08:00
Chris Bracken
9bca9234dc Win32: Fix Korean text input (flutter/engine#30805)
Fixes an issue with Korean IMEs wherein a text input state update may be
sent to the framework that misleads the framework into assuming that IME
composing has ended.

When inputting Korean text, characters are built up keystroke by
keystroke until the point that either:
* the user presses space/enter to terminate composing and commit the
  character, or;
* the user presses a key such that the character currently being
  composed cannot be modified further, and the IME determines that the
  user has begun composing the next character.

The following is an example sequence of events for the latter case:

1. User presses ㅂ. GCS_COMPSTR event received with ㅂ. Embedder sends
   state update to framework.
2. User presses ㅏ. GCS_COMPSTR event received with 바. Embedder sends
   state update to framework.
3. User presses ㄴ. GCS_COMPSTR event received with 반. Embedder sends
   state update to framework.
4. User presses ㅏ. At this point, the current character being composed
   (반) cannot be modified in a meaningful way, and the IME determines
   that the user is typing 바 followed by 나. GCS_RESULTSTR event
   received with 바, immediately followed by GCS_COMPSTR event with 나.

In step 4, we previously sent two events to the framework, one
immediately after the other:
* GCS_RESULTSTR triggers the text input model to commit the current
  composing region to the string under edit. This causes the composing
  region to collapse to an empty range.
* GCS_COMPSTR triggers the text input model to insert the new composing
  character and set the composing region to that character.

Conceptually, this is an atomic operation. The fourth keystroke causes
the 반 character to be broken into two (바 and ㄴ) and the latter to be
modified to 나. From the user's point of view, as well as from the IME's
point of view, the user has NOT stopped composing, and the composing
region has simply moved on to the next character.

Flutter has no concept of whether the user is composing or not other
that whether a non-empty composing region exists. As such, sending a
state update after the GCS_RESULTSTR event misleads the framework into
believing that composing has ended. This triggers a serious bug:

Text fields with input formatters applied do not perform input
formatting updates while composing is active; instead they wait until
composing has ended to apply any formatting. The previous behaviour
would thus trigger input formatters to be applied each time the user
input caused a new character to be input. This has the add-on negative
effect that once formatting has been applied, it sends an update back to
the embedder so that the native OS text input state can be updated.
However, since the GCS_RESULTSTR event is _immediately_ followed by a
GCS_COMPSTR, the state has changed in the meantime, and the embedder is
left processing an update (the intermediate state sent after the
GCS_RESULTSTR) which is now out of date (i.e. missing the new state from
the GCS_COMPSTR event).

Since GCS_RESULTR events are always immediately followed by a subsequent
GCS_COMPSTR (in the case where composing continues) or a
WM_IME_ENDCOMPOSITION (in the case where composing is finished), and
because the event handlers for both of those send updated state to the
framework, this change eliminates sending the (intermediate) state in
response to GCS_COMPSTR events.

Issue: https://github.com/flutter/flutter/issues/96209 (full fix)
Issue: https://github.com/flutter/flutter/issues/88645 (partial fix)
2022-01-12 10:00:58 -08:00
gaaclarke
1724b4f192 Reland: iOS Background Platform Channels (#29665) (flutter/engine#30697)
* iOS Background Platform Channels (#29665)

* added test that passes before this change, and fails after it

* started supporting backwards compatible usage of setting handlers
2022-01-12 09:57:29 -08:00
skia-flutter-autoroll
27b439ff47 Roll Skia from 479b02bf2df5 to 704007f5edb1 (1 revision) (flutter/engine#30814) 2022-01-12 09:30:10 -08:00
skia-flutter-autoroll
4f5959bee4 Roll Skia from 0e845dc8b05c to 479b02bf2df5 (1 revision) (flutter/engine#30813) 2022-01-12 08:05:12 -08:00
Matej Knopp
59414a9cd2 Only provide frame damage to rasterizer if partial repaint is enabled (flutter/engine#30704) 2022-01-12 15:19:01 +01:00
skia-flutter-autoroll
a38742c3c9 Roll Skia from b410a6b5ba5e to 0e845dc8b05c (1 revision) (flutter/engine#30811) 2022-01-11 23:35:11 -08:00
skia-flutter-autoroll
48f5530920 Roll Skia from 30fdea3d8fd5 to b410a6b5ba5e (1 revision) (flutter/engine#30809) 2022-01-11 22:15:04 -08:00
b-luk
12675e3121 Add 'keyCode' field to eventData map created from html keyboard events. (flutter/engine#30801) 2022-01-11 12:35:10 -08:00
skia-flutter-autoroll
4049453604 Roll Skia from 345587df72ae to 30fdea3d8fd5 (2 revisions) (flutter/engine#30802) 2022-01-11 11:35:11 -08:00
Chris Yang
a50ebf3955 Variable Refresh Rate Display (flutter/engine#30223) 2022-01-11 10:55:10 -08:00
ColdPaleLight
06addee8ac Remove unused setPersistentIsolateData function (flutter/engine#30795) 2022-01-11 10:25:10 -08:00
skia-flutter-autoroll
17aaf64c09 Roll Skia from 41e994f735d9 to 345587df72ae (3 revisions) (flutter/engine#30800) 2022-01-11 10:15:11 -08:00
ColdPaleLight
975d330db0 Implemented library uri support for FlutterFragmentActivities (flutter/engine#30790) 2022-01-11 09:33:17 -08:00
Zachary Anderson
f4b1557fa1 Revert "Roll Fuchsia Linux SDK from DS-3oCidC... to 3-zk7OPWY... (#30792)" (flutter/engine#30798)
This reverts commit a1172c33dc52c66742e83e5d2fd5f8a2776b3713.
2022-01-11 08:46:34 -08:00
skia-flutter-autoroll
a3b6e5ac7f Roll Skia from 7a14f783bda3 to 41e994f735d9 (2 revisions) (flutter/engine#30793) 2022-01-11 08:35:11 -08:00
skia-flutter-autoroll
a1172c33dc Roll Fuchsia Linux SDK from DS-3oCidC... to 3-zk7OPWY... (flutter/engine#30792) 2022-01-11 08:15:11 -08:00
skia-flutter-autoroll
826fc4815d Roll Skia from a6364728f638 to 7a14f783bda3 (1 revision) (flutter/engine#30789) 2022-01-11 06:25:11 -08:00
skia-flutter-autoroll
510c410db7 Roll Skia from 92d21e22434e to a6364728f638 (1 revision) (flutter/engine#30785) 2022-01-10 23:50:11 -08:00
skia-flutter-autoroll
68962ec0db Roll Skia from 8a85ab0d96a1 to 92d21e22434e (1 revision) (flutter/engine#30784) 2022-01-10 22:30:06 -08:00
skia-flutter-autoroll
b379c567e6 Roll Skia from 55b4dc3f7a1c to 8a85ab0d96a1 (1 revision) (flutter/engine#30777) 2022-01-10 16:25:07 -08:00
skia-flutter-autoroll
112322f345 Roll Skia from 3e1354a592bc to 55b4dc3f7a1c (1 revision) (flutter/engine#30773) 2022-01-10 14:40:09 -08:00
gaaclarke
379651ad4f Implemented library uri support for FlutterFragments and FlutterActivities (flutter/engine#30726)
* Implemented library uri support for FlutterFragments and FlutterActivities.

* added docstrings

* emmanuel feedback
2022-01-10 14:21:21 -08:00
skia-flutter-autoroll
c8c6c21b5b Roll Skia from 0056f3f006de to 3e1354a592bc (3 revisions) (flutter/engine#30771) 2022-01-10 13:20:10 -08:00
eggfly
ea4b23242b [android] Remove the FlutterView casting, add a @NonNull and fix code style (flutter/engine#30734) 2022-01-10 12:50:10 -08:00
Emmanuel Garcia
73aac59a40 Add missing dependencies to the background image app (flutter/engine#30769) 2022-01-10 12:30:09 -08:00
Emmanuel Garcia
d81c472076 Remove glitch when displaying platform views (flutter/engine#30724) 2022-01-10 11:25:06 -08:00
Mouad Debbar
f56d074001 [web] Remove EngineParagraph and ParagraphGeometricStyle (flutter/engine#30766) 2022-01-10 10:45:11 -08:00