186 Commits

Author SHA1 Message Date
Collin Jackson
ddab005e59 Merge pull request #2001 from collinjackson/roll_mojo
Roll mojo
2015-11-06 14:21:51 -08:00
Collin Jackson
07cd2bac4a Update to use new MojoNative API 2015-11-06 14:16:40 -08:00
Chinmay Garde
88f8527152 Merge pull request #1985 from chinmaygarde/master
Dart isolate symbols are no longer in the blink namespace. Fix the snapshotter to account for the same.
2015-11-05 20:24:45 -08:00
Chinmay Garde
ed7b829678 Dart isolate symbols are no longer in the blink namespace. Fix the snapshotter to account for the same. 2015-11-05 20:01:22 -08:00
Chinmay Garde
a9867b0821 Merge pull request #1975 from chinmaygarde/master
Allow dynamic resolution of Dart isolate and instructions snapshot
2015-11-05 17:07:58 -08:00
Chinmay Garde
4a0ef22f30 Rename: DART_ALLOW_DYNAMIC_LOADING to DART_ALLOW_DYNAMIC_RESOLUTION 2015-11-05 16:54:44 -08:00
Chinmay Garde
f5aae58dc3 Only attempt dynamic resolution of Dart VM assets on iOS and Mac 2015-11-05 16:47:49 -08:00
Chinmay Garde
eb4326331d Allow dynamic resolution of Dart isolate and instructions snapshot 2015-11-05 15:40:36 -08:00
Jason Simmons
cc030ef888 Merge pull request #1965 from jason-simmons/idl_tracing
Convert Tracing to stop using the IDL-based bindings
2015-11-05 15:21:27 -08:00
Chinmay Garde
1e98421ca1 GN rules for the precompilation SDK 2015-11-05 12:57:36 -08:00
Jason Simmons
28511cee5a Convert Tracing to stop using the IDL-based bindings 2015-11-05 12:43:31 -08:00
Chinmay Garde
8fd1ce7738 Disable Dart profiling on iOS and MacOS 2015-11-05 12:25:13 -08:00
Jason Simmons
4f94048f10 Improve performance of marshaling simple Paint objects to native code
Paint is an argument on most methods of Canvas, and in many uses the Paint
contains only a color.  In this case, return the Paint's value to native code
as an int instead of constructing a list of attributes.

This improved run time on a drawRect benchmark by 35%.
2015-11-04 14:33:45 -08:00
Chinmay Garde
53282f6a15 Merge pull request #1930 from chinmaygarde/master
Avoid tripping on an assertion after calling Dart_ListGetRange with zero length
2015-11-03 14:08:20 -08:00
Chinmay Garde
3fbd90472e Avoid tripping on an assertion after calling Dart_ListGetRange with zero length 2015-11-03 13:58:07 -08:00
Jason Simmons
f1f7e79cfe Merge pull request #1908 from jason-simmons/canvas_rrect_marshal_2
Make RRect immutable and replace RRect.setRectXY with a fromRectXY co…
2015-11-03 13:33:20 -08:00
Chinmay Garde
a2b61d4275 Enable simulator builds when using precompilation for iOS 2015-11-03 11:54:37 -08:00
Adam Barth
b0cb37d5a0 Don't anti-alias RRect and Path clips
We should probably expose this dial to clients eventually, but this patch just
makes our default match Skia's default of not anti-aliasing RRect and Path
clips.
2015-11-02 18:26:48 -08:00
Jason Simmons
7b40d5b9d0 Make RRect immutable and replace RRect.setRectXY with a fromRectXY constructor 2015-11-02 16:38:37 -08:00
Jason Simmons
488cff3e40 Marshal RRect using a DartConverter (as is done for Rect)
This improved running time of a Canvas.drawRRect benchmark by 40%
2015-11-02 16:17:25 -08:00
Jason Simmons
b069bdbde6 use Dart_GetListRange in DartConverter<Vector> 2015-11-02 12:48:27 -08:00
Jason Simmons
fe421cd583 Merge pull request #1888 from jason-simmons/canvas_paint_list_range
Use Dart_ListGetRange instead of multiple calls to Dart_ListGetAt
2015-11-02 10:06:00 -08:00
Adam Barth
735e35ff4f Merge pull request #1894 from abarth/stroke_cap
Add Paint#strokeCap
2015-11-02 09:31:05 -08:00
Adam Barth
39647f8e4e Remove dependency on gperf
We don't need the CSS color names anymore.
2015-11-01 12:49:27 -08:00
Adam Barth
ff7b3668ea Add Paint#strokeCap
Fixes #1887
2015-11-01 11:18:39 -08:00
Jason Simmons
51a77faf44 Use Dart_ListGetRange instead of multiple calls to Dart_ListGetAt
Benchmarked this using a no-op native function that takes a Paint argument.
This patch reduced average call time by 9%.
2015-10-30 17:00:06 -07:00
Chinmay Garde
e63d438ac6 Enable service isolate under precompilation
Update dart revision to include changes required to enable profiling
during precompilation
2015-10-29 16:16:03 -07:00
Chinmay Garde
028e21dc5d Bump the Dart profile period to usable levels and enable CPU profiling in release builds on iOS 2015-10-29 14:39:44 -07:00
Jason Simmons
ce38faca74 Remove obsolete Dart GC controller code 2015-10-29 13:28:30 -07:00
Jason Simmons
ee3b016425 simplify the ImageDecoder native code binding 2015-10-29 13:11:02 -07:00
Chinmay Garde
737c9fb225 Remove embedder entry points no longer present in flutter/engine 2015-10-28 14:55:01 -07:00
Chinmay Garde
4e3c92ff9a Add missing dart:ui embedder entry points for the precompiler 2015-10-28 14:27:29 -07:00
Adam Barth
234f792f51 Remove ui.view
We don't use ui.view anymore.
2015-10-28 11:15:59 -07:00
Adam Barth
5968c60e48 Re-host View on Window
After this patch View is just a shim on top of Window and can be removed
easily.
2015-10-27 17:55:07 -07:00
Adam Barth
02d75552c9 Start booting up the new binding system for window
Currently this code isn't completely wired up, but this patch is an incremental
step in that direction.
2015-10-27 16:53:52 -07:00
Chinmay Garde
921243f4c0 In the precompiler, add an explicit dependency to the target that generates dart_ui.dart 2015-10-27 16:41:02 -07:00
Chinmay Garde
33f8df16d1 Remove ios_active_arch and directly specify arm64 vs armv7 preference via target_cpu 2015-10-27 15:58:55 -07:00
Jason Simmons
7983d5f0c5 Fix a memory leak in CanvasImageDecoder
CanvasImageDecoder is instantiated with a callback into a Dart closure.
That closure was holding references to the ImageDecoder and the returned
Image.  The circular reference between the ImageDecoder and the callback
prevented the objects from being GCed, resulting in leakage of the image
buffer.

CanvasImageDecoder will now destroy the callback after it is invoked,
thus releasing its handle to the Dart closure.
2015-10-27 15:05:30 -07:00
Chinmay Garde
1c19bdbd36 Merge pull request #1790 from chinmaygarde/master
Update Dart revision
2015-10-26 11:19:05 -07:00
Chinmay Garde
ae7f980d31 Update Dart revision 2015-10-26 11:12:03 -07:00
Adam Barth
3327356aee Roll Skia 2015-10-26 10:36:00 -07:00
Adam Barth
0c03d1c560 Rework how we lookup native functions from Dart
This patch changes how we lookup native functions from Dart to be more
extensible. This patch paves the way for removing the dart:ui_internals
library.
2015-10-25 00:41:45 -07:00
Adam Barth
01c14ff74b Remove a bunch of dead code
I left this code along in my uber patch to remove the DOM and CSS, but it's
just as dead. Also, move lone files out of dead directories into more sensible
places.
2015-10-24 16:09:21 -07:00
Adam Barth
a5768f2718 Remove the DOM and CSS
We don't use the DOM or CSS anymore. Instead, we work directly with the render
tree.
2015-10-24 00:26:24 -07:00
Adam Barth
1a5465c570 Delete OldTextPainter
Also, delete all references to DOM APIs.
2015-10-23 12:07:55 -07:00
Adam Barth
f1f26c93e5 Change VelocityTracker to understand new pointer values
Now we use one velocity tracker per pointer.

Path by Kris Giesing.

Fixes #1704
2015-10-23 10:07:19 -07:00
Adam Barth
08729e37d2 Fix some fiddly bits in ParagraphBuilder 2015-10-23 09:47:02 -07:00
Adam Barth
a066323bd6 Fix Android build
RTLD_SELF doesn't appear to be defined on Android.
2015-10-23 08:54:05 -07:00
Adam Barth
eb594bffdc Make NewTextPainter actually work
The NewTextPainter is still disabled by default. A future patch will flip the
flag to enable it.

This patch uses a new approach to writing bindings by encoding data into array
buffers. This approach is more efficient than the existing IDL based approach.
If this works out well, we should convert our other performance-sensitive
interfaces to this approach in future patches.
2015-10-23 08:41:23 -07:00
Chinmay Garde
d6ff8e90b0 Switch to using precompiled snapshots on iOS 2015-10-22 17:27:40 -07:00