7147 Commits

Author SHA1 Message Date
Adam Barth
bb80218df8 Add spinning_square example (#2928)
Also, teach gn how to build application bundles.
2016-08-15 23:07:19 -07:00
Adam Barth
9878b58878 Get spinning square working on Fuchsia (#2926)
After this patch, we're able to run spinning_square on Fuchsia. I've
left some TODO comments about some shortcuts I've taken that we'll need
to improve in the future.
2016-08-14 16:24:40 -07:00
Adam Barth
2c5a71e721 //flutter/content_handler code complete (#2925)
This patch should contain all the code we need to run Flutter on
Fuchsia's software framebuffer (without text). I haven't actually tried
running the code, so I'm sure it doesn't work yet.
2016-08-13 16:38:39 -07:00
Adam Barth
b2058f8b3d Rename SkyView to RuntimeController (#2924)
Also, rename SkyViewClient to RuntimeDelegate. These names are more
sensible.

This patch also cleans up the RuntimeDelegate a bit, for example by
removing support for flushing real-time events, which aren't used.
2016-08-13 00:18:58 -07:00
Adam Barth
0a439f3f88 Add //flutter/content_handler (#2923)
We're now producing a flutter_content_handler binary for Fuchsia that
builds and links.
2016-08-12 22:41:54 -07:00
Adam Barth
0c000bdfcb Get //flutter/runtime building on Fuchsia (#2922) 2016-08-12 21:55:00 -07:00
Adam Barth
fe509b0d96 Fix startup crash 2016-08-12 20:38:01 -07:00
Adam Barth
3230826927 Move embedded resources to //flutter/runtime (#2921)
This data is actually used in //flutter/runtime, so it makes more sense to
generate it and include it in the build from there.
2016-08-12 16:54:00 -07:00
Adam Barth
4cab94e949 Invert the relationship between lib/ui and sky/engine (#2920)
Now lib/ui depends on sky/engine rather than the reverse.
2016-08-12 16:12:07 -07:00
Todd Volkert
46e06cd91a Pass runtime_mode gn arg through to ShouldEnableCheckedMode() (#2919)
https://github.com/flutter/flutter/issues/4866
2016-08-12 14:45:25 -07:00
Adam Barth
6ed9eac4ff Move more code out of //flutter/sky/engine (#2918)
* Move dart:mojo.internal to //flutter/lib/mojo

To be parallel with the other built-in libraries.

* Move DartRuntimeHooks into //flutter/lib/ui

This code manipulates natives.dart, which is part of //flutter/lib/ui.
2016-08-12 13:16:46 -07:00
Adam Barth
f8d80c4617 Finish removing //flutter/tonic (#2917)
This pulled a refactoring of how we keep track of the primary threads.
2016-08-12 12:05:48 -07:00
Adam Barth
855e471c1f Almost remove //flutter/tonic (#2916)
All that's left is two task runners, which should be statics somewhere.
2016-08-12 09:42:32 -07:00
Adam Barth
40dfdbc331 Remove extra include 2016-08-11 15:23:27 -07:00
Adam Barth
1a67cb5307 Clean up :dist target (#2915)
We only need this target for preparing the Dart packages for distribution now.
2016-08-11 14:59:19 -07:00
Adam Barth
35c66714f6 Remove more public headers (#2914)
These aren't needed anymore.
2016-08-11 14:54:39 -07:00
Adam Barth
c6f678242c Prepare libwtf.a to build on Fuchsia (#2913)
We can't quite build it yet because libwtf.a depends on //third_party/icu,
which we don't have yet, but this patch gets us closer.
2016-08-11 14:20:28 -07:00
Adam Barth
36b668ea6e Teach //flutter/lib/ui to build on Fuchsia (#2912)
This patch removes the //flutter/sky/engine dependency from //flutter/lib/ui,
which lets us build the bulk of the dart:ui library without needing to build
//flutter/sky/engine.
2016-08-11 13:13:59 -07:00
Hans Muller
1493032690 Added SceneBuilder culling (#2911) 2016-08-11 10:24:05 -07:00
Adam Barth
cee7fef78c Simplify Dart application startup (#2910)
There are now three ways to start Dart applications:

1) From a precompiled snapshot
2) From a snapshot
3) From source

When loading from source, we no longer use the complex data pipe /
dependency catcher mechanism. Instead, we just load the source
synchronously from the file system. This is appropriate because running
from source is used only during development and not during production.

The previous design was built assuming we would want to run from source
over the network, which meant we needed to be able to load source
asynchronously over a high latency channel.
2016-08-11 10:23:17 -07:00
John McCutchan
607d379c23 Add --print-deps mode to sky_snapshot (#2903) 2016-08-11 06:39:20 -07:00
Adam Barth
d07eb002df Don't build sky_snapshot for target 2016-08-10 20:03:07 -07:00
Adam Barth
0a54524193 Update Dart (#2909) 2016-08-10 19:45:36 -07:00
Adam Barth
3252575e2b Attempt to fix build 2016-08-10 19:42:59 -07:00
Adam Barth
94b377a551 Remove the specs directory (#2908)
These documents either got moved to the web site (e.g., gestures and
style-guide), became reality (e.g., accessibility and pointer), are outdated
(e.g., events) or are captured in bugs (e.g., keyboard and linkability).
2016-08-10 19:32:34 -07:00
Adam Barth
bebf023769 Teach sky_snapshot how to build on Fuchsia (#2907)
Doesn't quite work yet, but close. Fuchsia is on a newer Dart and will need a
couple patches before this will fully work.
2016-08-10 16:56:41 -07:00
Adam Barth
9f6294c4f3 One more attempt to fix the build 2016-08-10 16:37:37 -07:00
Adam Barth
d32656a568 Attempt to fix build 2016-08-10 16:28:13 -07:00
Adam Barth
34d5a287a1 Fix build 2016-08-10 16:21:51 -07:00
Adam Barth
fef5589b41 Move sky_snapshot to a more reasonable location (#2906)
We should eventually rename it to something more sensible, but that's a more
disruptive change. This patch just moves the source code to somewhere easier to
find.
2016-08-10 16:05:38 -07:00
Adam Barth
54d5068b86 Move snapshot to //flutter/lib/snapshot (#2905)
This change disentangles the build for the snapshotter from the main engine
build. Also, we now have all the Dart files for dart:ui in the same directory.
2016-08-10 15:33:11 -07:00
Ian Hickson
483bbd3146 Update sky_engine LICENSE file (#2904) 2016-08-10 15:29:10 -07:00
Adam Barth
d5eddc02e0 Update //lib/ftl (#2901) 2016-08-10 15:16:56 -07:00
Jason Simmons
d90657feb1 Do not delete the JNI local reference to the surface passed to SurfaceCreated (#2902) 2016-08-10 14:33:34 -07:00
Chinmay Garde
e8fb428a4f Guard against sysmacros.h pulling in defines for major and minor on some platforms. (#2900) 2016-08-10 14:13:01 -07:00
Adam Barth
18e43c93ed Get //flutter/flow building on Fuchsia (#2899) 2016-08-10 14:03:19 -07:00
Adam Barth
4a972e2d52 Teach //flutter/glue to build on Fuchsia (#2898) 2016-08-10 12:50:00 -07:00
Chinmay Garde
a413ef0bb0 If GrGLContext setup fails, log OpenGL platform specific information. (#2897) 2016-08-10 11:26:26 -07:00
Adam Barth
1761ed1580 Get Fuchsia build past gn gen (#2896) 2016-08-10 11:24:16 -07:00
Adam Barth
726acc510d Update buildroot 2016-08-09 17:13:22 -07:00
Adam Barth
78d70176a3 Fix iOS build 2016-08-09 16:39:09 -07:00
Ian Hickson
f51d5e8b6b Update CONTRIBUTING.md (#2895) 2016-08-09 15:30:51 -07:00
Adam Barth
81aca5430c Update Travis to account for buildroot (#2894) 2016-08-09 14:45:03 -07:00
Adam Barth
0392945ce3 Update CONTRIBUTING.md to account for buildroot (#2893) 2016-08-09 14:14:10 -07:00
Adam Barth
9c09565712 Update paths to account for buildroot 2016-08-09 13:52:15 -07:00
Adam Barth
22f834e048 Remove files that moved to buildroot 2016-08-09 13:51:42 -07:00
John McCutchan
5b726c582a Roll tonic to 25b9fe6c5dfb0925794e754b7dc80d9c320e5082 (#2892) 2016-08-09 13:47:29 -07:00
Adam Barth
5f65a121ad Remove //base dependency from engine.cc (#2891)
We now just call stat directly to test whether a file exists.
2016-08-09 11:21:02 -07:00
Adam Barth
67a42cd19d Fix hot reloading (#2890)
We were creating the task runner adaptor before the underlying base::Thread had
a TaskRunner to adapt. Now we wait until after we start the thread.
2016-08-09 09:59:39 -07:00
Adam Barth
5f75e0bf30 Remove more //base dependencies from //sky/shell (#2889)
This patch hides the base::SingleThreadedTaskRunner, which pulls a big
switchover to ftl::WeakPtr and std::function.
2016-08-08 20:00:37 -07:00