99 Commits

Author SHA1 Message Date
Chinmay Garde
28aa97988d Move picture_serializer from sky/shell/gpu to sky/compositor 2015-09-21 16:22:33 -07:00
Chinmay Garde
0a2984c959 Remove the SERIALIZE_LAYER_TREE macro 2015-09-21 15:46:39 -07:00
Chinmay Garde
ef4df93e06 SkPicture tracing to file follows same path as rendering into the OpenGL context 2015-09-21 15:45:09 -07:00
Chinmay Garde
a3af5bd1e8 Remove picture_rasterize.h|cc 2015-09-18 14:31:05 -07:00
Adam Barth
6b6f81e30a Teach SkyShell.app to run local files
Previously we defaulted to loading from URLs, but its
more common to want to load files off the local machine
on the command line.
2015-09-17 09:07:07 -07:00
Adam Barth
b02963a1f6 Remove platform gesture detectors 2015-09-16 16:56:55 -07:00
Adam Barth
9a2411eeac Crash when we can't run main()
Also, in testing, crash when we can't load a library off disk.
2015-09-16 16:42:37 -07:00
Adam Barth
d5b2969546 Simplify TestRunner now that we don't have test_sky 2015-09-16 11:00:33 -07:00
Chinmay Garde
244de91699 Merge pull request #1119 from chinmaygarde/master
Allow compositor options to be modified at runtime
2015-09-10 23:51:33 -07:00
Chinmay Garde
08da55706c Make the paint context own the rasterizer and options. Also give it the ability to vend frames to render into. 2015-09-10 16:41:54 -07:00
Matt Perry
ec47806621 rm.jni 2015-09-10 17:19:13 -04:00
Matt Perry
2994380377 Compare versions before updating an app bundle.
The version and update URL are stored in the app's manifest (sky.yaml).
2015-09-10 14:17:58 -04:00
Chinmay Garde
d0009550c0 PictureRasterizer for caches pictures as images 2015-09-09 14:52:58 -07:00
Chinmay Garde
153a800578 Update SketchySerializeLayerTree to account for API updates.
Usually disabled via the `SERIALIZE_LAYER_TREE` macro.
2015-09-09 10:30:03 -07:00
Chinmay Garde
b44a86c08a PictureLayers cache the contents of their pictures if the pictures
dont mutate from frame to frame
2015-09-09 09:54:30 -07:00
Adam Barth
bdc2cdc1e8 Add a sketchy function for serializing SkPictures
We'll need to make this fancier as the compositor gets smarter.
2015-09-08 14:02:13 -07:00
Adam Barth
e5d7e69346 Pass the sky::LayerTree to the GPU thread for drawing
Instead of squashing the layers down into a single SkPicture, we now pass the
tree to the GPU thread, which draws everything separately.
2015-09-03 19:20:32 -07:00
Chinmay Garde
2daa2e9618 Fix build failure due to incorrect header import of picture_serializer.h 2015-09-02 16:58:28 -07:00
Chinmay Garde
cff629460e Rename: SaveFrameToSkp -> SaveFrameToSkPicture 2015-09-02 16:11:21 -07:00
Chinmay Garde
544f6499ed Add hooks to save skp file of current frame to the documents directory 2015-09-02 15:18:23 -07:00
Matt Perry
d05b9480e6 Introduce an UpdateService for android.
Very simple so far. This schedules an alarm to fire once a day, kicking
off a service that downloads a new app.skyx from a hardcoded URL. The
new skyx replaces the current one.
2015-09-02 15:32:09 -04:00
Andrew Wilson
38be8f6e8d Persist immersiveness. 2015-08-31 14:31:25 -07:00
Chinmay Garde
d726d4f822 Implement platform VSyncProvider for iOS 2015-08-31 12:30:11 -07:00
Adam Barth
30a05aab46 Add a mojom for delivering pointer events in packets
We don't use this interface yet.
2015-08-28 09:39:35 -07:00
Alhaad Gokhale
e2b4149320 Go back to master. 2015-08-27 18:16:45 -07:00
Adam Barth
795df1327b Plumb physical size along with SkPicture
Previously we were using the cull rect of the SkPicture to size the GPU buffer,
but Skia is too smart and shrinkwraps the cull rect, which meant we weren't
sizing the GPU buffer to the right size.

Fixes #814
2015-08-26 09:26:51 -07:00
Adam Barth
c7b8d482a8 Add missing dependency 2015-08-25 19:59:52 -07:00
James Robinson
c8eff5e44f Update to mojo d259eb58aa59e14a13d5e0dc3984b855b475ba09
This updates to mojo commit d259eb58aa59 and limits the roll script to
only pull in the parts of //mojo that are currently being used. More
stuff will be dropped in the future.
2015-08-25 14:56:25 -07:00
Chinmay Garde
65f2b0a8e7 Merge pull request #775 from chinmaygarde/master
Add media service implementation for iOS
2015-08-24 14:15:35 -07:00
Chinmay Garde
bd80be7e2f Add media service implementation for iOS 2015-08-24 12:36:15 -07:00
Adam Barth
61dcfbc0ed Add support for skyx to sky_viewer.mojo
Fixes #753
2015-08-24 09:34:17 -07:00
Ian Fischer
89e9f13af1 Merge pull request #719 from iansf/add_listen_command
Add listen command to sky_tool, and related changes.
2015-08-21 09:54:04 -07:00
Ian Fischer
94aa33c71b Make sky_tool install to ios devices and simulators if available, and add a ‘listen’ command that will listen to filesystem changes in the current directory and update running versions of the app.
Also refactors ios_sim.py to be part of sky_tool.

The current skyx file that ‘listen’ generates does not contain material design icons, so icons will be missing.
2015-08-21 09:53:35 -07:00
Adam Barth
7f0a28952a Uncaught exceptions get two stack traces
Now we print Dart_GetError only when we don't have a stack trace. Also, improve
the usability of the sky_shell command line tool by defaulting to "packages"
for the package-root and not crashing when we don't have a package-root until
we actually try to load a package. Finally, remove console spam when we fail to
bind the observatory port.

Fixes #689
2015-08-20 12:09:53 -07:00
Adam Barth
6b2a1ee6b0 Teach the DartLibraryProviderFiles about file URLs
We don't want to support file URLs in general, but having them in the "files"
version of the library provider makes it easier to integrate with package:test.
2015-08-19 23:46:36 -07:00
Adam Barth
33994d06f7 Don't corrupt drawing when rotating
Previously there was a race condition when updating the size of the GLSurface.
Now we explicitly update the size of the surface to match what we expect.

Fixes #610
2015-08-17 16:45:20 -07:00
Adam Barth
788e4731fe Fix Android build 2015-08-15 21:58:51 -07:00
Adam Barth
f7053c6bdf Make it easier to run SkyShell from the command line on Mac
Now you can use --snapshot to load snapshots from the command line and have
them appear visually on Mac. Also, remove code duplication with Linux by
factoring common testing code into //sky/shell/testing.
2015-08-15 12:45:08 -07:00
Adam Barth
77863132c6 Fix Mac build
Looks like the Keyboard service is only for iOS. We shouldn't try to build it
on Mac.
2015-08-14 21:31:06 -07:00
Chinmay Garde
4a6bd4a796 Keyboard service implementation for iOS 2015-08-14 17:35:45 -07:00
Adam Barth
011ce5d8e7 Clear the frame to black before drawing
We used to do this in the SkPicture, but it's simpler to do it in the
rasterizer now that we're using multiple SkPictures in Dart.
2015-08-14 10:45:14 -07:00
Chinmay Garde
281dc80f17 Merge pull request #578 from chinmaygarde/master
Make |TracingController| platform agnostic and enable collecting traces from base and the shell view dart isolate simultaneously
2015-08-13 12:58:54 -07:00
Chinmay Garde
cfec10d80d Make |TracingController| platform agnostic and enable collecting
traces from base and the shell view dart isolate simultaneously.
Trace files contain samples from multiple sources and must be merged
separately
2015-08-13 12:51:24 -07:00
Eric Seidel
4a79cc8cb0 Don't claim to be a text editor
http://developer.android.com/reference/android/view/View.html#onCheckIsTextEditor()
says that we should return true if the "primary purpose" of
the view is text editing.  The keyboard still seems to work
fine if we return false here (default implementation) so
I'm removing this for now.

Fixes https://github.com/domokit/sky_engine/issues/116

@abarth
2015-08-13 12:36:01 -07:00
Adam Barth
69c435eacc Simplify SkPicture
This patch simplifies the SkPicture we generate for Skia. Instead of drawing
everything into a nested SkPicture, we now draw everything into the top-level
picture, which requires us to apply the device scale factor in Dart.
2015-08-10 15:12:13 -07:00
Adam Barth
5f62ffe1f4 Swith from skia::RefPtr to RefPtr
Now that we can use WTF everywhere, we don't need to use skia::RefPtr.
2015-08-10 14:18:38 -07:00
Adam Barth
26863b0961 Add a --checked argument to sky_tool start
The --checked argument runs SkyShell in checked mode, which turns on type
checking and asserts.
2015-08-07 13:18:38 -07:00
Chinmay Garde
4d93b5eebe Merge pull request #488 from chinmaygarde/master
Add tracing controller for iOS
2015-08-07 10:45:59 -07:00
Eric Seidel
287de982d9 Merge pull request #489 from eseidelGoogle/roll_mojo
Roll mojo to 35de44e361
2015-08-06 16:22:15 -07:00
Eric Seidel
c053b31d0e Fix the build after the mojo roll
@abarth
2015-08-06 16:18:16 -07:00