47 Commits

Author SHA1 Message Date
Ian Fischer
8ccc957f4a A couple of pieces of polish for iOS.
- Make space for the iOS status bar.
 - Set the iOS status bar to use white text.
2015-08-04 16:45:26 -07:00
Ian Fischer
4735fe0a19 Make Sky apps use the full screen on iOS. 2015-08-04 16:09:56 -07:00
Viktor Lidholt
8f4b77fbe1 Fixes path in SerializePicture call 2015-08-04 10:21:19 -07:00
Ian Fischer
a84528c10d Avoid crashing when building an app without an
app.skyx file in DEBUG mode.
2015-08-03 15:43:36 -07:00
Ian Fischer
057798813d Allow iOS apps to restart by copying the app.skyx to the Documents
directory on the device.

This work is to support a workflow where developers testing on an iOS
device will automatically see their app updates as they change their Sky
code. Currently this works by using the ios-deploy tool:
$ ios-deploy --bundle_id 'org.domokit.sky.game' --upload out/ios_Debug/game_app.app/app.skyx --to Documents/app.skyx
Upcoming commits will incorporate this into skytool.
2015-08-03 11:33:28 -07:00
Eric Seidel
b672f6bc5b Make it possible to pass a URL via command line to Mac SkyShell.app
@chinmaygarde
2015-07-30 17:26:53 -07:00
Adam Barth
2612c841ef Add --enable-checked-mode to sky_shell
We need a way for developers to use release builds in checked mode.

Progress on #400
2015-07-30 16:01:05 -07:00
Chinmay Garde
9b16addf3a Allow loading SkyX files on Mac desktop 2015-07-30 15:07:35 -07:00
Eric Seidel
4404535a9f Fix Mac/iOS builds
@abarth
2015-07-30 13:49:10 -07:00
Adam Barth
5f6523e66d Merge pull request #383 from abarth/discardable_memory
Call DiscardableMemoryAllocator::SetInstance()
2015-07-30 13:26:02 -07:00
Eric Seidel
c5d8cbc512 Fix two crashes when resuming apps
@abarth
2015-07-30 13:16:55 -07:00
Adam Barth
693dd4822f Call DiscardableMemoryAllocator::SetInstance()
Apparently this can cause a crash when when we try to render an emoji at a
different size than the emoji font's native bitmap size. I'm not sure how to
reproduce the issue. I'll ask Hixie when he gets back.

Currently we just use regular memory. In the future, we should actually use
discarable memory.

Fixes #203
2015-07-30 12:55:20 -07:00
Eric Seidel
a12b6827fe Fix the service providers to be able to be called more than once.
This was likely a race which caused occasional timeouts.

R=abarth@google.com
2015-07-30 12:27:36 -07:00
Adam Barth
f4e359f19d Refactor common startup code into shell.cc
Also, make the initialization order the same on every platform.
2015-07-30 10:53:23 -07:00
Eric Seidel
cc491e94b0 Fix CreatePlatformServiceProvider to allow calling more than once.
The previous implementation would (silently) delete any previous
ServiceProviderImpl which would close all open mojo pipes.
This would manfiest in the mojo:network_service never
responding to Dart's request for loads.

This mostly fixes issue #256, however there still appears to be
a separate display-only race, which may be related to issue #52.

R=abarth@google.com
2015-07-29 17:55:48 -07:00
Adam Barth
ec4eac4e4d Make SkyShell.app work
It was looking for the wrong executable name.
2015-07-29 15:47:26 -07:00
Chinmay Garde
2a829f9455 Pass correct recognizer data while panning on iOS 2015-07-29 15:05:01 -07:00
Adam Barth
752ff89710 Improve vsync provider
Now we actually use the vsync signal to trigger work. Previously, we'd hit the
pipeline depth limit too early and fall back to swap buffers-triggered
rendering.

Also, rename Vsync to VSync on recommendation from jamesr.
2015-07-29 14:25:51 -07:00
Adam Barth
f81d96e1dd Drive frames from the vsync provider on Android
Instead of using back pressure from swap buffers to drive the engine, this
patch using the vsync signal from the Android framework. We still respect
back pressure from swap buffers if we get too far ahead.
2015-07-28 22:32:36 -07:00
Chinmay Garde
0ca1c20fea Enable multiple touches on SkySurface on iOS 2015-07-28 18:08:41 -07:00
Chinmay Garde
9df6383b4d Avoid cancelling touches on views on gesture recognition on iOS 2015-07-28 17:05:09 -07:00
Adam Barth
d81858f0fc Merge pull request #338 from abarth/improve_pipeline
Improve pipeline accounting
2015-07-28 16:02:03 -07:00
Adam Barth
a836ce05bb Improve pipeline accounting
Previously, there was a race condition whereby we could end up with three
requests in the pipeline. Now we update the number of outstanding requests
synchronously, which avoids the race.
2015-07-28 15:28:27 -07:00
Eric Seidel
f88d017dda Merge pull request #337 from eseidelGoogle/touch_cancel
Treat all UITouchPhaseCancelled on raw touches as pointerUp instead o…
2015-07-28 15:05:59 -07:00
Eric Seidel
ef6c14983d Treat all UITouchPhaseCancelled on raw touches as pointerUp instead of pointerCancel.
On iOS as soon as a gesture recognizer takes over it cancels all outstanding
touches.

R=@abarth
2015-07-28 15:02:28 -07:00
Adam Barth
2f799869d0 Remove DCHECK
This DCHECK is triggering due to my recent change. Remove it while I debug.
2015-07-28 14:59:47 -07:00
Adam Barth
c1f0e35e3b Increase the graphics pipeline depth to 2
Previously, we weren't overlapping any work between the UI and the GPU threads
because each waited for the other to finish. After this patch, we now have a
pipeline depth of 2, which means we can be working on two frames at once, one
for each thread.  In the future, we should dynamically adjust the pipeline
depth.
2015-07-28 14:42:19 -07:00
Chinmay Garde
1d44d3ad7f Unbreak shelldb 2015-07-28 13:58:54 -07:00
Chinmay Garde
132f30f8eb Address PR feedback on updates for SkyX for iOS 2015-07-28 13:27:46 -07:00
Chinmay Garde
64e29f79ef Load SkyX files on iOS where available 2015-07-28 13:27:46 -07:00
Eric Seidel
9ccebe653f Fix iOS build
@chinmaygarde
2015-07-28 12:59:24 -07:00
Adam Barth
f92e594895 Merge pull request #318 from abarth/smaller_apks
Compress assets in APKs
2015-07-28 12:40:23 -07:00
Adam Barth
341f82efc8 Compress assets in APKs
This patch moves us back to compressing assets in APKs. We lost compression
when we updated Chromium recently. This brings typical Sky APKs down to 7.2MB.

Fixes #134
2015-07-28 12:40:09 -07:00
Eric Seidel
0eb4c0af8a Make test_sky work on Mac!
We still have a few tests failing, I believe
due to different font metrics.  Otherwise this works!

R=abarth@google.com
2015-07-28 11:31:42 -07:00
Tony Gentilcore
77fef24c22 Fix compilation 2015-07-27 17:50:11 -07:00
Chinmay Garde
6f6edf3b04 Merge pull request #301 from chinmaygarde/gl_bindings
Avoid manually setting up in-process GL bindings for Skia
2015-07-27 14:49:06 -07:00
Chinmay Garde
ba2fe445fa Avoid manually setting up in-process GL bindings for Skia 2015-07-27 14:30:14 -07:00
Adam Barth
f737c1dcbc Merge pull request #297 from abarth/network_nits
Cleanups to network service
2015-07-27 14:04:08 -07:00
Adam Barth
a06a3b2f18 Cleanups to network service
This patch contains some minor improvements to the network service:

- We now cache the connection to the network service so we don't need to spin
  it up for each request.
- We now manage the lifetime of NetworkServiceImpl in the same way as other
  services.

Also, update the workbench sky_tools dependency to the latest version.
2015-07-27 13:50:42 -07:00
Chinmay Garde
26a7bd7087 Complete OpenGL setup and input event handling on Mac 2015-07-27 10:56:34 -07:00
Ian Fischer
88a936708e Command line options for launching a particular
Sky app in the simulator.
2015-07-23 16:41:51 -07:00
Adam Barth
54e3a36c32 Create a SkyShell.apk
This CL introduces a SkyShell.apk that is separate from the SkyDemo.apk that we
upload to the store to show our demos.  The SkyShell.apk is just an empty shell
that can run Sky applications on Android.
2015-07-23 13:26:01 -07:00
Chinmay Garde
c44eaa4144 Extract and reuse common sky/shell components on Mac and iOS 2015-07-21 10:17:50 -07:00
Chinmay Garde
bf8957f864 Use "org.domokit" in Sky shell iOS 2015-07-20 11:10:56 -07:00
Adam Barth
798a88d9e2 Update Sky code to account for changes in Chromium
- Add missing dependencies caught by gn's new stricter checker
- Update opentype code to use new OTS API. This code is updated from HEAD
  Blink.
- Add base dependency to wtf to avoid redefining marcos from base/macros.h
- Update callers of various base string utility functions to use base
  namespace.
2015-07-16 22:14:27 -07:00
Eric Seidel
8720ecfd16 Don't layout behind the system bar if we can't make it transparent
R=abarth@google.com
2015-07-16 15:18:47 -07:00
Collin Jackson
a64559ab70 After running filter-branch, move root directory into sky/ 2015-07-16 11:54:25 -07:00