231 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
Jason Simmons
784fe3dd0b Revert to libjpeg_turbo
We had switched to libjpeg, but libjpeg was failing to decode images when
built with the defines in our .gn files
2015-12-14 16:48:49 -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
Adam Barth
fb374a9f5a Remove unused code
We don't use yasm, libjpeg_turbo, or mojo's devtools.
2015-12-11 10:18:50 -08:00
Chinmay Garde
8bc5a87887 Explicitly depend on snapshot_cc on iOS simulator variants 2015-12-10 16:05:51 -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
e60e50386a Add fnl build configuration 2015-11-18 13:07:19 -08:00
Chinmay Garde
bde64ab147 Use dart_host_toolchain when building host binaries that depend on Dart 2015-11-18 12:15: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
a22ca7533a Update sdk_ext source paths 2015-11-13 10:31:23 -08:00
John McCutchan
b89f2b3f47 Update service isolate server script 2015-11-13 10:22:31 -08:00
Jason Simmons
1566d66a9e Merge pull request #2036 from jason-simmons/card_collection_segfault
Do not delete the DrainJob within the DrainJob::Start callback
2015-11-12 09:59:54 -08:00
Jason Simmons
c765df18b4 Do not delete the DrainJob within the DrainJob::Start callback
DrainDataPipeInBackground posts a callback to DrainJob::Start, which
constructs a DataPipeDrainer.  The DataPipeDrainer's constructor may
call OnDataComplete.  If this happens, it is unsafe to delete the
DrainJob while the callback is still running.
2015-11-11 15:52:18 -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
Adam Barth
150bbf6c7a Remove Dart packages which have moved to flutter.dart 2015-11-07 00:34:12 -08:00
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