495 Commits

Author SHA1 Message Date
Matt Perry
f5c907d663 Fix bug with text input where the cursor would render before a single (#2828)
trailing space rather than after.

We were including an empty rectangle in the list of TextBoxes for that
range.

BUG=https://github.com/flutter/flutter/issues/4911
2016-07-26 18:13:44 -04:00
Ian Hickson
e99cbb038e Tool for managing licenses. (#2822) 2016-07-26 13:10:57 -07:00
Chinmay Garde
b34d69becb Disable chattly log in SimpleFontData and stop reading VDMX metrics for fonts on iOS/OSX. (#2824) 2016-07-26 12:51:08 -07:00
Adam Barth
7c87227702 Update Skia (#2825) 2016-07-26 12:33:37 -07:00
Chinmay Garde
b164edaea8 Revert "Only suppress the sampling profiler on Mac/iOS when the engine is in …" (#2814) 2016-07-21 14:18:05 -07:00
Chinmay Garde
5ed6b6ec26 Minor update to the name of the argument used to find the fallback font. (#2808) 2016-07-20 11:49:37 -07:00
Jason Simmons
6e92a5e34d Remove unused code in FontCacheSkia (#2805) 2016-07-19 11:02:53 -07:00
Ryan Macnak
3a4e0a0c80 Only suppress the sampling profiler on Mac/iOS when the engine is in debug mode. Makes the profiler available when using 'flutter run --profile' for iOS. (#2804)
Don't pass the --background-compilation vm flag as it has been enabled by default for quite awhile now.
2016-07-19 10:59:49 -07:00
Chinmay Garde
f738deb0ab Account for surrogate pairs when constructing the string used to pass (#2803)
to CoreText for font fallback selection.
2016-07-18 15:02:40 -07:00
Chinmay Garde
c876974381 Attempt font fallback resolution using CoreText on iOS. (#2800) 2016-07-18 14:58:23 -07:00
John McCutchan
0b1986a5c1 Fix DevFS on Android devices (#2801) 2016-07-18 12:16:57 -07:00
John McCutchan
b0d50e4860 Fix service isolate startup (#2788) 2016-07-11 10:47:26 -07:00
John McCutchan
a757125bae Avoid re-entering the message loop while reloading. Fixes on stack reloading in Flutter embedder. (#2775) 2016-06-30 07:44:54 -07:00
Chinmay Garde
78af411d47 Fix leaky descriptor in dart_init and use the correct macro to handle EINTRs on close syscall wrappers. (#2765)
* Use IGNORE_EINTR instead of HANDLE_EINTR when using the `close` syscall wrapper.
* Don't leak the file descriptor used to memory map Dart related artifacts.
2016-06-17 12:04:30 -07:00
Adam Barth
a89a5c91c4 The gen_snapshot tool requires this field to be present (#2762) 2016-06-16 09:25:15 -07:00
Adam Barth
211f2d4afb Revert base roll and its fallout.
Updating base turns out to be more complicated than I thought.

This reverts commit daa822aae70a8ab860ed8f085cdadf6987c28d03.
This reverts commit c38428c7b98951e2cccf6b38881eabd87786da49.
This reverts commit 4b73a8a0486d45081c5dde4e2c51c32d1376250b.
2016-06-15 17:30:27 -07:00
Adam Barth
4b73a8a048 Roll base (#2761)
Update base, gn, and their clients.
2016-06-15 14:52:53 -07:00
Adam Barth
f13875ca92 Move Canvas into //flutter/lib/ui (#2754)
This patch moves the remainder of painting and compositing into their
new home (and updates their style to match Google C++ Style).
2016-06-14 23:14:14 -07:00
Adam Barth
9bc546abef Remove Dart_GetField from Paint marshalling (#2753)
This should make almost every Canvas call significantly faster.
2016-06-14 21:11:11 -07:00
Adam Barth
8e475a9570 Move most of //sky/engine/core/painting to //flutter/lib/ui/painting (#2752)
These parts don't depend on engine anymore. Also reformat them to match Google
C++ style.
2016-06-13 17:23:34 -07:00
Adam Barth
46b73701f8 Start moving dart:ui into //flutter/lib/ui (#2750)
This patch moves the geometry classes.
2016-06-13 15:30:33 -07:00
Adam Barth
864beb8d26 Fix build 2016-06-13 12:45:11 -07:00
Adam Barth
c11bf6e6f8 Fix ASSERT in weather demo (#2749)
Because we're not using array buffers to marshall the vertex data for
drawVertices and drawAtlas, we need to process the paint argument first so that
we don't call Dart_GetField after creating a view into an array buffer.
2016-06-13 12:32:20 -07:00
Adam Barth
5f14c77402 Implement Canvas.drawPoints (#2748)
* Implement Canvas.drawPoints

This enables drawing polygons faster than using Paths.

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

* Implement more Path functions

Path.fillType
Path.addPolygon
Path.addPath
Path.extendWithPath
Path.transform

Fixes https://github.com/flutter/flutter/issues/252
2016-06-13 11:42:01 -07:00
Adam Barth
f7405a3705 Remove more calls to Dart_GetField (#2747)
The only remaining calls to Dart_GetField are for Paint, which will be
handled in a later patch.
2016-06-12 00:18:16 -07:00
Adam Barth
12fab2f28a Move dart:jni to //flutter/lib/jni (#2744)
This patch disentangles dart:jni from //sky/engine and moves it into
//flutter/lib/jni. Eventually dart:ui will move into a peer directory.
2016-06-11 09:15:39 -07:00
Adam Barth
fabd183e6f Remove more calls to Dart_GetField (#2745)
This patch removes a number of the classes that were generating
Dart_GetField calls, particularly related to drawAtlas and drawVertices.
The functions that used these classes now use primatives instead, which
is more efficient.
2016-06-11 09:15:26 -07:00
Adam Barth
b6d8572687 Remove dead code (#2743)
We don't use this code anymore.
2016-06-10 22:45:26 -07:00
Adam Barth
633d674c48 Move tonic to //flutter/tonic (#2742)
Now that tonic doesn't depend on anything in //sky/engine anymore, we
can move the code to a location where its dependencies are clearer.
2016-06-10 22:36:38 -07:00
Adam Barth
aa4ee8e272 Cleanup dependencies of core/painting (#2741)
This patch removes spurious dependences on other parts of the engine.
2016-06-10 22:29:53 -07:00
Adam Barth
584d3928ce Remove dependency from tonic to wtf (#2740)
This patch paves the way to untangling a large amount of code from the engine.
2016-06-10 16:32:53 -07:00
Adam Barth
c6f77f173e Remove Canvas.getTotalMatrix (#2739)
This is the only readback from the canvas API. Having a write-only interface
will unlock future optimizations. This function has no clients.

Fixes #4254
2016-06-10 15:48:10 -07:00
Todd Volkert
d289a3180c Rename app.so -> app.dylib (#2738) 2016-06-10 15:00:00 -07:00
Ian Hickson
76ac06bbdd dart:ui painting docs fixes (#2724)
Fix comments from https://github.com/flutter/engine/pull/2721
2016-05-31 09:43:43 -07:00
Ian Hickson
579dcf9d67 Flesh our dart:ui graphics documentation. (#2721)
I gave up before I was completely done.

Items still remaining include:

 * drawVertices
 * drawAtlas
 * TransferMode.*
 * VertexMode

Also:
 * Add a convenience constructor to RSTransform
 * Add some convenience methods to Rect and Size
 * Make some defaults more explicit
2016-05-27 17:14:49 -07:00
Jason Simmons
7a49b37a74 Implement a protocol for discovering active Flutter instances on Android (#2720)
Tools can send a broadcast intent that will cause Flutter processes to
write their names and observatory ports to the log in JSON format.
2016-05-27 17:11:34 -07:00
Adam Barth
e1dacd833f Switch sdk_xcode_harness to use flutter build aot (#2706)
Switch sdk_xcode_harness to use flutter build aot

This patch moves a bunch of complexity out of FlutterApplication.xcodeproj and
into `flutter build aot`, which will make it easier for developers to create
their own FlutterApplication.xcodeproj.
2016-05-24 16:22:33 -07:00
John McCutchan
ba267f5c3e Pass the dart io entry points to gen_snapshot so that we don't tree shake away the code (#2705) 2016-05-24 11:11:17 -07:00
Adam Barth
608e34dbf6 Fix build 2016-05-23 14:36:08 -07:00
Adam Barth
a126207c6e Update Skia (#2704) 2016-05-23 13:48:18 -07:00
Ryan Macnak
1b936794aa Use a duration event for "FlutterEngineMainEnter" so about:tracing will use it as time 0. (#2703) 2016-05-19 16:14:07 -07:00
Chinmay Garde
ef8c8ca497 Don't include the observatory data blob in the binary in product modes. (#2686) 2016-05-13 21:34:15 -07:00
Chinmay Garde
053630dc09 Use the i386 toolchain on the Mac host when targetting Android AOTC. (#2685) 2016-05-13 14:26:56 -07:00
Matt Perry
ce4bb9e16d Fix potential NULL dereference in Paragraph.getWordBoundary. (#2679)
Can happen when calling getWordBoundary on an empty Paragraph.
2016-05-12 15:30:29 -04:00
Matt Perry
befe39324e Expose a Paragraph.getWordBoundary method to dart. (#2675)
* Expose a Paragraph.getWordBoundary method to dart.

Used by text selection to select a word.
2016-05-11 14:53:51 -04:00
Jason Simmons
678409b8a1 Revert "Plumb dart timeline events to mojo:tracing. (#2595)" (#2670)
This needs to be updated for the latest Mojo APIs
2016-05-10 12:05:17 -07:00
Przemysław Pietrzkiewicz
ef589f99bc Plumb dart timeline events to mojo:tracing. (#2595)
This patch:

 - makes dart traces (coming from the VM and the timeline API)
   available to mojo:tracing
 - adds --vm-complete-timeline parameter, which makes the Dart VM enable all
   categories of timeline traces from the beginning, allowing to do startup
   tracing

This is based on the equivalent support in dart content handler.

Fixes https://github.com/flutter/flutter/issues/3162.
2016-05-10 11:08:36 -07:00
Chinmay Garde
7b3ca935d5 In case the Dart VM cannot be initialized, log the reason before terminating the process. (#2668) 2016-05-09 17:30:55 -07:00
Adam Barth
57c02d4495 Decode images on a background thread (#2665)
We were all set up for this but for some reason we were actually decoding the
images on the main thread.

Fixes #3803
2016-05-09 12:54:52 -07:00
Chinmay Garde
d52d3a4448 Wire up the interpreter on iOS devices. (#2648) 2016-05-06 15:37:59 -07:00