183 Commits

Author SHA1 Message Date
Jason Simmons
e55cf62694 Provide callbacks for activity pause and resume events 2015-12-15 18:01:36 -08:00
Jason Simmons
8883ada7d6 Check the image decoder's failed flag after obtaining the frame buffer
Some decoders (e.g. JPEG) do not execute the decode until the call to
frameBufferAtIndex.  If the decode fails, we should not try to return a
bitmap.
2015-12-15 11:15:00 -08:00
Adam Barth
9c3aac7c2f Remove //url
We don't use this anymore.
2015-12-11 11:20:23 -08:00
Adam Barth
a14d4ed590 Remove OpenTypeSantizer and brotli
We don't need OpenTypeSantizer or brotli because we don't support loading fonts
over the network. Instead, fonts will need to be packaged inside the Flutter
asset bundle.
2015-12-11 10:32:40 -08:00
Hixie
33a1848129 Make defaultRouteName immutable.
And trivial docs changes.
2015-12-10 10:21:00 -08:00
Ian Hickson
6b99c214b2 Provide an API for hashCode getters. 2015-12-09 22:34:56 -08:00
Ian Hickson
954c3062ea Remove old 'back' callback, and add dartdocs.
This adds some dartdocs to dart:ui, specifically for Window and friends.
2015-12-09 22:27:52 -08:00
Adam Barth
88758d8650 Improve FontWeigh and TextDecoration
Instead of using enums, these are now real classes, which lets us add `bold`
and `normal` alias to FontWeight and a `combine` constructor to TextDecoration.
2015-12-09 14:06:52 -08:00
Chinmay Garde
8638005427 Update Dart dependency to include fixes in x64 Dart precompilation 2015-12-09 13:23:03 -08:00
Jason Simmons
98427a2763 Tell Flutter about the host platform's locale 2015-12-07 14:27:22 -08:00
Ian Hickson
5bf05d6d88 Make RRect useful
Other changes:
 - Remove the default constructor for RRect and Rect.
 - Add trailing periods to Offset comments.
 - Add Offset.distanceSquared for people who want to compare x^2+y^2
   to r^2 without paying the cost of the sqrt. (Corresponding fix to
   OvalRect coming in a separate flutter patch.)
 - Fix a bug in Rect.lerp().
 - Fix various Rect comments.
 - Remove a "var" in Rect.

Fixes #769.
2015-12-06 17:54:32 -08:00
Adam Barth
19f6331a6f Add a bunch of missing Path functions
Part of #252
2015-12-05 01:11:07 -08:00
Adam Barth
e5a42b6bb8 Add support for letterSpacing 2015-12-03 14:56:20 -08:00
Chinmay Garde
f0f819afdb Merge pull request #2134 from chinmaygarde/master
Instrument dart_init.cc and remove the idle wait on the service load port
2015-12-03 14:03:36 -08:00
Chinmay Garde
33961a5d4d Instrument dart_init.cc and remove the idle wait on the service load port 2015-12-03 12:43:37 -08:00
Adam Barth
b8f159145d Add Point.lerp 2015-12-03 11:05:27 -08:00
Adam Barth
ad63ba0fb3 Update to the new C++ HandleWatcher 2015-12-03 10:59:40 -08:00
Eric Seidel
a92597ee07 Add various trace events for tracing startup
@abarth
2015-12-02 12:18:20 -08:00
Chinmay Garde
34696334a4 Allow capturing unified (Dart and base) traces from observatory
* Start capturing via <obs_host>:<obs_port>/flutter_startTracing
* Stop capturing via <obs_host>:<obs_port>/flutter_stopTracing
2015-12-01 13:26:53 -08:00
Adam Barth
def06cc72b SkyShell on Mac shows a blank window
When I run SkyShell on Mac from the command line, I get a blank screen unless I
make the change in this patch.
2015-11-27 23:17:33 -08:00
Hixie
02bac7a285 Have Travis check the build for Dart errors. 2015-11-25 15:10:01 -08:00
Hixie
8f78acf2ca Fix Rect.isEmpty
...and provide Size.isEmpty and Size.shortestSide for consistency.
2015-11-24 17:29:43 -08:00
Hixie
915e7337a2 Layers don't always have paint bounds. 2015-11-24 15:20:28 -08:00
Adam Barth
a9db805f58 Add system-level routing
We now respect the "route" field in Intents to load a route other than '/'.
Also, use popRoute rather than events to indicate that the framework has asked
us to go back.
2015-11-24 12:40:41 -08:00
Todd Turnidge
df3977e38d Add stdout/stderr streaming for Dart debuggers. 2015-11-23 12:53:30 -08:00
Adam Barth
15a638332c Text snaps to pixel grid, images don't
Previously, we tried to use the render tree's paint offset to move the text to
the proper position, but that appears to snap to integer logical pixels,
introducing jitter. Now we use the SkCanvas's matrix to position the text,
removing the jitter.

Fixes https://github.com/flutter/flutter/issues/234
2015-11-20 12:49:01 -08:00
Adam Barth
2d217034be Fix RRect#shift
Previous this would crash.
2015-11-19 11:21:54 -08:00
Adam Barth
a743fbf27a Remove ui.tracing
This feature is redundant with the Timeline in dart:developer. I've already
switched all the clients over to using dart:developer.
2015-11-18 14:18:45 -08:00
George Kulakowski
15fce47583 Merge pull request #2068 from kulakowski/build-stuff
Clean up some dead code in core renderer
2015-11-17 12:54:28 -08:00
George Kulakowski
a3d7faafed Clean up some dead code in core renderer 2015-11-17 11:32:09 -08:00
Collin Jackson
0904164fd6 Fix https://github.com/flutter/flutter/issues/371 renaming "sky" and "chromium" to "flutter" in logs and Mac Shell UI 2015-11-16 14:54:18 -08:00
John McCutchan
b89f2b3f47 Update service isolate server script 2015-11-13 10:22:31 -08:00
Adam Barth
cc81c2fb69 Merge pull request #2027 from abarth/dispose
Add the ability to dispose host objects
2015-11-11 10:39:38 -08:00
Adam Barth
ff48ddb68f Add the ability to dispose host objects
Some host objects hold on to a lot of state and take time to tear down. This
patch adds the ability to dispose them eagerly to release resources faster.
2015-11-11 08:36:29 -08:00
John McCutchan
dd328c3293 Switch to using callback to get observatory data (working) 2015-11-11 07:25:44 -08:00
Jason Simmons
9f2d723006 Replace the legacy pointer input event handling with PointerPackets
With this change we no longer need engine/core/events and its IDL bindings.
2015-11-10 14:34:12 -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
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
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
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