56 Commits

Author SHA1 Message Date
Adam Barth
21f6aa5270 Composite child views in proper paint order (#3243)
We push a bit up the tree during preroll to learn whether there system
composited layers below each layer. During update scene, we squash down
to paint tasks, which we execute after publishing the new scene.
2016-11-18 12:54:54 -08:00
Chinmay Garde
036bc0d356 Update Skia and get using its BUILD.gn instead of maintaining own own copy. (#3233) 2016-11-17 12:36:16 -08:00
Adam Barth
cea5ed2b9b Update pointer change constants in Java (#3231)
I updated the C++ and Dart sides but forgot to update the Java side.

Fixes https://github.com/flutter/flutter/issues/6891
2016-11-16 10:13:28 -08:00
Adam Barth
d1bc4c4850 Add support for hover pointer events (#3227)
These are implemented on macOS and Fuchsia.
2016-11-15 20:18:22 -08:00
Jason Simmons
55d50b2ada Show clearer logs during startup if OpenGL is unavailable (#3207) 2016-11-07 17:01:42 -08:00
Jason Simmons
5103e40b95 Set the IME action label to null if the label is null in the configuration JSON object (#3199)
(JSONObject.getString() will return the string "null" for a JSON null value)

Fixes https://github.com/flutter/flutter/issues/6643
2016-11-03 12:08:15 -07:00
Jason Simmons
e54b0e286b Roll Dart (#3194)
Update DartServiceIsolate/FlutterView because VMServiceIO_NotifyServerState
now provides a URI for the observatory
2016-11-01 17:11:56 -07:00
Chinmay Garde
b3ca46b363 Initialize AndroidSurfaceGL and its associated resource context before ANativeWindow acquisition. (#3193)
* Initialize AndroidSurfaceGL and its associated resource context before ANativeWindow acquisition.

This allows us to create the IO thread context way earlier and service load requests on the same. Before this patch, early lifecycle loads would use the default Skia texture loader instead of the Async texture loader we provide.

Fixes https://github.com/flutter/flutter/issues/6581

* Don't destroy surface_gl_ PlatformViewAndroid::ReleaseSurface.
2016-11-01 15:02:56 -07:00
Jason Simmons
801addcfaf Fix warning about converting a null snapshot override path (#3190) 2016-11-01 14:38:27 -07:00
Adam Barth
63e71803de Unlink from mojo (#3187)
After this patch, we no longer link with Mojo. We still use some gn definitions
from //mojo to create Dart packages.
2016-10-28 15:01:07 -07:00
Adam Barth
1bc79ded38 Number keyboard does not work on Android (#3185)
We had a typo in our decoding logic.

Fixes https://github.com/flutter/flutter/issues/6564
2016-10-28 12:26:56 -07:00
Adam Barth
4b8c9051e5 Remove last mojom interface (#3184)
We no longer use mojom to transport messages. We still use the Mojo EDK
to spin the event loop, however.
2016-10-28 11:46:57 -07:00
Adam Barth
9eaedb0677 Migrate ViewportMetrics away from Mojo (#3180)
Now we just pass the data directly.
2016-10-27 13:12:55 -07:00
Adam Barth
7e5d63513a Move lifecycle, navigation, and localization to platform messages (#3172)
Previously, these signals were sent over Mojo. Now we send them through
platform messages.
2016-10-25 15:51:27 -07:00
Adam Barth
d4f67e6b75 Migrate vsync away from Mojo services (#3169)
Instead, just use JNI and Objective-C directly.
2016-10-24 16:14:37 -07:00
Adam Barth
b1c0ea79ca Switch engine over to platform messages (#3153)
This patch removes the use of the host messages mojom and switch all
message routing over to platform messages.
2016-10-19 22:36:00 -07:00
Adam Barth
f1b740c8c2 Remove editing.mojom (#3152)
Clients have been migrated to the TextInputPlugin.
2016-10-19 22:12:19 -07:00
Adam Barth
ae5d521e54 Switch from char to uint8_t to represent memory (#3147)
Previously we had a mix of the two.
2016-10-19 16:49:36 -07:00
Jason Simmons
4e68860e56 Do not intercept all Android key events (#3149) 2016-10-19 16:46:55 -07:00
Jason Simmons
f4fe2b610e Do not use TouchExplorationStateChangeListener if that API is unavailable (#3148) 2016-10-19 14:59:22 -07:00
Adam Barth
525c947ece Fix typo 2016-10-19 13:53:24 -07:00
Adam Barth
8449f7788f Implement TextInputPlugin on Android (#3144)
This plugin will eventually replace keyboard.mojom.
2016-10-19 12:23:52 -07:00
Adam Barth
808009d411 Remove clipboard mojo service (#3143)
All the clients have migrated to platform messages.
2016-10-18 10:04:36 -07:00
Adam Barth
be9761268a All the clients have migrated to platform messages (#3142) 2016-10-18 00:57:23 -07:00
Adam Barth
269fd75d56 Route key events through platform messages (#3141)
This will replace raw_keyboard.mojom.
2016-10-17 16:55:42 -07:00
Adam Barth
3bcdaa32b0 Complete routing for Java-to-Dart messages (#3140)
This patch completes the routing for Java-to-Dart platform messages.
2016-10-17 16:47:42 -07:00
Adam Barth
ca6d4fdec8 Add clipboard functionality to platform plugin (#3139)
This will eventually replace the clipboard mojom.
2016-10-17 15:46:47 -07:00
Adam Barth
d999f6c123 Remove Activity service (#3136)
This functionality has been replaced by the PlatformPlugin. Also move the
contents of //flutter/services/common to more sensible homes.
2016-10-14 16:12:01 -07:00
Adam Barth
3bcf58484a Fix build 2016-10-14 16:01:23 -07:00
Adam Barth
82728570b7 Response messages (#3134)
Add plunbing for Host-to-Dart platform messages

We'll use the plumbing in this direction for things like key events.
2016-10-14 15:51:25 -07:00
Adam Barth
1a40ee953a PointerChange.cancel should have a zero index (#3135)
To make the default state all zeros.

Fixes https://github.com/flutter/flutter/issues/6236
2016-10-14 15:46:46 -07:00
Adam Barth
da96a8bddd Add SystemNavigator.pop (#3130)
This method will let us remove the activity service.
2016-10-13 14:39:03 -07:00
Adam Barth
50f1b8d9ca Remove unused services (#3128)
The platform use cases are handled by the PlatformPlugin. The media service and
the sensor service have no clients. If we want to use them, we should create
plugins for them.
2016-10-13 12:14:38 -07:00
Adam Barth
eb25d718b0 Don't start in fullscreen mode on Android (#3129)
Fixes https://github.com/flutter/flutter/issues/6303
2016-10-13 11:10:02 -07:00
Adam Barth
e6631a69ae Complete PlatformPlugin.java (#3123)
After this patch, the PlatformPlugin has all the required functionality on Android.
2016-10-12 14:29:57 -07:00
Adam Barth
ebb1a9f999 Add SystemChrome support to PlatformPlugin.java (#3122) 2016-10-12 14:09:18 -07:00
Adam Barth
e93d2c2755 Add PlatformPlugin.java (#3121)
The PlatformPlugin is the first of the built-in plugins that will replace the
mojom platform services.
2016-10-12 13:27:12 -07:00
Adam Barth
6042580f9e Rewire platform messages to work like semantics (#3118)
After this patch, platform messages now take the same path through the system
that semantics data does (on Android). Support on iOS will be in another patch.
2016-10-11 19:02:04 -07:00
Adam Barth
8e41be8f6f Remove semanitcs.mojom (#3117)
We've cut over to the new semantics interface.
2016-10-11 15:39:08 -07:00
Adam Barth
e8f57e74a1 Improve new semantics backend (#3113)
TalkBack still isn't fully working, but this patch gets us much closer.
2016-10-11 13:27:11 -07:00
Jason Simmons
7d7a9c76b3 Remove obsolete PlatformView::Resize and GetSize methods (#3112) 2016-10-11 11:55:23 -07:00
Jason Simmons
d9d2333686 Do not attach and detach the EGL context on each frame in the rasterizer thread (#3110) 2016-10-11 11:14:07 -07:00
Adam Barth
2dc88cc6a5 Switch backend to consume new semantics API (#3103) 2016-10-11 10:52:48 -07:00
Adam Barth
192bc174c2 Update //lib/ftl (#3108)
This fixes this Fuchsia build, which uses the latest //lib/ftl.
2016-10-07 14:07:09 -07:00
Jason Simmons
362f11f625 Reinstate the trace events for Skia canvas flush and eglSwapBuffers (#3107) 2016-10-07 14:01:22 -07:00
Adam Barth
dec24015d7 Add new platform message transport on Android (#3105)
This transport uses the Dart and JNI APIs directly instead of indirecting
through Mojo.
2016-10-07 12:05:43 -07:00
Adam Barth
881fc5841f Remove failed UIDelegate abstraction (#3106)
We only ever had one UIDelegate. We might as well have people use the Engine
interface directly.
2016-10-06 16:19:05 -07:00
Chinmay Garde
fdf13d720e Make the PlatformView client rendering API agnostic. (#3099) 2016-10-06 15:06:21 -07:00
Jason Simmons
1f15c2b88e Fix an ART warning about deletion of a non-local JNI reference (#3100) 2016-10-06 09:43:30 -07:00
Adam Barth
f97caf271c Expose SemanticsUpdate and SemanticsUpdateBuilder (#3098)
This patch prepares us to switch sending semantics information over mojom to
using dart:ui directly. Currently the recorded information is dropped on the
floor, but that will improve in future patches.
2016-10-05 12:22:03 -07:00