Adam Barth
72c103cefa
Rename dart:sky to dart:ui
2015-10-09 19:27:13 -07:00
Ian Fischer
3a463204d4
Rename skyx to flx in sky.
...
This is needed for coordination with sky_tools development.
2015-10-09 14:35:08 -07:00
Adam Barth
1946924b16
Introduce IO thread for background tasks
...
Currently we run some tasks on the UI thread that shouldn't block the frame,
such as decoding images. This patch introduces a background thread on which we
can run these tasks.
2015-10-09 06:37:57 -07:00
Chinmay Garde
887e06f555
Format trace file names so they are easier to organize
2015-10-08 11:50:51 -07:00
Chinmay Garde
1e89a38bd6
Use the app directory as the tracing path on Android
2015-10-07 14:10:58 -07:00
Chinmay Garde
ec31bc9bfd
Set SkPicture tracing root directory on Android
2015-10-07 12:34:03 -07:00
Chinmay Garde
6d7a56b7ed
Disable instrumentation when rendering to a trace file
2015-10-06 17:29:58 -07:00
Chinmay Garde
b95b5292b8
Setup infrastructure to capture SKP traces when the frame interval exceeds certain thresholds
2015-10-06 17:03:10 -07:00
Chinmay Garde
d53475832f
Merge pull request #1423 from chinmaygarde/master
...
Allow visualizing engine and rasterizer statistics simultaneously
2015-09-30 17:45:12 -07:00
Chinmay Garde
418ed6f689
Allow visualizing engine and rasterizer statistics simultaneously
2015-09-30 17:18:37 -07:00
Matt Perry
3266b147cf
Implement working UpdateTask in Dart
...
Dart code now supports the full flow that the C++ code used to: version check,
download, replace app bundle. Bonus: the Dart code is much easier to follow,
thanks to async/await!
This is part 2 of a 3-part change. The first part added new mojom
interfaces, PathService and UpdateService, to the sky_services package.
2015-09-30 18:13:11 -04:00
Chinmay Garde
60176eb6fa
Account for the canvas flush and surface swap buffers durations in the instrumented frame times (via the ScopedFrame)
2015-09-30 15:07:57 -07:00
Matt Perry
325a309c6d
Add new mojom interfaces PathService and UpdateService.
...
These will be used by the updater package.
2015-09-30 14:28:49 -04:00
Chinmay Garde
fab6d7fae8
Merge pull request #1340 from chinmaygarde/master
...
Remove deleted header declaration for SaveFrameToSkPicture
2015-09-25 10:03:38 -07:00
Chinmay Garde
6f0b8edb8a
Remove deleted header declaration for SaveFrameToSkPicture
2015-09-25 10:02:15 -07:00
Chinmay Garde
8e72f267cd
Merge pull request #1316 from chinmaygarde/master
...
Map UITouch pointers to indentifiers similar to Android
2015-09-23 22:34:07 -07:00
James Robinson
5bb2480bcd
Update to Mojo 4e4d51ce28a8edcb32b9c7f555e38e2ae84a825e, update deps
...
This updates to mojo 4e4d51ce28a and mojo sdk 711a0bcfb141b4 and updates the sky
package's pubspec.yaml dependency to '>=0.1.0 <0.2.0' to be compatible with
the current mojo package. This includes an update to the Mojo Dart generator to
produce real classes for enums and the corresponding updates for users of the
KeyboardType enum in Sky as well as one scoped_ptr->std::unique_ptr in shell
corresponding to a change in the Mojo EDK.
When a new version of the sky and sky_services package are pushed this will fix
domokit/mojo#440 .
2015-09-23 17:26:46 -07:00
Chinmay Garde
c2ed9a10c2
Make unregisterTouch return the identifier of the removed touch
2015-09-23 16:59:19 -07:00
Chinmay Garde
edf0f3379a
Map UITouch pointers to indentifiers similar to Android
2015-09-23 16:53:18 -07:00
Chinmay Garde
310a4acb33
Merge pull request #1305 from chinmaygarde/master
...
Guard against warnings resulting from non-nullable annotations in sky_window on Mac
2015-09-23 12:54:08 -07:00
Chinmay Garde
fa8b0ce1a1
Guard against warnings resulting non-nullable annotations in sky_window on Mac
2015-09-23 12:16:56 -07:00
Matt Perry
81b2b81b1d
Replace C++ UpdateTask with an empty dart version, loaded as a snapshot.
...
This adds a new placeholder dart package updater in sky/packages. This is built
into a snapshot and compiled into the Sky engine binary using the same
mechanism as the Dart isolate.
I also added a SkyHeadless class, similar to SkyView, used for running Dart
code without a view.
2015-09-23 14:09:38 -04:00
Chinmay Garde
70c98ff994
Generate unique SkPicture trace files each time a trace is requested
2015-09-22 15:00:36 -07:00
Chinmay Garde
f222d57e4d
When capturing a frame, pass the frame size to the top level picture
2015-09-22 14:33:27 -07:00
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