6267 Commits

Author SHA1 Message Date
Jason Simmons
052d65cc14 Clear the Flow raster cache when a GrContext is destroyed
After an application is suspended and the GrContext associated with the
Flutter view is destroyed, the raster cache still contains images tied
to the defunct context.  The SkyShell process will crash if these images
are used after the application resumes.
2016-02-01 10:36:09 -08:00
Adam Barth
20b8d0bdc8 Merge pull request #2328 from abarth/flow_mozart
Move Flow layers to //flow/layers
2016-01-31 01:27:32 -08:00
Adam Barth
c3c5af1fbe Move Flow layers to //flow/layers 2016-01-30 23:35:22 -08:00
Adam Barth
7bce54b79e Fix build 2016-01-30 13:42:35 -08:00
Adam Barth
62b1326390 Rev pub packages 2016-01-30 13:33:49 -08:00
Adam Barth
0a7fae7c0a Merge pull request #2295 from abarth/ios_avoid_keyboard
Teach flutter how to avoid the iOS keyboard
2016-01-30 13:32:13 -08:00
Ian Hickson
69632dda9f Merge pull request #2325 from Hixie/semantics-to-java
Support multiple Semantics listeners
2016-01-30 12:43:29 -08:00
Adam Barth
07ec7da5ee Merge pull request #2327 from abarth/position_for_point
Add Paragraph#getPositionForOffset
2016-01-30 09:27:57 -08:00
Adam Barth
21d7575716 Add Paragraph#getPositionForOffset
We'll use this function to position the caret when the user taps a text
input control.

Very little of the code in this patch is actually new. Most of it is
restoring code that we previously removed from the engine. I've made
some small changes to the restored code to handle the lack of a DOM. The
only major change is to RenderObject::createPositionWithAffinity, which
now just returns the values it captures instead of trying to compute a
DOM position.

TextAffinity and TextPosition are lifted from package:flutter. Once this
patch rolls into package:flutter, I'll remove the declarations there.
2016-01-29 23:07:51 -08:00
Adam Barth
51d68b8f91 Merge pull request #2326 from abarth/box_direction
Add the TextDirection to getRectsForRange
2016-01-29 21:25:42 -08:00
Adam Barth
88add25212 Add the TextDirection to getRectsForRange
We need this in order to draw the cursor correctly.

Fixes #1491
2016-01-29 21:12:45 -08:00
Chinmay Garde
40f3b5e429 Merge pull request #2324 from chinmaygarde/master
Extract system sound and vibration functionality out of activity.mojom
2016-01-29 17:14:14 -08:00
Chinmay Garde
6a099fa716 Extract system sound and vibration functionality out of activity.mojom 2016-01-29 17:13:47 -08:00
Hixie
ea12469ab2 Support multiple Semantics listeners 2016-01-29 17:09:58 -08:00
Chinmay Garde
b6f43b7a54 Merge pull request #2315 from chinmaygarde/master
Initial take on a potential activity.mojom replacement
2016-01-29 16:53:12 -08:00
Chinmay Garde
8ef1e51ca8 Initial take on a potential activity.mojom replacement 2016-01-29 16:52:34 -08:00
Jason Simmons
38066f62a1 Merge pull request #2323 from jason-simmons/dart_sdk_113
Rollback third_party/dart-sdk to 1.13.0
2016-01-29 15:24:48 -08:00
Jason Simmons
f0c260eb4f Rollback third_party/dart-sdk to 1.13.0 2016-01-29 15:04:14 -08:00
Adam Barth
4fe584c757 Revert "Update the DartVM"
This reverts commit 3e7cf0b74e5b49ac7a92fa34e4c4117ea871b3da.
2016-01-29 13:38:32 -08:00
Adam Barth
d4eb4e280f Rev pub packages 2016-01-29 12:44:02 -08:00
Adam Barth
640ce8134f Merge pull request #2322 from abarth/update_mojo_sdk
Update mojo_sdk
2016-01-29 12:42:57 -08:00
Adam Barth
f1ef44ce60 Update mojo_sdk 2016-01-29 12:42:00 -08:00
Adam Barth
bac2969561 Merge pull request #2321 from abarth/roll_dart
Update the DartVM
2016-01-29 12:41:03 -08:00
Adam Barth
3e7cf0b74e Update the DartVM 2016-01-29 12:39:29 -08:00
Adam Barth
c8bc30ce2f Merge pull request #2320 from abarth/update_dart
Update Dart SDK to 1.14
2016-01-29 12:14:02 -08:00
Adam Barth
5ec5e9b129 Update Dart SDK to 1.14 2016-01-29 12:13:39 -08:00
Adam Barth
340c6e7d13 Merge pull request #2319 from abarth/text_box
Introduce TextBox
2016-01-29 12:08:46 -08:00
Adam Barth
153c93e8db Introduce TextBox
TextBox is a rect that understands TextDirection.
2016-01-29 12:05:16 -08:00
Adam Barth
790ac67bec Merge pull request #2318 from abarth/text_rect
Add getRectsForRange to Paragraph
2016-01-29 09:29:48 -08:00
Adam Barth
9b6698f162 Add getRectsForRange to Paragraph
We can use getRectsForRange to implement selection painting in the
framework.
2016-01-29 01:39:47 -08:00
Adam Barth
3327046f87 Fix gn build error
We need to specify this variable now that we're sharing base with
mojo.git.
2016-01-28 23:49:06 -08:00
Jason Simmons
f5f1724bb0 Merge pull request #2316 from jason-simmons/view_reset_animator
Reset the animator before assigning a new vsync provider
2016-01-28 17:14:58 -08:00
Adam Barth
d25f3650d8 Merge pull request #2317 from abarth/deps_base
Deps base
2016-01-28 17:05:50 -08:00
Adam Barth
2a50f5727f Move base to an external repository that will pull in via DEPS
This change lets us share base with mojo.git.
2016-01-28 17:04:23 -08:00
Jason Simmons
bb50a35434 Reset the animator before assigning a new vsync provider
When the engine starts a new version of the Dart application, the animator may
have pending callbacks and other state related to the previous run of the app.
This state must be cleared before the new vsync provider is assigned.
2016-01-28 16:41:12 -08:00
Collin Jackson
e49d611b53 Merge pull request #2314 from collinjackson/chokes
fixes #1461 oknet chokes on binary charsets
2016-01-28 16:40:00 -08:00
Adam Barth
7e7df7fd24 Merge pull request #2310 from abarth/mozart
Port flutter.mojo to Mozart
2016-01-28 16:13:01 -08:00
Collin Jackson
57b1785cd0 fixes #1461 oknet chokes on binary charsets 2016-01-28 16:11:01 -08:00
Adam Barth
215b19e3fc Add the ability to create child scenes
This patch contains Dart bindings for adding a child scene when running in
Mozart. The child scene is currently ignored, but a later patch will actually
incoporate it into the tree.
2016-01-28 16:08:42 -08:00
Adam Barth
411c6bfa4b Port flutter.mojo to Mozart
Everything should work except the keyboard.
2016-01-28 16:04:19 -08:00
Adam Barth
4d246f47d2 Update //mojo/skia to 68d50d71c802b3f56aa535d9403e20804b11ef52 2016-01-28 16:02:11 -08:00
Adam Barth
e7119fb4fa Update //mojo/gpu to 68d50d71c802b3f56aa535d9403e20804b11ef52 2016-01-28 16:02:11 -08:00
Adam Barth
707a18cde6 Teach flutter how to avoid the iOS keyboard
In the future, we'll probably want to plumb through the keyboard animation
parameters, but for now we match the behavior on Android where we move the
widgets out of the way of the keyboard without animation.
2016-01-28 15:29:24 -08:00
Jason Simmons
8d7a4bb3f8 Merge pull request #2313 from jason-simmons/view_reset_isolate
Create a new pipe to the ServiceProvider when PlatformViewAndroid sta…
2016-01-28 12:48:16 -08:00
Adam Barth
9ee9721b1b Revert "Update DartVM"
This reverts commit ca0342acd20bf2beeeb02bf147fe0071ce5ada65.
2016-01-28 11:19:32 -08:00
Jason Simmons
35e3e94e25 Create a new pipe to the ServiceProvider when PlatformViewAndroid starts a Dart isolate
Previously PlatformViewAndroid would create a pipe and hand it off to the
SkyEngine, which would give it to the isolate's DartState.  If a second
isolate is created, the SkyEngine would no longer hold a valid proxy to a
ServicesProvider, and the new isolate's Dart code can not obtain the
servicesProvidedByEmbedder.
2016-01-28 11:13:46 -08:00
Chinmay Garde
c8abee7bed Merge pull request #2312 from chinmaygarde/master
iOS: Respect view controller visibility notifications and wire in Engine::OnAppLifecycleStateChanged
2016-01-28 11:07:02 -08:00
Chinmay Garde
611ea9cc31 iOS: Respect view controller visibility notifications and wire in Engine::OnAppLifecycleStateChanged 2016-01-28 11:00:29 -08:00
Chinmay Garde
0f0f43cdb0 Merge pull request #2311 from chinmaygarde/master
iOS: Fix sound pool stream selection
2016-01-28 10:58:46 -08:00
Collin Jackson
a2738aff19 rev engine 2016-01-28 13:46:59 -05:00