176 Commits

Author SHA1 Message Date
Collin Jackson
07cd2bac4a Update to use new MojoNative API 2015-11-06 14:16:40 -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
Adam Barth
938abc3142 Add reset to Path
Fixes #88
2015-10-22 16:36:07 -07:00
Adam Barth
fa3b51c0be Offset constructor is missing types
Fixes #1730
2015-10-22 08:56:01 -07:00
Adam Barth
9422e0a427 Don't use a \0 to separate base and Dart trace events
Instead, we can just concatenate the records together, which means you can view
the generated trace file without post-processing. Also, I've made the trace
file world-readable, so that you can trace a device without needing root
access.
2015-10-21 15:14:19 -07:00
Jason Simmons
7e301ebf8f Update to mojo 5f74f421c1fa8fa691360294d9ada303ccf6de4b
* Remove most of mojo/dart/embedder
  * Update roll.py to only import a subset of mojo/dart/embedder
* Add mojo/dart/observatory
* Update mojo_sdk_revision to get fixes to dart_pkg.py
2015-10-21 13:26:54 -07:00
Adam Barth
1782be8d98 Remove old setFoo functions on Paint
We now just use Dart properties, which is more idiomatic.
2015-10-19 12:21:34 -07:00
Adam Barth
edb7d79c86 Update includes to account for network service move 2015-10-19 10:30:24 -07:00
Hixie
33e6a76949 toString()ify more stuff
- truncate pixel values to 1dp since there's really no point being told
  the Size is 302.98732587287 by 648.28498579187.

- describe more Widgets so that debugDumpApp() is more useful.

- remove bufferValue from ProgressIndicator (cc @hansmuller) since it's
  not yet implemented.

- half-hearted toString() for ThemeData. There's no point making a
  complete one, since it would cause line-wrap even on big monitors in
  debugDumpApp dumps, and you can easily get the actual values from a
  debugging if that's the issue.

- flesh out BoxConstraints.toString() so that fully unconstrained and
  fully infinite constraints are called out explicitly. I experimented
  with adding even more special cases, e.g. calling out unconstrained
  widths with fixed heights, etc, but it made the output less readable.

- remove a redundant _updateVariable() in AnimatedContainer (cc
  @abarth).

- add more information to RenderView.toString().
2015-10-17 17:55:17 -07:00
Hixie
c412c31646 RelativeRect
Introduce a class that can describe the metrics used in a Positioned
widget, to enable easier manipulation and storage of the values, e.g.
for animation purposes.
2015-10-16 17:01:39 -07:00
Hans Muller
251dd27500 Revised LinearGradient ctor checking.
It's OK to just specify the colors list.
2015-10-15 15:46:03 -07:00
John McCutchan
c8d790b900 Roll Dart runtime forward to 6aab1cecb25f8e04087320f2082336073628afb4
Roll Dart runtime forward to:

6aab1cecb25f8e04087320f2082336073628afb4

Roll Observatory pub packages to:

5c199c5954146747f75ed127871207718dc87786

---

Update to new isolate create callback signature.
2015-10-14 13:27:05 -07:00