49 Commits

Author SHA1 Message Date
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
2dc88cc6a5 Switch backend to consume new semantics API (#3103) 2016-10-11 10:52:48 -07:00
Adam Barth
4f370b3e6e Add more wiring for new semantics backend (#3111)
Previously the Dart entry points weren't wired up.
2016-10-10 14:51:22 -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
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
166f44c0f7 Remove pointer.mojom (#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
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
Jeff Brown
e13412bd24 Port Flutter to Mozart. (#3094)
Example: $ mojo:launcher mojo:spinning_square
2016-10-04 12:54:54 -07:00
Adam Barth
862d9e9f6b Android should use PointerDataPackets (#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
9f881f455b Queue CanvasImage texture deletion to the IO thread (#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
71f2871f00 lerpDouble return value should be "double" (#3068)
Fixes https://github.com/flutter/flutter/issues/5783
2016-09-29 21:59:59 -07:00
Adam Barth
30d87519b1 Stop dispatching pointer packets (#3080)
Long live pointer data packets.
2016-09-29 21:59:44 -07:00
Adam Barth
8ab0cdcea3 Fix ParagraphStyle toString (#3078)
Previously we got some punctuation wrong.
2016-09-29 17:42:19 -07:00
Adam Barth
613c86f2b4 Fix analyze.sh 2016-09-28 17:05:36 -07:00
Jason Simmons
d46107120a Revise the paragraph style API to include custom ellipsis strings (#3071) 2016-09-28 15:52:31 -07:00
Adam Barth
5f7b060522 Switch to manually encoded pointer data (#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
d60efb4289 Update buildtools to latest, account for GN updates and use Clang on Android. (#3064) 2016-09-28 11:48:48 -07:00
Jason Simmons
8eab44c623 Implement ellipsizing of text in the engine (#3056)
See https://github.com/flutter/flutter/issues/4478
2016-09-26 11:30:11 -07:00
Adam Barth
1737413218 A Color.fromRGBO (#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
6c5315c3a1 Remove deprecated Skia enums (#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
e4121f80a9 Fix bug found by framework test 2016-09-15 12:19:58 -07:00
Adam Barth
9fe7992df5 Update DCHECKS 2016-09-15 12:06:53 -07:00
Adam Barth
25cf81e02c Fixup updateWindowWindowMtrics types 2016-09-15 11:02:13 -07:00
Adam Barth
a971482577 Polish dart:ui API (#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
18780f441b Fix checked mode 2016-09-14 15:10:20 -07:00
John McCutchan
3e159351f3 Add 'ext.ui.window.scheduleFrame' service protocol extension (#3030) 2016-09-14 11:32:57 -07:00
Ian Hickson
e9dd3e4e0d Fix even more problems with ParagraphStyle.toString (#3027)
Also, with the comments.
2016-09-13 23:41:02 -07:00
Ian Hickson
930c9e7265 Fix the encoding of TextStyle and ParagraphStyle (#3026)
We were off by one on, uh, everything.
2016-09-13 23:20:20 -07:00
Dragoș Tiselice
67888c5993 Added drawArc to Canvas. (#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
92973b377b Remove Paragraph stubs (#3002)
We can now use the real thing on Fuchsia.
2016-09-07 22:33:56 -07:00
Adam Barth
e54ca9d627 Add asset bundle support on Fuchsia (#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
e281b602d4 Build sky/engine on fuchsia (#2992) 2016-08-31 21:01:07 -07:00
Adam Barth
1d9a8ca051 Build WTF on Fuchsia (#2948)
Also, clean out some unneeded dependencies from engine/platform.
2016-08-18 16:13:06 -07:00
Adam Barth
a5c3a3134d Add stubs for text handling on Fuchsia (#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
d786dc9104 Fix build (#2931) 2016-08-16 12:33:30 -07:00
John McCutchan
1c59ddef0e Send richer service protocol respones from the Shell (#2929) 2016-08-16 12:16:41 -07:00
Jason Simmons
d535a15a8c Include the FTL build config macros in some files that rely on them (#2930)
Fixes https://github.com/flutter/flutter/issues/5424
2016-08-16 12:04:11 -07:00
Adam Barth
b2058f8b3d Rename SkyView to RuntimeController (#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
0a439f3f88 Add //flutter/content_handler (#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
0c000bdfcb Get //flutter/runtime building on Fuchsia (#2922) 2016-08-12 21:55:00 -07:00
Adam Barth
4cab94e949 Invert the relationship between lib/ui and sky/engine (#2920)
Now lib/ui depends on sky/engine rather than the reverse.
2016-08-12 16:12:07 -07:00
Adam Barth
6ed9eac4ff Move more code out of //flutter/sky/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
Adam Barth
f8d80c4617 Finish removing //flutter/tonic (#2917)
This pulled a refactoring of how we keep track of the primary threads.
2016-08-12 12:05:48 -07:00
Adam Barth
855e471c1f Almost remove //flutter/tonic (#2916)
All that's left is two task runners, which should be statics somewhere.
2016-08-12 09:42:32 -07:00
Adam Barth
36b668ea6e Teach //flutter/lib/ui to build on Fuchsia (#2912)
This patch removes the //flutter/sky/engine dependency from //flutter/lib/ui,
which lets us build the bulk of the dart:ui library without needing to build
//flutter/sky/engine.
2016-08-11 13:13:59 -07:00
Hans Muller
1493032690 Added SceneBuilder culling (#2911) 2016-08-11 10:24:05 -07:00
Adam Barth
bebf023769 Teach sky_snapshot how to build on Fuchsia (#2907)
Doesn't quite work yet, but close. Fuchsia is on a newer Dart and will need a
couple patches before this will fully work.
2016-08-10 16:56:41 -07:00
Adam Barth
54d5068b86 Move snapshot to //flutter/lib/snapshot (#2905)
This change disentangles the build for the snapshotter from the main engine
build. Also, we now have all the Dart files for dart:ui in the same directory.
2016-08-10 15:33:11 -07:00
Adam Barth
9c09565712 Update paths to account for buildroot 2016-08-09 13:52:15 -07:00