57 Commits

Author SHA1 Message Date
Adam Barth
be5997bd3f Switch engine over to platform messages (flutter/engine#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
8ff061dc92 Switch from char to uint8_t to represent memory (flutter/engine#3147)
Previously we had a mix of the two.
2016-10-19 16:49:36 -07:00
Adam Barth
ac963ad808 Handle non-null terminated strings properly (flutter/engine#3138)
The function we were using to initialize this NSString assumed that our
UTF-8 data was null-terminated, which wasn't a valid assumption.

Fixes https://github.com/flutter/flutter/issues/6359
2016-10-17 14:18:45 -07:00
Adam Barth
2e7a8d13bb Response messages (flutter/engine#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
e583731e22 PointerChange.cancel should have a zero index (flutter/engine#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
e5c4d2f654 Fix crash due to typo (flutter/engine#3132)
I meant to compare these values, not assign them.
2016-10-13 16:03:42 -07:00
Adam Barth
cef37e6728 Use antialiased clips (flutter/engine#3124)
The Skia team tells us that these go faster.
2016-10-12 18:28:10 -07:00
Adam Barth
921f0b9f21 Add PlatformPlugin.java (flutter/engine#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
b420addcbb Rewire platform messages to work like semantics (flutter/engine#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
42b02cda80 Switch backend to consume new semantics API (flutter/engine#3103) 2016-10-11 10:52:48 -07:00
Adam Barth
be2271e05e Add more wiring for new semantics backend (flutter/engine#3111)
Previously the Dart entry points weren't wired up.
2016-10-10 14:51:22 -07:00
Adam Barth
c0aa11d81e Update //lib/ftl (flutter/engine#3108)
This fixes this Fuchsia build, which uses the latest //lib/ftl.
2016-10-07 14:07:09 -07:00
Adam Barth
86501e442b Add new platform message transport on Android (flutter/engine#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
da7b7f72b3 Remove pointer.mojom (flutter/engine#3102)
This patch moves the rest of the clients to use the new PointerData
transport.
2016-10-06 10:59:30 -07:00
Adam Barth
649b958d19 Expose SemanticsUpdate and SemanticsUpdateBuilder (flutter/engine#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
Jeff Brown
82d8a27854 Port Flutter to Mozart. (flutter/engine#3094)
Example: $ mojo:launcher mojo:spinning_square
2016-10-04 12:54:54 -07:00
Adam Barth
f2310a49ff Android should use PointerDataPackets (flutter/engine#3092)
We now use JNI rather than Mojo to transport pointer data from Java to Dart.
Also, fill in a few more of the pointer data fields from information in Java.
2016-10-03 21:02:46 -07:00
Jason Simmons
0394c396a3 Queue CanvasImage texture deletion to the IO thread (flutter/engine#3091)
The UI thread does not have an EGL context, so attempting to delete an
SkImage on that thread will fail to delete the image's texture, resulting
in resource leaks
2016-10-03 16:50:37 -07:00
Adam Barth
a924283c1e lerpDouble return value should be "double" (flutter/engine#3068)
Fixes https://github.com/flutter/flutter/issues/5783
2016-09-29 21:59:59 -07:00
Adam Barth
c61c39546e Stop dispatching pointer packets (flutter/engine#3080)
Long live pointer data packets.
2016-09-29 21:59:44 -07:00
Adam Barth
10c004dcb4 Fix ParagraphStyle toString (flutter/engine#3078)
Previously we got some punctuation wrong.
2016-09-29 17:42:19 -07:00
Adam Barth
056c9adc98 Fix analyze.sh 2016-09-28 17:05:36 -07:00
Jason Simmons
d87a757c4f Revise the paragraph style API to include custom ellipsis strings (flutter/engine#3071) 2016-09-28 15:52:31 -07:00
Adam Barth
2aa9886924 Switch to manually encoded pointer data (flutter/engine#3073)
Rather than using mojom to encode pointer data, we now encode and decode it
manually. A future patch will remove the mojom codepath once the framework is
updated.
2016-09-28 15:50:09 -07:00
Chinmay Garde
a140c6d06e Update buildtools to latest, account for GN updates and use Clang on Android. (flutter/engine#3064) 2016-09-28 11:48:48 -07:00
Jason Simmons
692aabce8f Implement ellipsizing of text in the engine (flutter/engine#3056)
See https://github.com/flutter/flutter/issues/4478
2016-09-26 11:30:11 -07:00
Adam Barth
3a895f71ae A Color.fromRGBO (flutter/engine#3043)
Sometimes it is convenient to construct a color from an opacity rather than an
alpha value.

Fixes https://github.com/flutter/flutter/issues/5205
2016-09-20 14:31:05 -07:00
Adam Barth
b9b73d3110 Remove deprecated Skia enums (flutter/engine#3037)
Apparently Skia would like to remove these enum values.

Fixes https://github.com/flutter/flutter/issues/5912
2016-09-18 21:15:52 -07:00
Adam Barth
140e085e64 Fix bug found by framework test 2016-09-15 12:19:58 -07:00
Adam Barth
5a040b1445 Update DCHECKS 2016-09-15 12:06:53 -07:00
Adam Barth
41099a5147 Fixup updateWindowWindowMtrics types 2016-09-15 11:02:13 -07:00
Adam Barth
45ddf03738 Polish dart:ui API (flutter/engine#3032)
This patch makes three API changes:

 * The dart:ui library now always communicates in physical pixels. The
   framework is responsible for converting to whatever logical coordinate
   system it wishes to use.
 * The textBaselien property is now on TextStyle rather than ParagraphStyle,
   which will let us choose which baseline to use on a per-span basis rather
   than on a per-paragraph basis.
 * This patch also removes the old MojoServices function endpoints.

Fixes https://github.com/flutter/flutter/issues/3779
Fixes https://github.com/flutter/flutter/issues/1360
2016-09-15 10:26:04 -07:00
Adam Barth
a2b853d610 Fix checked mode 2016-09-14 15:10:20 -07:00
John McCutchan
4ea908ee09 Add 'ext.ui.window.scheduleFrame' service protocol extension (flutter/engine#3030) 2016-09-14 11:32:57 -07:00
Ian Hickson
b63abcb0c8 Fix even more problems with ParagraphStyle.toString (flutter/engine#3027)
Also, with the comments.
2016-09-13 23:41:02 -07:00
Ian Hickson
8e3cf29c2f Fix the encoding of TextStyle and ParagraphStyle (flutter/engine#3026)
We were off by one on, uh, everything.
2016-09-13 23:20:20 -07:00
Dragoș Tiselice
ac99851ce8 Added drawArc to Canvas. (flutter/engine#2995)
* Added drawArc to Canvas.

Added a way to call SkCanvas::drawArc from Dart. This method is
optimized for the arc case and should be faster that drawing paths.

* Removed implementation details from docs.

* Added more details to the docs.
2016-09-12 13:41:01 -07:00
Adam Barth
0373f4a3b3 Remove Paragraph stubs (flutter/engine#3002)
We can now use the real thing on Fuchsia.
2016-09-07 22:33:56 -07:00
Adam Barth
2ad422b25f Add asset bundle support on Fuchsia (flutter/engine#3005)
After this patch, Flutter apps on Fuchsia can access their asset
bundles. Unlike other platforms, the asset bundles are stored in memory
rather than in the file system.
2016-09-07 11:17:36 -07:00
Adam Barth
2761d7bcd8 Build sky/engine on fuchsia (flutter/engine#2992) 2016-08-31 21:01:07 -07:00
Adam Barth
cc54935495 Build WTF on Fuchsia (flutter/engine#2948)
Also, clean out some unneeded dependencies from engine/platform.
2016-08-18 16:13:06 -07:00
Adam Barth
c95e22a428 Add stubs for text handling on Fuchsia (flutter/engine#2935)
We don't yet have support for text on Fuchsia. This patch add stub
implementations of Paragraph and ParagraphBuilder so that Flutter apps
that use text don't error out. Instead, the text is 0x0 and invisible.

Also, teach MojoServices not to crash if it hasn't been created by the
time Dart tries to use it.
2016-08-17 09:56:41 -07:00
John McCutchan
837def95ac Fix build (flutter/engine#2931) 2016-08-16 12:33:30 -07:00
John McCutchan
d5ee913a75 Send richer service protocol respones from the Shell (flutter/engine#2929) 2016-08-16 12:16:41 -07:00
Jason Simmons
b45b6a1bd9 Include the FTL build config macros in some files that rely on them (flutter/engine#2930)
Fixes https://github.com/flutter/flutter/issues/5424
2016-08-16 12:04:11 -07:00
Adam Barth
76f0953aef Rename SkyView to RuntimeController (flutter/engine#2924)
Also, rename SkyViewClient to RuntimeDelegate. These names are more
sensible.

This patch also cleans up the RuntimeDelegate a bit, for example by
removing support for flushing real-time events, which aren't used.
2016-08-13 00:18:58 -07:00
Adam Barth
83bf8be528 Add //flutter/content_handler (flutter/engine#2923)
We're now producing a flutter_content_handler binary for Fuchsia that
builds and links.
2016-08-12 22:41:54 -07:00
Adam Barth
1d67a42888 Get //flutter/runtime building on Fuchsia (flutter/engine#2922) 2016-08-12 21:55:00 -07:00
Adam Barth
6598d2104d Invert the relationship between lib/ui and sky/engine (flutter/engine#2920)
Now lib/ui depends on sky/engine rather than the reverse.
2016-08-12 16:12:07 -07:00
Adam Barth
beb84ed2ea Move more code out of //flutter/sky/engine (flutter/engine#2918)
* Move dart:mojo.internal to //flutter/lib/mojo

To be parallel with the other built-in libraries.

* Move DartRuntimeHooks into //flutter/lib/ui

This code manipulates natives.dart, which is part of //flutter/lib/ui.
2016-08-12 13:16:46 -07:00