72 Commits

Author SHA1 Message Date
Chinmay Garde
2e0f870c38 Add SceneBuilder.setCheckerboardRasterCacheImages with documentation. (#3202) 2016-11-03 17:28:11 -07:00
Chinmay Garde
3164a97645 Allow checkerboarding raster cache entries for debugging purposes (can be toggled from Dart). (#3200) 2016-11-03 13:59:57 -07:00
Jason Simmons
643d5cb062 Move SkPicture destruction to the IO thread to fix a GL memory leak (#3192)
An SkPicture may hold a reference to an SkImage backed by a GL texture.
The GL texture is associated with the resource context bound to the IO
thread and must be deleted through that context.
2016-11-01 14:31:20 -07:00
Jason Simmons
cdd7db2674 Fix a leak of RenderObjects in Paragraph/ParagraphBuilder (#3189)
The RenderView destructor does not delete its descendants.
RenderObject::destroy must be called to delete the object tree along with
other cleanup tasks.

Also associate a CustomFontData with dynamically loaded fonts in order to get
the desired FontDataCache behavior at RenderObject::destroy time.
2016-10-31 11:16:04 -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
c5c69a2462 Fix Fuchsia build (#3186) 2016-10-28 13:54:53 -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
Jason Simmons
9f65114e20 Provide the paragraph style at ParagraphBuilder construction time (#3171)
This enables text span styles to inherit attributes from the paragraph style
2016-10-25 10:58:05 -07:00
Ryan Macnak
8303461914 Roll Dart VM. (#3167) 2016-10-24 12:32:10 -07:00
Adam Barth
0c212af9a8 Path.transform doesn't work (#3164)
We need to release the typed array so that we can allocate the result value.

Fixes https://github.com/flutter/flutter/issues/6456
2016-10-21 13:04:34 -07:00
Adam Barth
0aea498f61 Remove MojoServices from dart:ui (#3161)
We no longer offer mojo handles via this mechanism.
2016-10-20 20:27:07 -07:00
Chinmay Garde
d4ad63b516 Remove DartConverter specializations for enums. Tonic provides a partial specialization for all enums. (#3160) 2016-10-20 16:47:42 -07:00
Adam Barth
123e9c8da8 Update Skia (#3157) 2016-10-20 13:23:09 -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
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
Adam Barth
26e6935b89 Handle non-null terminated strings properly (#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
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
be22caccc5 Fix crash due to typo (#3132)
I meant to compare these values, not assign them.
2016-10-13 16:03:42 -07:00
Adam Barth
8b911be098 Use antialiased clips (#3124)
The Skia team tells us that these go faster.
2016-10-12 18:28:10 -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
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